-
Notifications
You must be signed in to change notification settings - Fork 962
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
Option to exclude filename and lines from detector message #2222
Labels
Comments
Fwiw, there are multiple machine readable formats available |
Yes, but the detector messages contain such location info regardless of output format. The option I am proposing should exclude these irrespective of the output format. |
DarkaMaul
added a commit
that referenced
this issue
Apr 16, 2024
This PR adds a new parameter to slither (--exlude-location) that exclude locations information from printer output. Closes #2222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
Currently, the detector messages always include the location (filename and lines) in the results. Examples:
ReentranceExploit.get_money() (ReentrancyExploit.sol#35-37) allows anyone to destruct the contract
interface_conversion.tester (interface_conversion.vy#4) should be constant
Proposed Behavior
An optional argument, say
--exclude-location
, that excludes the location information (filename and lines) from the detector messages in the results.Insipiration
Having the location info in the message is especially noisy in VS code since you anyways know which line it is referring to.
Also makes it difficult to parse these messages when building a third party integration.
The text was updated successfully, but these errors were encountered: