presidentbeef/brakeman — pull request #93 by presidentbeef (2012-05-17 00:42:17+00:00)
Title: Better line numbers via user_input line

Main change here is to use the line number from the "user input" when creating a Warning, if that value is provided.

This pull request improves three things:

1. Warnings will set line number from :user_input, if possible (otherwise :code)
2. No reason to pass line to Warning if it's the same as what Warning would set itself
3. Line numbers from :user_input tend to be more relavent to the warning

The tests which needed updating all reported inaccurate line numbers.