Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for generating an ignore file. #553

Open
btiernay opened this issue Sep 18, 2024 · 1 comment
Open

Add support for generating an ignore file. #553

btiernay opened this issue Sep 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@btiernay
Copy link

First off, great project!

Currently I'm doing something like this in order to generate an ignore file for use with lint and report:

vacuum report ...
jq -r '
  .resultSet.results
  | group_by(.ruleId)
  | map({
      (.[0].ruleId): map("  - " + .path)
    })
  | add
  | to_entries[]
  | "\(.key):\n\(.value | join("\n"))"
' vacuum-report-*  > vacuum.ignore.yaml

It would be nice if that was possible using an existing command.

@daveshanley daveshanley added the enhancement New feature or request label Oct 3, 2024
@lobocv
Copy link

lobocv commented Nov 26, 2024

I wrote a Go program that does this. I made it into a vacuum CLI command here
#589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants