KOSASIH / SilkRoad

Prefer adding u flag in regular expressions

JS-0117
Anti-pattern
Minor
8 months ago a year old
Seen in 16 files
55

Logical operator can be refactored to optional chain

JS-W1044
Anti-pattern
Minor
8 months ago 8 months old
Seen in 31 files
362

Unnecessary lambda expression

PYL-W0108
Anti-pattern
Major
5 months ago 5 months old
Seen in 1 file
1

Statement not reachable on execution

PYL-W0101
Anti-pattern
Critical
5 months ago 5 months old
Seen in 1 file
1

Found new operators with the String, Number and Boolean Objects

JS-0080
Anti-pattern
Minor
8 months ago a year old
Seen in 4 files
11

Found leading or trailing decimal points in numeric literals

JS-0065
Anti-pattern
Minor
8 months ago a year old
Seen in 3 files
17

The usage of __proto__ property is not recommended

JS-0084
Anti-pattern
Minor
8 months ago a year old
Seen in 2 files
3

Imported name is not used anywhere in the module

PY-W2000
Anti-pattern
Major
5 months ago 5 months old
Seen in 15 files
37

Found division operators explicitly at the beginning of regular expressions

JS-0055
Anti-pattern
Minor
8 months ago a year old
Seen in 2 files
2

Found shorthand type coercions

JS-0066
Anti-pattern
Minor
8 months ago a year old
Seen in 44 files
405

if statement can be simplified

PYL-R1703
Anti-pattern
Major
5 months ago 5 months old
Seen in 2 files
2

Void operators found

JS-0098
Anti-pattern
Minor
8 months ago a year old
Seen in 1 file
1

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

JS-0045
Anti-pattern
Minor
8 months ago a year old
Seen in 40 files
488

Found single char variable name

JS-C1002
Anti-pattern
Minor
8 months ago a year old
Seen in 40 files
532

Found empty block statements

JS-0009
Anti-pattern
Minor
8 months ago a year old
Seen in 24 files
91

Initialization in variable declarations against recommended approach

JS-0119
Anti-pattern
Minor
8 months ago a year old
Seen in 60 files
4.2k

Use shorthand property syntax for object literals

JS-0240
Anti-pattern
Minor
8 months ago a year old
Seen in 62 files
4.7k

Prefer to use $window instead of window

JS-0569
Anti-pattern
Major
8 months ago a year old
Seen in 42 files
453

Avoid using lexical declarations in case clauses

JS-0054
Anti-pattern
Minor
8 months ago a year old
Seen in 1 file
1

Detected the use of alert, confirm and prompt

JS-0052
Anti-pattern
Minor
8 months ago a year old
Seen in 12 files
37

Prefer that for-in loops should include an if statement

JS-0051
Anti-pattern
Minor
8 months ago a year old
Seen in 21 files
150

Use $document instead of document

JS-0555
Anti-pattern
Minor
8 months ago a year old
Seen in 62 files
765

Found empty functions

JS-0057
Anti-pattern
Minor
8 months ago a year old
Seen in 26 files
81

Prefer not to extend native types

JS-0061
Anti-pattern
Minor
8 months ago a year old
Seen in 6 files
14

Avoid use of == and !=

JS-0050
Anti-pattern
Minor
8 months ago a year old
Seen in 57 files
1.2k