You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 42a5f65
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): tighten please-style check heuristics deferred from #36 (#42)
* fix(cli): tighten filename check heuristics for Dart generators and framework-reserved names
Exempt Dart files only when the last stem segment names a known generator
(g, freezed, mocks, gr, pb, ...), so a handwritten dotted name is judged.
Treat Route/GET/loader/action etc. as framework-reserved only under routes/
or pages/ directories.
Refs #37
* fix(ast-grep-config): recognize #[cfg_attr(…, test)] as a Rust test attribute
Refs #37
* fix(ast-grep-config): ignore Kotlin Multiplatform test source sets in error-file rule
The kotlin-error-outside-errors-file rule now ignores Kotlin Multiplatform
test source sets.
Refs #37
* fix(cli): skip sgconfig.yml under Yarn Plug'n'Play with a warning
Refs #37
* chore: apply AI code review suggestions
- Detect Yarn Plug'n'Play from a workspace package (.pnp.cjs at an enclosing root),
unless the project has its own installed rules directory
- Do not treat cfg_attr(…, test::helper) as a Rust test attribute
- Document .pnp.js and the yarn install + init rerun step
Refs #37
* chore: apply AI code review suggestions
Document that an installed rules directory overrides an enclosing Plug'n'Play root.
Refs #37
| TypeScript, TSX |`export { x as "string name" }`|`string-literal export name`|
179
-
| TypeScript, TSX | a file whose only export is a framework-reserved name: `Route` (TanStack Router), `GET`/`POST`/`PUT`/`PATCH`/`DELETE`/`HEAD`/`OPTIONS`/`ALL` (route handlers), `loader`, `action`|`framework-reserved export`|
189
+
| TypeScript, TSX | a file under a `routes/` or `pages/` directory whose only export is a framework-reserved name: `Route` (TanStack Router), `GET`/`POST`/`PUT`/`PATCH`/`DELETE`/`HEAD`/`OPTIONS`/`ALL` (route handlers), `loader`, `action`. Elsewhere these names are judged like any other export|`framework-reserved export`|
180
190
| Dart |`export 'other.dart';`|`re-export`|
181
191
| Dart |`part 'other.dart';` (generated `*.g.dart`/`*.freezed.dart` parts excluded; any other suffix such as `*.custom.dart` counts) |`library with parts`|
182
192
@@ -202,8 +212,11 @@ Exempt **by convention** (no finding, no notice):
202
212
`__mocks__/` directory, and anything under the package's test root (`test/`, `tests/`).
203
213
- Dart: `part of` files, files under `integration_test/`, `test_driver/`,
204
214
`bin/`, `tool/`, `example/`, `web/` or the test root, `*_test.dart`,
205
-
`errors.dart`, generated files whose name has an extra dot (`*.g.dart`,
206
-
`*.freezed.dart`), and files whose first line is a generated-code header
215
+
`errors.dart`, generator output named by its suffix (`*.g.dart`,
astGrepPlugNPlay: 'Yarn Plug\'n\'Play has no node_modules, so ast-grep cannot read the rules from node_modules/@pleaseai/ast-grep-config. Set `nodeLinker: node-modules` in .yarnrc.yml, run yarn install, and run init again.',
48
50
doctorHeading: 'Project status',
49
51
doctorOk: 'OK',
50
52
doctorMissing: 'missing',
@@ -99,6 +101,7 @@ Exit codes: 0 ok or warnings only, 1 findings with --strict, 2 usage or config e
astGrepPlugNPlay: 'Yarn Plug\'n\'Play는 node_modules를 만들지 않아 ast-grep이 node_modules/@pleaseai/ast-grep-config의 규칙을 읽을 수 없습니다. .yarnrc.yml에 `nodeLinker: node-modules`를 설정하고 yarn install 후 init을 다시 실행하세요.',
0 commit comments