-
Notifications
You must be signed in to change notification settings - Fork 979
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
Detector 'Too Many Digits' is confusing, change name to 'Quantifier amount is ambiguous' #2352
Comments
Hi @sambacha, thanks for the suggestions. For the first one, the detector currently spots constants with more than 5 consecutive zeros. Would you like to see a new detector that tries to find misleading variable names instead?
That is indeed the case; it refers to the large number constant. This other example with a different variable name triggers as well: contract MyContract{
uint solidity_is_fun = 10000000000000000000;
} |
I think actually just changing the example in the Wiki would be the best thing, as that is what confused me. |
Would you like to make a PR? |
Seems like you beat me to it! Quick question: can we add a registry of the different detectors that are available for slither? Is that available somewhere? |
There is a list in the readme and the wiki. I'd like to have some site in the future but does that suffice? |
Describe the desired feature
Detector 'Too Many Digits' is confusing, change name to 'Quantifier amount is ambiguous'
Note
{@see https://github.com/crytic/slither/wiki/Detector-Documentation#too-many-digits }
The Slither Detector Guide gives us the following:
The name 'Too many Digits' would give you the impression that it is referring to the
10000000000000000000
and not the name1_ether
.Proposal: Quantifier amount is ambiguous
This should be renamed to something less ambiguous, such as:
The suggestion should read:
Consider changing the quantifier or the noun.
Digit Spacing
Also, the name for this detector to me implies something to do with digit spacing. I would also consider the following rule:
The text was updated successfully, but these errors were encountered: