Skip to content

check --anonymous: a way to acknowledge local-only use, so the "Rules were not verified" notice stops printing on every run #732

Done

Description

@scruffymongrel

Version: @taskless/cli 0.13.8, two local ast-grep rules, no account.

What happens: every check --anonymous prints

Notice: Rules were not verified: `--anonymous` was set. Static rules ran without verification. Run `check` without `--anonymous` to verify them.

For a project that has chosen local-only rules, that is the expected state, not something to act on. The line still lands in every check and CI log, where it reads like a warning, and nothing turns it off: there is no flag for it, and no setting in .taskless/taskless.json.

Request: a flag, or a taskless.json setting, that records "this project runs local rules only" and silences the notice. Printing it once, when the setting is first written, would be enough.

Also, two smaller things from the same first session:

  1. After init, the project's formatter and type-aware linter failed on installer-owned files (.taskless/bin/cli.mjs, cli.lock.json, taskless.json, the skill file) and on rule fixtures, until they were excluded by hand. init or detect could print the ignore patterns to add.
  2. init under pnpm dlx stops at pnpm's build-script prompt for esbuild. A line in the docs saying it is safe to answer no would save a pause.

What worked well: the create-sg-rule recipe and its quirks sections, ast for reading kinds, and verify running each fixture as a small repository, so path scoping was tested and not assumed. Both rules verified on the first try.

Activity

  1. theCodeDrift commented on Dec 2, 2026

    @theCodeDrift
    Member

    A "yes, I know, shush" flag or setting is completely reasonable. I'll get to this tonight and make it part of the next release.

  2. theCodeDrift commented on Dec 2, 2026

    @theCodeDrift
    Member

    The easiest way to do this without breaking the CLI contract was to only complain when a --anonymous was combined with runtime rules.

    In the next version, I'll also alias a --local flag which I think makes it more clear that you intended to intentionally run rules in local-only mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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