GS/BS
← Standards directory
Code quality

CodeNarc.

Check Groovy code against selected rules

Choose the Groovy rulesets that apply to application code and build scripts. Store file-level findings with rule identifiers and review each new violation.

Groovy

Community rubric · v1

The evidence

Evidence coverage3 / 8
3 supported · 5 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    Size and complexity rules set explicit limits for Groovy methods and classes. Configurable maximums determine when a violation is reported.

    Cited source ↗
  • Measurement

    Verified

    The CodeNarc CLI accepts a ruleset and source scope and emits a report in selectable formats, including structured output.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Verified

    Gradle's CodeNarc plugin attaches analysis to the check lifecycle and exposes per-priority violation limits that can fail the build.

    Cited source ↗
  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Unknown

    No reviewed evidence is recorded for this dimension.

    Has another team put it to work? Contribute evidence ↗

  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Agent prompt

Use CodeNarc in this repository to meet this standard: Check Groovy code against selected rules. Choose the Groovy rulesets that apply to application code and build scripts. Store file-level findings with rule identifiers and review each new violation. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

CodeNarc documentation ↗