trixie-dev / rpg-game

Getters and setters with a single statement in their bodies can be simplified

CS-R1095
Anti-pattern
Major
a year ago a year old
Seen in 6 files
55

null is being assigned to an entity that is non-nullable

CS-W1028
Anti-pattern
Major
a year ago 2 years old
Seen in 1 file
1

Method has non-nullable return type but returns null

CS-W1029
Anti-pattern
Major
a year ago 2 years old
Seen in 2 files
2

Type can be dropped from the declaration's RHS when explicitly mentioned in the LHS

CS-R1064
Anti-pattern
Major
a year ago 2 years old
Seen in 6 files
18

Explicit mention of array type and/or size is redundant when array is initialized

CS-R1045
Anti-pattern
Major
a year ago 2 years old
Seen in 4 files
4

Consider simplifying the boolean comparison expression for concision

CS-R1031
Anti-pattern
Major
2 years ago 2 years old
Seen in 1 file
1

if conditions can be merged

CS-R1039
Anti-pattern
Major
a year ago 2 years old
Seen in 1 file
1

Use brace initialization when creating a new object and setting its properties

CS-R1048
Anti-pattern
Minor
a year ago 2 years old
Seen in 3 files
4

Consider changing explicit getter and setter to auto-property

CS-R1060
Anti-pattern
Major
a year ago 2 years old
Seen in 3 files
21

Use File Scoped namespaces instead of typical namespaces

CS-R1062
Anti-pattern
Major
a year ago 2 years old
Seen in 10 files
10

Local declaration shadows class fields and properties

CS-W1030
Anti-pattern
Major
a year ago 2 years old
Seen in 1 file
1