-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
Include the line number when using HTML output format #683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly ready. Ideally you could include the column number too, but could be in a separate PR. Thanks for the PR!
@@ -263,6 +263,7 @@ def report(manager, fileobj, sev_level, conf_level, lines=-1): | |||
<b>Severity: </b>{severity}<br> | |||
<b>Confidence: </b>{confidence}<br> | |||
<b>File: </b><a href="{path}" target="_blank">{path}</a> <br> | |||
<b>Line number: </b>{line_number}</a> <br> | |||
<b>More info: </b><a href="{url}" target="_blank">{url}</a><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about also adding the column number? Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! I'll attempt that change in another PR. Thanks for taking a look!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, just noticed a stray in your HTML
…using HTML output format. Resolves: #672
This commit is to include the line number of a given occurrence when using HTML output format.
Resolves: #672