monetr / monetr

Function call can be replaced with helper function

CRT-A0010
Anti-pattern
Major
6 months ago 6 months old
Seen in 1 file
1

Found x.Sub(time.Now()) instead of time.Until(x)

SCC-S1024
Anti-pattern
Major
4 months ago 2 years old
Seen in 1 file
1

Found variable declaration and assignment separately

SCC-S1021
Anti-pattern
Major
6 months ago a year old
Seen in 1 file
1

Logical operator can be refactored to optional chain

JS-W1044
Anti-pattern
Minor
6 months ago 10 months old
Seen in 2 files
3

Use // @ts-expect-error over // @ts-ignore

JS-0372
Anti-pattern
Minor
6 months ago a year old
Seen in 2 files
2

Unnecessary dereference expressions

GO-R4004
Anti-pattern
Major
6 months ago 2 years old
Seen in 1 file
1

Unnecessary block

CRT-A0008
Anti-pattern
Minor
a month ago 3 years old
Seen in 1 file
2

Prefer that autoFocus prop is not used on elements

JS-0757
Anti-pattern
Minor
6 months ago 2 years old
Seen in 5 files
5

Prefer boolean attributes notation in JSX

JS-0400
Anti-pattern
Minor
a month ago 3 years old
Seen in 7 files
7

Found interfaces with call signatures

JS-0362
Anti-pattern
Minor
6 months ago a year old
Seen in 1 file
1

Found empty body in an if or else branch

SCC-SA9003
Anti-pattern
Minor
6 months ago 3 years old
Seen in 1 file
1

Simplify make call by omitting redundant arguments

SCC-S1019
Anti-pattern
Major
6 months ago 3 years old
Seen in 2 files
4

Redundant statements can be removed

RVV-A0010
Anti-pattern
Major
3 months ago 3 years old
Seen in 2 files
2

Found shorthand type coercions

JS-0066
Anti-pattern
Minor
a month ago 3 years old
Seen in 25 files
47

Found explicit type declarations

JS-0331
Anti-pattern
Major
a month ago 3 years old
Seen in 9 files
16

Drop unnecessary use of the blank identifier

SCC-S1005
Anti-pattern
Major
6 months ago 3 years old
Seen in 1 file
2

Error objects should be used as Promise rejection reasons

JS-0114
Anti-pattern
Major
6 months ago 3 years old
Seen in 2 files
2

Use of a banned type detected

JS-0296
Anti-pattern
Major
4 months ago 3 years old
Seen in 9 files
9

Use shorthand property syntax for object literals

JS-0240
Anti-pattern
Minor
4 months ago 3 years old
Seen in 14 files
20

Detected usage of the any type

JS-0323
Anti-pattern
Minor
3 months ago 3 years old
Seen in 13 files
33

Exit inside non-main function

RVV-A0003
Anti-pattern
Major
a month ago 3 years old
Seen in 4 files
10

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

JS-0045
Anti-pattern
Minor
6 months ago 3 years old
Seen in 2 files
3

Detected the use of variables before they are defined

JS-0357
Anti-pattern
Minor
6 months ago 3 years old
Seen in 1 file
3

Detected the declaration of empty interfaces

JS-0322
Anti-pattern
Minor
2 months ago 3 years old
Seen in 3 files
3

switch with single case can be rewritten as if or if-else

CRT-A0014
Anti-pattern
Minor
6 months ago 3 years old
Seen in 4 files
6