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