You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow us to have the spec repo define the set of rule they want to onboard/disable without being blocked by the azure core packages release as well as combining from multiple sources.
Proposal
Allow to extends ruleset from a file. The file must be yaml and in the same structure as the ruleset structure today
To use a file instead of extending a ruleset defined in a package name we can point to the file with the file: prefix
linter:
extends:
- file:path/to/file.yaml
Example
Example file content
extends:
- "@typespec/best-practices/recommended"
- "@typespec/http/recommended"enable:
"@typespec/best-practices/new-rule": truedisable:
"@typespec/best-practices/foo": "This rule is too much"
Example usage:
In tspconfig.yaml
linter:
extends:
- file:./../my-common-rules.yaml
Example of what the azure-rest-api-specs repo could do
linter:
extends:
- file:../../../typespec-rulesets/data-plane.yaml
- file:../../../typespec-rulesets/arm.yaml # or
Other uses
this pattern would also enable use to have a linter rule versioning system where we create a new ruleset file when we add new linter rule and yopu need to use the latest when you update
The text was updated successfully, but these errors were encountered:
This would allow us to have the spec repo define the set of rule they want to onboard/disable without being blocked by the azure core packages release as well as combining from multiple sources.
Proposal
Allow to extends ruleset from a file. The file must be yaml and in the same structure as the ruleset structure today
Usage
To use a file instead of extending a ruleset defined in a package name we can point to the file with the
file:
prefixExample
Example file content
Example usage:
In tspconfig.yaml
Example of what the azure-rest-api-specs repo could do
Other uses
this pattern would also enable use to have a linter rule versioning system where we create a new ruleset file when we add new linter rule and yopu need to use the latest when you update
The text was updated successfully, but these errors were encountered: