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

Keep whitespace format in Warning#to_hash/#to_json #191

Merged
merged 1 commit into from Nov 29, 2012

Conversation

presidentbeef
Copy link
Owner

The code formatting for warnings strips whitespace and newlines. This was because that's what Brakeman's reports needed. But since JSON is the main format used by external tools, it should just provide unmolested and syntactically legal formatted code.

This will break any tools relying on the exact code string.

@oreoshake
Copy link
Contributor

stop molesting code :shipit:

presidentbeef added a commit that referenced this pull request Nov 29, 2012
Keep whitespace format in Warning#to_hash/#to_json
@presidentbeef presidentbeef merged commit b33934a into master Nov 29, 2012
@presidentbeef presidentbeef deleted the no_formatting_in_warning_hash branch February 25, 2015 07:18
Repository owner locked and limited conversation to collaborators Feb 16, 2016
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