Idiomatic
Rules that enforce idiomatic code.
| ID | Summary |
|---|---|
| idiomatic/use-strings-count | Use |
| idiomatic/use-some-for-output-vars | Use |
| idiomatic/use-object-keys | Prefer to use |
| idiomatic/use-in-operator | Use |
| idiomatic/use-if | Use the |
| idiomatic/use-contains | Use the |
| idiomatic/single-item-in | Avoid |
| idiomatic/prefer-set-or-object-rule | Prefer set or object rule over comprehension |
| idiomatic/prefer-equals-comparison | Prefer |
| idiomatic/non-raw-regex-pattern | Use raw strings for regex patterns Automatically fixable: Yes |
| idiomatic/no-defined-entrypoint | Missing entrypoint annotation Type: Aggregate - only runs when more than one file is provided for linting |
| idiomatic/in-wildcard-key | Unnecessary wildcard key |
| idiomatic/equals-pattern-matching | Prefer pattern matching in function arguments |
| idiomatic/directory-package-mismatch | Directory structure should mirror package |
| idiomatic/custom-in-construct | Custom function may be replaced by |
| idiomatic/custom-has-key-construct | Custom function may be replaced by |
| idiomatic/boolean-assignment | Prefer |
| idiomatic/ambiguous-scope | Ambiguous metadata scope |