toggle menu
gradle
8.11.1
API
switch theme
search in API
gradle
/
org.gradle.api.plugins.quality
/
CodeNarcExtension
Code
Narc
Extension
API
abstract
class
CodeNarcExtension
:
CodeQualityExtension
(
source
)
Configuration options for the CodeNarc plugin.
See also
Code
Narc
Plugin
Members
Constructors
Code
Narc
Extension
Link copied to clipboard
API
constructor
(
project
:
Project
)
Properties
config
Link copied to clipboard
API
open
var
config
:
TextResource
max
Priority1Violations
Link copied to clipboard
API
open
var
maxPriority1Violations
:
Int
max
Priority2Violations
Link copied to clipboard
API
open
var
maxPriority2Violations
:
Int
max
Priority3Violations
Link copied to clipboard
API
open
var
maxPriority3Violations
:
Int
report
Format
Link copied to clipboard
API
open
var
reportFormat
:
String
reports
Dir
Link copied to clipboard
API
open
var
reportsDir
:
File
source
Sets
Link copied to clipboard
API
open
var
sourceSets
:
Collection
<
SourceSet
>
tool
Version
Link copied to clipboard
API
open
var
toolVersion
:
String
Functions
get
Config
File
Link copied to clipboard
API
open
fun
getConfigFile
(
)
:
File
The CodeNarc configuration file to use.
is
Ignore
Failures
Link copied to clipboard
API
open
fun
isIgnoreFailures
(
)
:
Boolean
set
Config
File
Link copied to clipboard
API
open
fun
setConfigFile
(
file
:
File
)
The CodeNarc configuration file to use.
set
Ignore
Failures
Link copied to clipboard
API
open
fun
setIgnoreFailures
(
ignoreFailures
:
Boolean
)