-
Notifications
You must be signed in to change notification settings - Fork 213
Description
Is your feature request related to a problem? Please describe.
We have very large OpenAPI specification files that generate thousands of rule violations. One barrier to addressing these issues is that OpenAPI specs are distributed in different repos, owned by different teams, etc., so it's in our best interest to automate as many of the fixes we can. We are phasing some rules into errors soon, and right now the output from the linter is very noisy, requiring some post-processing of the lint command output to filter down to the relevant rules.
Describe the solution you'd like
I'd love a flag that is functionally the opposite of --skip-rule. I have a large set of custom and inherited rules in our redocly config file, but for this lint invocation, I want to only lint for a specific rule, or a set of specific rules.
Describe alternatives you've considered
Right now, the best approach we've found is to use JSON output and filter via jq. It works okay, but we'd love to have the native support to save on running through the dozens of custom lint rules and generating larger JSON artifacts than necessary across all of workflows.