Skip to content

Make it possible to configure ansible-lint ignore rules #2326

@albgus

Description

@albgus

Problem

Currently I am working in a few files with a lot of instances of a lint rule that I would like to ignore.

This is possible in ansible-lint: https://docs.ansible.com/projects/lint/configuring/#ignoring-rules-for-entire-files

The problem is that the VSCode extension is not properly loading these configuration files. I suspect because it's not actually starting the ansible-lint command in any known working directory, so it doesn't find the ignore files.

Solution

The plugin should allow ansible-lint configuration from some logical place, like the Git repo root or same directory as the playbook file.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions