8000 feat: additional validations · Issue #10 · ScopeLift/scopelint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
feat: additional validations #10
Open
@mds1

Description

@mds1

Validate that:

  • 1. Non-constant/immutable variables use camelCase
  • 2. Functions in the src and script directories are camelCase
  • 3. Contract names are PascalCase
  • 4. Imports are sorted by forge-std -> test -> script -> src, then alphabetically by path within each
  • 5. Imports use named import syntax
  • 6. Named import items are sorted alphabetically
  • 7. Only apply script checks to .s.sol files in the script directory — done in Bug fixes, bring back line numbers #9
  • 8. Check for unused imports
  • 9. In test contracts, all non function test* methods are internal or private

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0