Règles de validation
Le catalogue ci-dessous liste chaque règle compilée dans gapline. Filtrez par sévérité, par stage, ou cherchez un ID. Utilisez le rule_id matché comme argument de --disable-rule pour faire taire une règle sur un run.
92 rules
54 errors
33 warnings
5 infos
Severity
Stage
| Rule ID | Severity | Stage |
|---|---|---|
block_id_trip_overlap | Error | Semantic |
calendar_dates_coherence | Warning | Semantic |
calendar_dates_service_not_in_calendar | Warning | Semantic |
calendar_ranges | Error | Semantic |
case_sensitive_name | Error | Structural |
conveyal_trip_without_shape | Warning | Semantic |
coordinates_near_origin | Warning | Semantic |
coordinates_near_pole | Warning | Semantic |
csv_parsing_failed | Error | Structural |
duplicate_coordinates | Warning | Semantic |
duplicate_key | Error | Semantic |
duplicated_column | Error | Structural |
empty_column_name | Error | Structural |
empty_file | Error | Structural |
empty_row | Warning | Structural |
etalab_missing_contact | Warning | Semantic |
feed_coverage | Warning | Semantic |
field_definition_agency | Error | Semantic |
field_definition_attributions | Error | Semantic |
field_definition_feed_info | Warning | Semantic |
field_definition_pathways | Error | Semantic |
field_definition_routes | Error | Semantic |
field_definition_stop_times | Error | Semantic |
field_definition_stops | Error | Semantic |
field_definition_transfers | Error | Semantic |
field_definition_translations | Error | Semantic |
field_definition_trips | Error | Semantic |
field_type_validator | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
foreign_key_violation | Error | Semantic |
frequencies_coherence | Error | Semantic |
google_coordinates_in_stop_name | Warning | Semantic |
google_identical_route_colors | Warning | Semantic |
invalid_input_files_in_subfolder | Error | Structural |
invalid_parent_type | Error | Semantic |
invalid_row_length | Error | Structural |
low_trip_activity | Warning | Semantic |
missing_agency_email | Info | Semantic |
missing_bikes_info | Info | Semantic |
missing_calendar_and_calendar_date_files | Error | Structural |
missing_direction_id | Warning | Semantic |
missing_header | Error | Structural |
missing_recommended_file | Warning | Structural |
missing_required_column | Error | Structural |
missing_required_file | Error | Structural |
missing_route_colors | Info | Semantic |
missing_wheelchair_info | Warning | Semantic |
missing_wheelchair_info | Warning | Semantic |
number_out_of_range | Error | Semantic |
otp_missing_feed_version | Warning | Semantic |
otp_trip_too_few_stops | Error | Semantic |
pathway_validation | Error | Semantic |
redundant_route_name | Warning | Semantic |
route_short_name_too_long | Warning | Semantic |
route_type_semantics | Warning | Semantic |
shape_geometry | Warning | Semantic |
speed_validation | Warning | Semantic |
stop_name_all_caps | Warning | Semantic |
stop_too_far_from_shape | Warning | Semantic |
text_validator | Warning | Semantic |
time_sequence | Error | Semantic |
too_many_rows | Error | Structural |
transfer_validation | Error | Semantic |
unknown_column | Info | Structural |
unknown_file | Info | Structural |
unused_agency | Warning | Semantic |
unused_fare | Warning | Semantic |
unused_route | Warning | Semantic |
unused_service | Warning | Semantic |
unused_shape | Warning | Semantic |
unused_station | Warning | Semantic |
unused_stop | Warning | Semantic |
Comment cette table est construite
Section intitulée « Comment cette table est construite »Les règles sont dumpées depuis le registre Rust avec gapline rules list --format json :
gapline rules list --format json -o validation-rules.jsonLe JSON est committé dans le repo de docs. Une nouvelle release rafraîchit le fichier, et la table ci-dessus reprend la mise à jour au prochain build — pas de synchro manuelle.
Politique de sévérité
Section intitulée « Politique de sévérité »- Error — le flux n’est pas conforme. Les consommateurs en aval rejettent les lignes fautives.
- Warning — le flux est conforme mais probablement cassé. À investiguer.
- Info — suggestion de bonne pratique.
Voir concepts / sévérités pour la politique complète et comment --min-severity promeut les avertissements en bloquants.
- Structural — la forme du flux : fichiers requis, parsabilité CSV, présence d’en-têtes, validité des colonnes. Tourne en premier ; rien en aval n’est pertinent si ces règles échouent.
- Semantic — tout ce qui demande le modèle de données parsé : valeurs de champs, clés étrangères, cohérence des horaires, bonnes pratiques.
Voir aussi
Section intitulée « Voir aussi »gapline rules list— énumérer les règles d’un build local.gapline validate— désactiver une règle via--disable-rule.- Concepts / Sévérités — quand promouvoir un warning.