Skip to content

Commit 1290a9d

Browse files
author
Konrad Jamrozik
authored
Update ci-fix.md: Update LintDiff repro guidance (#24280)
1 parent afec6d0 commit 1290a9d

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

documentation/ci-fix.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,7 @@ The [LintDiff validation tool](https://github.com/Azure/azure-openapi-validator)
100100
Refer to [openapi-authoring-automated-guidelines](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md) for detailed description of all lint rules and how-to-fix guidance.
101101
If that guidance is not enough, please also refer to the [LintDiff rules.md doc](https://github.com/Azure/azure-openapi-validator/blob/main/docs/rules.md). It links to `.md` files related to given error, containing instructions how to fix them.
102102

103-
### Run linter locally:
104-
105-
#### Prerequisites:
106-
npm install -g autorest
107-
108-
#### Given a swagger spec, run linter:
109-
```
110-
autorest --v3 --spectral --validation --azure-validator [email protected]/openapi-validator@latest --input-file=<path-to-spec>
111-
```
112-
#### Given a readme file, run linter:
113-
```
114-
autorest --v3 --spectral --validation --azure-validator [email protected]/openapi-validator@latest [--tag=<readme tag>] <path-to-readme>
115-
```
116-
117-
Please see [readme](https://github.com/Azure/azure-openapi-validator/blob/main/README.md) for how to install or run tool in details.
118-
Or you can run it in [OpenAPI Hub](https://portal.azure-devex-tools.com/tools/linter).
103+
To reproduce LintDiff failures locally, see [CONTRIBUTING.md / How to locally reproduce a LintDiff failure occurring on a PR](https://github.com/Azure/azure-openapi-validator/blob/main/CONTRIBUTING.md#how-to-locally-reproduce-a-lintdiff-failure-occurring-on-a-pr).
119104

120105
## Avocado
121106

0 commit comments

Comments
 (0)