# CodeQualityExtension

API Documentation: | `CodeQualityExtension`

Known Subtypes: |
`CheckstyleExtension`
`CodeNarcExtension`
`PmdExtension`

Base Code Quality Extension.

### Properties

Property | Description
`ignoreFailures` | Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true
`reportsDir` | Replaced The directory where reports will be generated.
`sourceSets` | The source sets to be analyzed as part of the `check` and `build` tasks.
`toolVersion` | The version of the code quality tool to be used.

### Methods

No methods

### Script blocks

No script blocks

### Property details

#### ``Property`<`Boolean`>` `ignoreFailures`

Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true

Default:
  `false`

#### `File` `reportsDir`

Note: This property has been replaced by reportsDirectory.

The directory where reports will be generated.

#### ``ListProperty`<`SourceSet`>` `sourceSets`

The source sets to be analyzed as part of the `check` and `build` tasks.

Default:
  `project.sourceSets`

#### ``Property`<`String`>` `toolVersion`

The version of the code quality tool to be used.