Skip to content

CLI lint command --generate-ignore-file option override previously generated ignore file #2652

@DmitryAnansky

Description

@DmitryAnansky

Is your feature request related to a problem? Please describe.

Currently, the CLI lint command with the --generate-ignore-file option overwrites the previously generated .redocly.lint-ignore.yaml file.

That leads to a number of issues:

  • Some lint ignore records that were added manually or generated with a different configuration get deleted.
  • Command is executed against all OAS description.

The another unsolved question is to decide how scorecard-classic rules should be taken into consideration or handled separatelly.

Describe the solution you'd like

  • When the lint command with the --generate-ignore-file option is executed against a specific description, only the records related to that file should be updated or appended.
  • [UNSOLVED MYSTERY] - there should be some way to get into consideration scorecard level individual rules and allow apply ignore per API description.

Describe alternatives you've considered

Keep manually updating ignore file after generation.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions