Skip to content

Only run analysis when need (check and lsp) #2254

@hugo-stacks

Description

@hugo-stacks

The contract analysis (lint and checker) run on every simnet session.
Meaning that even clarinet console (or npm test) will spend some time running the linter on every contract before running.
Even though it won't do anything with the diagnostics.

Our code base tries to minimize the code paths and every simnet session sort of follow the same path, but it leads to this kind of scenarios where un-needed functions get called

Reproduce / Observe

It can be reproduced in the same way as #2253.
Except, run $ clarinet console instead of $ clarinet check

Metadata

Metadata

Assignees

No one assigned

    Labels

    simnetIssue related to the simnet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions