CheckstyleInvoker.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Require deprecation timeline to be specified when building a deprecation message

  1. … 71 more files in changeset.
Convert Checkstyle to use worker API

  1. … 4 more files in changeset.
Add upgrade guide link for checkstyle config_loc property

  1. … 1 more file in changeset.
Require documentation or explicit undocumented() when nagging of deprecations

  1. … 63 more files in changeset.
Move remaining deprecated message builder creator methods to DeprecationLogger

  1. … 24 more files in changeset.
Replace nagUserWith(builder) usages with builder.nagUser()

  1. … 61 more files in changeset.
Move DeprecationLogger to internal.deprecation package

  1. … 79 more files in changeset.
Split deprecation and incubation loggers

  1. … 22 more files in changeset.
Extract replaced configuration and replaced property message builders

  1. … 34 more files in changeset.
Introduce a specific exception type for verification failures

This introduces VerificationCheckFailedException to the Gradle API.

It's purpose is to indicate that a check task was successfully

executed but resulted in failure due to violations.

This allows other tools and Gradle logging to distinguish between

a verification tool failing to execute and one that failed for

"normal and expected" reasons.

The code quality and testing plugins are updated to use this new

exception type when appropriate.

  1. … 6 more files in changeset.
Ignore value of user provided config_loc in favor of configDirectory

This has been deprecated since May 2017

  1. … 1 more file in changeset.
Add configDirectory to Checkstyle

- Deprecate configDir

- Replace configDir with configDirectory

  1. … 9 more files in changeset.
Add configDirectory to Checkstyle

- Deprecate configDir

- Replace configDir with configDirectory

  1. … 9 more files in changeset.
Introduce ReportGenerated exceptions

  1. … 9 more files in changeset.
Deprecation progress events are enriched to allow better visualisation (#6034)

Update deprecation model; tweak deprecation messages

* some renamings in feature usage

* introduce feature usage type

* introduce contextual advice for deprecation messages

  1. … 28 more files in changeset.
Expose deprecation warning messages and stacktraces via build operations (#5881)

Expose deprecation warnings as operation progress events

- introduce split of message, warning and advice

- make deprecation progress events immutable

- rework deprecation handling/messages to support more a richer model

- update build operation progress model

- tweak existing deprecation warnings to match new model

- Add performance test + make stacktrace calculation for build ops lazy

- Always include a trace with FeatureUsage now that its always required

  1. … 65 more files in changeset.
Always report Checkstyle violations-summary from xml report (#3901)

Report Checkstyle violations from xml report, regardless of build pass/fail.

Prior to this, Checkstyle plugin would be silent unless the build failed or

ignoreFailures=true. If thresholds maxErrors and maxWarnings were not met,

reported rule violations in the XML or HTML reports were not mentioned in

build output.

With this change, if Checkstyle is configured to produce an XML report (default),

the report is parsed and violations summarised in the Checkstyle task build output.

This occurs regardless of whether the build failed or not.

Fixed #881

  1. … 1 more file in changeset.
Extract config_loc as a static property

+review REVIEW-6526

Address review items for Checkstyle configDir

+review REVIEW-6526

  1. … 1 more file in changeset.
Rename checkstyleConfigDir to configDir to be consistent with the other properties

+review REVIEW-6526

  1. … 6 more files in changeset.
Use config_loc instead of our custom checkstyleConfigDir

+review REVIEW-6526

  1. … 5 more files in changeset.
Provide alias to config_loc

This is commonly used by people and is supported in the Eclipse/IntelliJ plugins

+review REVIEW-6526

Provide checkstyleConfigDir for checkstyle.xml configs

+review REVIEW-6526

  1. … 7 more files in changeset.
GRADLE-2888 Added maxWarnings option to Checkstyle DSL. This option sets the maximum number of warnings that are tolerated before breaking the build or setting the invoked ANT task failure property.

  1. … 8 more files in changeset.
GRADLE-2888 Renamed new 'maxAllowedViolations' property to 'maxErrors' so as to match the already existing Checkstyle property, and therefore be more intuitive to Checkstyle users.

  1. … 8 more files in changeset.
Added maxAllowedViolations option to Checkstyle DSL. This option sets the maximum number of code violations that are tolerated before breaking the build or setting the invoked ANT task failure property.

  1. … 8 more files in changeset.
Polishing

+review REVIEW-6132

  1. … 1 more file in changeset.
GRADLE-3490: Delete temporary Checkstyle XML report

Signed-off-by: Martin Mosegaard Amdisen <martin.amdisen@praqma.com>

  1. … 1 more file in changeset.
GRADLE-3490: Checkstyle output when XML report is disabled

Generate the XML report in a temporary location when it is

explictly disabled. We still need to generate it, as it is

used to generate the HTML report.

Enable and update the corresponding test.

Signed-off-by: Martin Mosegaard Amdisen <martin.amdisen@praqma.com>

  1. … 1 more file in changeset.
Revert "GRADLE-3490: Build output when Checkstyle XML report is disabled"

This reverts commit 0aa085bf2e8781bbc38e84b4a9f0800d49a69a1b.

  1. … 1 more file in changeset.