Bugs
Rules that detect bugs in your code.
| ID | Summary |
|---|---|
| annotation-without-metadata | Annotation without metadata |
| argument-always-wildcard | Argument is always a wildcard |
| constant-condition | Constant condition |
| deprecated-builtin | Constant condition |
| duplicate-rule | Duplicate rule |
| if-empty-object | Empty object following |
| if-object-literal | Object literal following |
| import-shadows-rule | Import shadows rule |
| impossible-not | Impossible Type: Aggregate - runs both on single files as well as when more than one file is provided for linting |
| inconsistent-args | Inconsistently named function arguments |
| internal-entrypoint | Entrypoint can't be marked internal |
| invalid-metadata-attribute | Invalid attribute in metadata annotation |
| leaked-internal-reference | Outside reference to internal rule or function |
| not-equals-in-loop | Use of != in loop |
| redundant-existence-check | Redundant existence check |
| redundant-loop-count | Redundant count before loop |
| rule-assigns-default | Rule assigned its default value |
| rule-named-if | Rule named |
| rule-shadows-builtin | Rule name shadows built-in |
| sprintf-arguments-mismatch | Mismatch in |
| time-now-ns-twice | Repeated calls to |
| top-level-iteration | Iteration in top-level assignment |
| unassigned-return-value | Non-boolean return value unassigned |
| unused-output-variable | Unused output variable |
| var-shadows-builtin | Variable shadows built-in |
| zero-arity-function | Avoid functions without args |
Community
For questions, discussions and announcements related to Styra products, services and open source projects, please join the Styra community on Slack!