Skip to content

Commit 93966c1

Browse files
authored
Beheer: hernoem linter naar .yaml (#309)
De `.yml` bestanden worden niet gepubliceerd, maar `.yaml` bestanden wel. Waarschijnlijk omdat GitHub pipeline configuraties `.yml` zijn die eruit worden gefilterd.
1 parent c4d6d84 commit 93966c1

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎examples/run-spectral-linter.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if ! [ -f "$1" ]; then
77
exit 1
88
fi
99

10-
spectral lint -r $CURRENT_DIRECTORY/../media/linter.yml $1
10+
spectral lint -r $CURRENT_DIRECTORY/../media/linter.yaml $1

‎js/config.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function initializeHighlightJSYaml() {
2222
});
2323
}
2424

25-
const LINTER_CONFIGURATION_PATH = 'media/linter.yml';
25+
const LINTER_CONFIGURATION_PATH = 'media/linter.yaml';
2626
let linterConfiguration;
2727
async function fetchLinterConfiguration() {
2828
const linterResponse = await fetch(LINTER_CONFIGURATION_PATH);

‎linter/run-linter-tests.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const readFile = utils.promisify(fs.readFile);
1111
const readdir = utils.promisify(fs.readdir);
1212
const writeFile = utils.promisify(fs.writeFile);
1313

14-
const LINTER_RULESET_LOCATION = path.join(__dirname, '..', 'media', 'linter.yml');
14+
const LINTER_RULESET_LOCATION = path.join(__dirname, '..', 'media', 'linter.yaml');
1515

1616
function computeTestCommand(apiLocation) {
1717
return `spectral lint -r ${LINTER_RULESET_LOCATION} ${apiLocation}/openapi.json || true`

media/linter.yml renamed to media/linter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#
1414
# ```
1515
# npm install -g @stoplight/spectral-cli
16-
# curl -L https://static.developer.overheid.nl/adr/ruleset.yaml > .linter.yml
17-
# spectral lint -r .linter.yml $OAS_URL_OR_FILE
16+
# curl -L https://static.developer.overheid.nl/adr/ruleset.yaml > .linter.yaml
17+
# spectral lint -r .linter.yaml $OAS_URL_OR_FILE
1818
# ```
1919

2020
extends: spectral:oas

0 commit comments

Comments
 (0)