Decurity / semgrep-smart-contracts

Semgrep rules for smart contracts based on DeFi exploits
Other
631 stars 87 forks source link

inefficient-state-variable-increment / inefficient-state-variable-decrement #59

Open defidegenerate opened 7 months ago

defidegenerate commented 7 months ago

Why is there no inefficient-state-variable-decrement to detect the decrement case, similar to the inefficient-state-variable-increment case?

defidegenerate commented 7 months ago

Also, the inefficient-state-variable-increment rule doesn't apply to mapping variables based on my testing. In this case, the rule is a false positive.