Movatterモバイル変換


[0]ホーム

URL:


CodeNarcFork me on GitHub

General

Running

Using

Report Types

Rules

Developing

CodeNarc

Static Analysis for Groovy

CodeNarc analyzes Groovy code for defects, bad practices, inconsistencies, style issuesand more. A flexible framework for rules, rulesets and custom rules means it’s easy to configure CodeNarcto fit into your project. Build tool, framework support, and report generation are all enterprise ready.

CodeNarc Rules

CodeNarc triggers violations based on rules. Click the links to the left to view theindex of all rules, or individual rule categories (rulesets), such as thebasic, orimport rules. Or you cancreate your own ruleset; see how easy it is in thisscreencast.

Running CodeNarc

Run CodeNarc with theAnt Task, thecommand-line runner,Docker, oras part of your test suite. Also, plugins exist forMaven,Gradle,Grails,SonarQube,Visual Studio Code, andJenkins. See ourIntegration page for more details. Reports come in HTML, XML, or text format. Take a look at aSample CodeNarc HTML Report, or aSample CodeNarc XML Report.

Requirements

CodeNarc requires:
  • Java 1.8 or later
  • Groovy version 3.0 or later; Groovy version 4.0 or later for the 3.x.x-groovy-4.x versions of CodeNarc
  • SLF4J API and binding jar(s)
  • GMetrics or GMetrics-Groovy4 2.1.0 or later, if using the Size/Complexity rules

Get it from Maven2

For projects built usingMaven,CodeNarc is available from theMaven Central Repository
  • groupId = org.codenarc
  • artifactId = CodeNarc
  • version = 3.x.x for Groovy 3; 3.x.x-groovy-4.x for Groovy 4

Inspirations

We're inspired by the wonderfulPMD andCheckstyle Java static analysis tools, as well as the extensive Groovy inspections performed byIntelliJ IDEA.

[8]ページ先頭

©2009-2026 Movatter.jp