Skip to content

Do not run analysis on boot contracts #2253

@hugo-stacks

Description

@hugo-stacks

The linter currently runs on boot contracts.

It's invisible to the users because we don't collect the diagnostics. And it runs fairly quickly.
But it mean that it's run all the time for every simnet session for the same boot contracts.

We should avoid running it (both the linter and check_checker fwiw)

Reproduce / Observe

1️⃣ Add a log around here

            println!("unused: {}", message);

2️⃣ Run clarinet check in any clarinet project (even an empty one)

3️⃣ Observe the some lints triggered in boot contracts

unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-pox-4-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-pox-4-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-pox-4-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-2-1-reward-cycle` never read
unused: data variable `first-pox-4-reward-cycle` never read
unused: data variable `cost` never modified
unused: data variable `contract-owner` never modified

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