Idiomatic
Rules that enforce idiomatic code.
| ID | Summary |
|---|---|
| ambiguous-scope | Ambiguous metadata scope |
| boolean-assignment | Prefer |
| custom-has-key-construct | Custom function may be replaced by |
| custom-in-construct | Custom function may be replaced by |
| directory-package-mismatch | Directory structure should mirror package |
| equals-pattern-matching | Prefer pattern matching in function arguments |
| in-wildcard-key | Unnecessary wildcard key |
| no-defined-entrypoint | Missing entrypoint annotation Type: Aggregate - only runs when more than one file is provided for linting |
| non-raw-regex-pattern | Use raw strings for regex patterns Automatically fixable: Yes |
| prefer-set-or-object-rule | Prefer set or object rule over comprehension |
| single-item-in | Avoid |
| use-contains | Use the |
| use-if | Use the |
| use-object-keys | Prefer to use |
| use-some-for-output-vars | Use |
| use-strings-count | Use |
Community
For questions, discussions and announcements related to Styra products, services and open source projects, please join the Styra community on Slack!