diff --git a/RULES.md b/RULES.md index 0fe2269801..3ef9211289 100644 --- a/RULES.md +++ b/RULES.md @@ -119,7 +119,6 @@ Each Notice is associated with a severity: `INFO`, `WARNING`, `ERROR`. | [`non_ascii_or_non_printable_char`](#non_ascii_or_non_printable_char) | Non ascii or non printable char in `id`. | | [`pathway_dangling_generic_node`](#pathway_dangling_generic_node) | A generic node has only one incident location in a pathway graph. | | [`pathway_loop`](#pathway_loop) | A pathway starts and ends at the same location. | -| [`platform_without_parent_station`](#platform_without_parent_station) | A platform has no `parent_station` field set. | | [`route_color_contrast`](#route_color_contrast) | Insufficient route color contrast. | | [`route_long_name_contains_short_name`](#route_long_name_contains_short_name) | Long name should not contain short name for a single route. | | [`route_short_name_too_long`](#route_short_name_too_long) | Short name of a route is too long (more than 12 characters). | @@ -145,10 +144,12 @@ Each Notice is associated with a severity: `INFO`, `WARNING`, `ERROR`. ## Table of INFOS -| Notice code | Description | -|---------------------------------------------------|---------------------------| -| [`unknown_column`](#unknown_column) | A column name is unknown. | -| [`unknown_file`](#unknown_file) | A file is unknown. | +| Notice code | Description | +|-----------------------------------------------------------------------|-----------------------------------------------| +| [`platform_without_parent_station`](#platform_without_parent_station) | A platform has no `parent_station` field set. | +| [`unknown_column`](#unknown_column) | A column name is unknown. | +| [`unknown_file`](#unknown_file) | A file is unknown. | + @@ -2302,29 +2303,6 @@ A pathway should not have same values for `from_stop_id` and `to_stop_id`. * [`pathways.txt`](http://gtfs.org/reference/static#pathwaystxt) - - -### platform_without_parent_station - -A platform has no `parent_station` field set. - -#### References -* [stops.txt specification](http://gtfs.org/reference/static/#stopstxt) -
- -#### Notice fields description -| Field name | Description | Type | -|-------------- |----------------------------------------- |--------- | -| `csvRowNumber`| Row number of the faulty record. | Long | -| `stopId` | The id of the faulty record. | String | -| `stopName` | The stop name of the faulty record. | String | -| `locationType`| The location type of the faulty record. | Integer | - -#### Affected files -* [`stops.txt`](http://gtfs.org/reference/static#stopstxt) - -
-
### route_color_contrast @@ -2840,6 +2818,29 @@ Trips should be referred to at least once in `stop_times.txt`. # More details - INFOS + + +### platform_without_parent_station + +A platform has no `parent_station` field set. + +#### References +* [stops.txt specification](http://gtfs.org/reference/static/#stopstxt) +
+ +#### Notice fields description +| Field name | Description | Type | +|-------------- |----------------------------------------- |--------- | +| `csvRowNumber`| Row number of the faulty record. | Long | +| `stopId` | The id of the faulty record. | String | +| `stopName` | The stop name of the faulty record. | String | +| `locationType`| The location type of the faulty record. | Integer | + +#### Affected files +* [`stops.txt`](http://gtfs.org/reference/static#stopstxt) + +
+
### unknown_column diff --git a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/LocationTypeSingleEntityValidator.java b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/LocationTypeSingleEntityValidator.java index 1a827e9ff3..857e4834a9 100644 --- a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/LocationTypeSingleEntityValidator.java +++ b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/LocationTypeSingleEntityValidator.java @@ -16,7 +16,7 @@ package org.mobilitydata.gtfsvalidator.validator; import static org.mobilitydata.gtfsvalidator.notice.SeverityLevel.ERROR; -import static org.mobilitydata.gtfsvalidator.notice.SeverityLevel.WARNING; +import static org.mobilitydata.gtfsvalidator.notice.SeverityLevel.INFO; import org.mobilitydata.gtfsvalidator.annotation.GtfsValidationNotice; import org.mobilitydata.gtfsvalidator.annotation.GtfsValidationNotice.FileRefs; @@ -143,7 +143,7 @@ static class LocationWithoutParentStationNotice extends ValidationNotice { * *

This is different from `location_without_parent_station` since it is less severe. */ - @GtfsValidationNotice(severity = WARNING, files = @FileRefs(GtfsStopSchema.class)) + @GtfsValidationNotice(severity = INFO, files = @FileRefs(GtfsStopSchema.class)) static class PlatformWithoutParentStationNotice extends ValidationNotice { /** Row number of the faulty record. */ @@ -156,7 +156,7 @@ static class PlatformWithoutParentStationNotice extends ValidationNotice { private final String stopName; PlatformWithoutParentStationNotice(int csvRowNumber, String stopId, String stopName) { - super(SeverityLevel.WARNING); + super(INFO); this.csvRowNumber = csvRowNumber; this.stopId = stopId; this.stopName = stopName;