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

Brakeman doesn't always play nice with only_files #15

Open
nikolai-b opened this issue Oct 7, 2018 · 0 comments
Open

Brakeman doesn't always play nice with only_files #15

nikolai-b opened this issue Oct 7, 2018 · 0 comments

Comments

@nikolai-b
Copy link

presidentbeef/brakeman#1267 (comment)

Would it be possible to move to using skip-files here

something like

files = ruby_patches.map do |patch|
  patch.new_file_full_path.relative_path_from(repo_path).to_s
end
unchanged_files = Dir["**/*.rb"] - files
output = ::Brakeman.run(app_path: repo_path,
  output_formats: [:to_s],
  skip_files: unchanged_files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant