Skip to content

Commit

Permalink
Merge pull request #1006 from ibi-group/fix-mobility-data-validation-…
Browse files Browse the repository at this point in the history
…again

Upgrade Mobility Data Validator to 4.2.0
  • Loading branch information
miles-grant-ibigroup authored Jan 4, 2024
2 parents 6daab37 + e3e6bc9 commit 98807cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ tmp/
.tags
*.pid

# Ignore mobility data jar for building rules
*.jar

# Optional npm cache directory
.npm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const MobilityDataValidationResult = ({notice}) => {
<p><Markdown>{rule.description || ''}</Markdown></p>
<p>
<a
href={`https://gtfs-validator.mobilitydata.org/rules.html#${notice.code}`}
href={`https://gtfs-validator.mobilitydata.org/rules.html#${notice.code}-rule`}
target='_blank'
rel='noreferrer'
>
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/components/validation/rules.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"cover-end-to-end": "cross-env COLLECT_COVERAGE=true npm run test-end-to-end",
"deploy": "mastarm deploy --minify --env production",
"flow": "mastarm flow",
"import-mobility-data": "wget https://github.com/MobilityData/gtfs-validator/releases/download/v4.1.0/gtfs-validator-4.1.0-cli.jar && java -jar gtfs-validator-4.1.0-cli.jar -n -o ./lib/manager/components/validation/ && rm ./lib/manager/components/validation/rules.json && mv ./lib/manager/components/validation/notice_schema.json ./lib/manager/components/validation/rules.json",
"import-mobility-data": "wget https://github.com/MobilityData/gtfs-validator/releases/download/v4.2.0/gtfs-validator-4.2.0-cli.jar && java -jar gtfs-validator-4.2.0-cli.jar -n -o ./lib/manager/components/validation/ && rm ./lib/manager/components/validation/rules.json && mv ./lib/manager/components/validation/notice_schema.json ./lib/manager/components/validation/rules.json",
"lint": "mastarm lint __tests__ lib scripts --quiet",
"lint-messages": "node scripts/lint-messages.js",
"postinstall": "patch-package && husky install",
Expand Down

0 comments on commit 98807cf

Please sign in to comment.