Skip to content

Static Analyzer for the SDK #1

@ebuchman

Description

@ebuchman

Things to check for:

  • sensitive imports (unsafe, reflect, runtime, rand, etc.)
  • errors are properly propagated (we don't ignore err != nil)
  • integer casting/type conversions
  • sources of non-determinism:
    • randomness (can be covered by checking rand imports)
    • iterating over a map
    • time.Now or equivalent
    • floats
    • go routines
  • panics in Begin/EndBlock (these are allowed in tx handling, since they're handled by the SDK, but not in the Begin/EndBlock)

Other?

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