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

Revert "refactor: IgnoreConfig uses FilePath" #1623

Merged

Conversation

bradparker
Copy link
Contributor

This reverts commit 52bfc9b.

It seems that this might break --interactive-ignore. Specifically on
line 39 of lib/brakeman/report/interactive.rb.

if @ignore_config.file and not @ignore_config.file.empty?

When asking for the ignore file location @ignore_config.file is
checked for emptiness but Brakeman::FilePath has no empty? method and
so this fails.

This reverts commit 52bfc9b.

It seems that this might break --interactive-ignore. Specifically on
line 39 of lib/brakeman/report/interactive.rb.

https://github.com/presidentbeef/brakeman/blob/53db6f585679f648ce761421a9eba2e02e18a4a1/lib/brakeman/report/ignore/interactive.rb#L39

When asking for the ignore file location `@ignore_config.file` is
checked for emptiness but Brakeman::FilePath has no `empty?` method and
so this fails.
@bradparker
Copy link
Contributor Author

@presidentbeef just in case this is useful. Understand if you'd prefer to roll-forward.

@presidentbeef presidentbeef merged commit b6b73a9 into presidentbeef:main Jul 20, 2021
Repository owner locked and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants