caverav / auditforge

Found shorthand type coercions

JS-0066
Anti-pattern
Minor
11 days ago 11 days old
Seen in 3 files
4

Logical operator can be refactored to optional chain

JS-W1044
Anti-pattern
Minor
11 days ago 11 days old
Seen in 6 files
9

Found trailing undefined in function call

JS-W1042
Anti-pattern
Minor
11 days ago 11 days old
Seen in 1 file
1

Prefer adding u flag in regular expressions

JS-0117
Anti-pattern
Minor
11 days ago 11 days old
Seen in 1 file
2

Useless template literal found

JS-R1004
Anti-pattern
Minor
11 days ago 11 days old
Seen in 11 files
380

Prefer boolean attributes notation in JSX

JS-0400
Anti-pattern
Minor
11 days ago 11 days old
Seen in 5 files
8

Use shorthand property syntax for object literals

JS-0240
Anti-pattern
Minor
11 days ago 11 days old
Seen in 14 files
37

Detected the declaration of empty interfaces

JS-0322
Anti-pattern
Minor
11 days ago 11 days old
Seen in 1 file
1

Detected the use of variables before they are defined

JS-0357
Anti-pattern
Major
11 days ago 11 days old
Seen in 4 files
14

Found non-null assertions

JS-0339
Anti-pattern
Major
11 days ago 11 days old
Seen in 3 files
13

Prefer not using an async function as a Promise executor

JS-0031
Anti-pattern
Major
11 days ago 11 days old
Seen in 2 files
6

Found no return statements in callbacks of array methods

JS-0042
Anti-pattern
Major
11 days ago 11 days old
Seen in 1 file
2

Invalid variable usage

JS-0043
Anti-pattern
Critical
11 days ago 11 days old
Seen in 9 files
167

Avoid use of == and !=

JS-0050
Anti-pattern
Minor
11 days ago 11 days old
Seen in 4 files
21

Prefer var declarations be placed at the top of their scope

JS-0102
Anti-pattern
Minor
11 days ago 11 days old
Seen in 37 files
344

Error objects should be used as Promise rejection reasons

JS-0114
Anti-pattern
Major
11 days ago 11 days old
Seen in 13 files
50

Require rest parameters instead of arguments

JS-0244
Anti-pattern
Minor
11 days ago 11 days old
Seen in 2 files
2

Require template literals instead of string concatenation

JS-0246
Anti-pattern
Minor
11 days ago 11 days old
Seen in 20 files
60

Detected usage of the any type

JS-0323
Anti-pattern
Critical
11 days ago 11 days old
Seen in 6 files
13

Use const declarations for variables that are never reassigned

JS-0242
Anti-pattern
Minor
11 days ago 11 days old
Seen in 6 files
14

Either all code paths should have explicit returns, or none of them

JS-0045
Anti-pattern
Minor
11 days ago 11 days old
Seen in 8 files
15

Avoid square-bracket notation when accessing properties

JS-0049
Anti-pattern
Minor
11 days ago 11 days old
Seen in 3 files
30

Found empty functions

JS-0057
Anti-pattern
Minor
11 days ago 11 days old
Seen in 2 files
3

Void operators found

JS-0098
Anti-pattern
Minor
11 days ago 11 days old
Seen in 3 files
13

Initialization in variable declarations against recommended approach

JS-0119
Anti-pattern
Minor
11 days ago 11 days old
Seen in 2 files
9