wip multiexpression #411
sonar.yml
on: pull_request
Analyze with Sonar
1m 7s
Annotations
9 warnings
MAJOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L27
Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()'
rule: java:S6204 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS6204&rule_key=java%3AS6204)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasW&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L31
Make LANDUSE_KIND a static final constant or non-public and provide accessors if needed.
rule: java:S1104 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS1104&rule_key=java%3AS1104)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasR&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L31
Make this "public static LANDUSE_KIND" field final
rule: java:S1444 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS1444&rule_key=java%3AS1444)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasS&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L31
Rename this field "LANDUSE_KIND" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
rule: java:S3008 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS3008&rule_key=java%3AS3008)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasT&id=protomaps_basemaps
|
CRITICAL CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L35
Define a constant instead of duplicating this literal "pedestrian" 3 times.
rule: java:S1192 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS1192&rule_key=java%3AS1192)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasQ&id=protomaps_basemaps
|
CRITICAL CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L39
Define a constant instead of duplicating this literal "landuse" 7 times.
rule: java:S1192 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS1192&rule_key=java%3AS1192)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasP&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L59
Rename this field "US_OPERATOR" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
rule: java:S3008 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS3008&rule_key=java%3AS3008)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasU&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L64
Rename this field "PROTECTION_TITLE" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
rule: java:S3008 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS3008&rule_key=java%3AS3008)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasV&id=protomaps_basemaps
|
MINOR CODE_SMELL:
src/main/java/com/protomaps/basemap/layers/Landuse.java#L76
Use isEmpty() to check whether the collection is empty or not.
rule: java:S1155 (https://sonarcloud.io/organizations/protomaps/rules?open=java%3AS1155&rule_key=java%3AS1155)
issue url: https://sonarcloud.io/project/issues?pullRequest=109&open=AYzOk--bOUZD7n8UkasY&id=protomaps_basemaps
|