Skip to content

Commit 47bac35

Browse files
doc: remove -s alias from docs
1 parent 11539a6 commit 47bac35

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/guides/2-cli.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Other options include:
3939
--stdin-filepath path to a file to pretend that stdin comes from [string]
4040
--resolver path to custom json-ref-resolver instance [string]
4141
-r, --ruleset path/URL to a ruleset file [string]
42-
--scoring-config path/URL to a scoring config file [string]
42+
--scoring-config path/URL to a scoring config file [string]
4343
-F, --fail-severity results of this level or above will trigger a failure exit code
4444
[string] [choices: "error", "warn", "info", "hint"] [default: "error"]
4545
-D, --display-only-failures only output results equal to or greater than --fail-severity [boolean] [default: false]
@@ -72,20 +72,14 @@ The scoring is produced in two different metrics:
7272

7373
Also it introduces a quality gate, were an API scoring below the specific threshold will fail in a pipeline.
7474

75-
Enabling scoring is done using a new parameter called --scoring-config or -s and the scoring configuration file, where you can define how an error or a warning affects to the scoring
75+
Enabling scoring is done using a new parameter called --scoring-config and the scoring configuration file, where you can define how an error or a warning affects to the scoring
7676

7777
Usage:
7878

7979
```bash
8080
spectral lint ./reference/**/*.oas*.{json,yml,yaml} --ruleset mycustomruleset.js --scoring-config ./scoringFile.json
8181
```
8282

83-
or
84-
85-
```bash
86-
spectral lint ./reference/**/*.oas*.{json,yml,yaml} -r mycustomruleset.js -s ./scoringFile.json
87-
```
88-
8983
Heres an example of this scoringFile config file:
9084

9185
```

0 commit comments

Comments
 (0)