Skip to content

Irony alert: Extension tends to ignore the lint ignore file #86

@arv2k1

Description

@arv2k1

What happened?

The Redocly VS Code extension does not respect the .redocly.lint-ignore.yaml file.
Even with valid entries in the ignore file, the extension continues to show all corresponding lint errors in the editor.
Running redocly lint via the CLI correctly ignores those issues, so the file itself is valid.

What should have happened instead?

The extension should honor .redocly.lint-ignore.yaml the same way the CLI does: any rule ignores listed in the ignore file should be suppressed in the VS Code linting output.

Minimal reproducible OpenAPI snippet

oas.yaml

openapi: 3.1.0
info:
  title: Test API
  version: 1.0.0
paths:
  /test:
    get:
      responses:
        '200':
          description: OK

redocly.yaml

rules:
  no-empty-servers: error

.redocly.lint-ignore.yaml (Auto generated using redocly lint --generate-ignore-file oas.yaml)

oas.yaml:
  no-empty-servers:
    - '#/openapi'

Screenshots

CLI: Before adding lint-ignore file

Image

CLI: After adding lint-ignore file

Image

Extension: Before & After adding lint-ignore file

Image

Additional context

Extension Version: 0.9.25
CLI Version: 2.12.0
OAS Version: 3.1.0
OS: Mac
Behavior persists after reloading the window and reopening the workspace.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions