Skip to content

v0.4.6

Choose a tag to compare

@github-actions github-actions released this 19 Jan 11:11
· 12 commits to main since this release

Added

New Detectors

Low

  • constant-decimals - prefer constants for decimals

NC (Non-Critical)

  • abstract-in-separate-file - abstract contracts should be in separate files
  • array-ranged-getter - use ranged getter for array access
  • bool-init-false - unnecessary boolean initialization to false
  • nc-combine-mappings - mappings with same key can be combined into struct
  • complex-require - complex require statements should be simplified
  • constant-expression - expressions that could be constants
  • constructor-emit-event - constructors should emit events
  • delete-instead-of-false - use delete instead of setting to false
  • delete-instead-of-zero - use delete instead of setting to zero
  • duplicate-string-literal - duplicate string literals in code
  • empty-blocks - empty code blocks
  • error-definition-no-args - error definitions without arguments
  • external-call-in-modifier - external calls in modifiers
  • floating-pragma - floating pragma version
  • initialism-capitalization - incorrect capitalization of initialisms (URL, ID)
  • initializer-emit-event - initializers should emit events
  • interfaces-contracts-same-file - interfaces and contracts in same file
  • library-in-separate-file - libraries should be in separate files
  • many-function-params - functions with too many parameters
  • many-return-values - functions with too many return values
  • mixed-int-uint-style - mixed int/uint and int256/uint256 style
  • multiple-abstract-contracts - multiple abstract contracts in one file
  • multiple-contracts - multiple contracts in one file
  • multiple-interfaces - multiple interfaces in one file
  • multiple-libraries - multiple libraries in one file
  • named-function-args - use named function arguments for clarity
  • named-returns - use named returns for clarity
  • prefer-custom-errors - use custom errors instead of require/assert
  • unnamed-revert - revert without custom error identifier
  • unused-private-function - unused private functions
  • zero-argument - literal zero as function argument