Skip to main content

Bugs

Rules that detect bugs in your code.

IDSummary
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

if-object-literal

Object literal following if

import-shadows-rule

Import shadows rule

impossible-not

Impossible not condition

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 if

rule-shadows-builtin

Rule name shadows built-in

sprintf-arguments-mismatch

Mismatch in sprintf arguments count

time-now-ns-twice

Repeated calls to time.now_ns

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