CodeNarcPluginTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove ConfigurableReport.setDestination(Object)

Resolves #6298.

  1. … 6 more files in changeset.
Remove deprecated methods on TestUtil (#672)

In order to use project builder correctly without having

leaking files on windows it is necessary to initialize

the test fixture for NativeServices and clean up

the test directory after building.

AbstractProjectBuilderSpec provides a nice base class

for Groovy tests.

I removed the deprecated methods since using them leads

to files lying around. Migrating all the usages to the "new"

way ensures it is used correctly.

  1. … 97 more files in changeset.
Changed unit tests to use Project or ProjectInternal instead of the implementation classes.

  1. … 32 more files in changeset.
Fix many of the code-quality test file leaks.

- There is still one which isn't clearly leaking filehandles for the

same reasons as these four were. That will require further

investigation to fix.

  1. … 3 more files in changeset.
Convert codeQuality plugins and extensions to Java

Leaving only tasks in Groovy

+review REVIEW-5933

  1. … 23 more files in changeset.
Deprecate PluginContainer.apply(Class) and PluginContainer.apply(String)

+review REVIEW-5239

  1. … 101 more files in changeset.
Add test coverage for legacy configuration properties of code quality extensions/tasks

  1. … 5 more files in changeset.
Polish code that checks contents of file collections (REVIEW-5217)

  1. … 3 more files in changeset.
Introduce TextResourceFactory

- cleaner API/DSL for creating text resources

- more modular (factory methods no longer declared in ResourceHandler)

  1. … 16 more files in changeset.
Rename some of the factory methods for creating TextResource's

- resources.text -> fileText, resources.archiveText -> archiveEntryText

  1. … 12 more files in changeset.
Introduce Codenarc(Extension)#config

- based on new TextResource abstraction

- set to replace #configFile

  1. … 5 more files in changeset.
Test fixes now that properties are not defined on assignment.

  1. … 5 more files in changeset.
Removed deprecated properties from the Checkstyle and CodeNarc task types.

  1. … 4 more files in changeset.
Bust up Matchers to detangle the project dependencies.

Also solves some building in IDEA issues.

  1. … 29 more files in changeset.
renamed HelperUtil to TestUtil (REVIEW-1626)

  1. … 145 more files in changeset.
Merge branch 'codenarc-max-violations' of git://github.com/dstine/gradle into pull-request-144

Changed DefaultTaskContainer, DefaultSourceSetContainer and DefaultConfigurationContainer to nag about the use of deprecated add() methods.

  1. … 38 more files in changeset.
expose maxPriorityViolations settings in the CodeNarc plugin (GRADLE-1742)

  1. … 3 more files in changeset.
replaced usage of SourceTask#defaultSource in Code-quality;CodeNarc and CheckstylePlugin

  1. … 4 more files in changeset.
Fixed unused imports.

Changed the code quality plugins so that they do not apply the corresponding base plugin.

  1. … 12 more files in changeset.
Extracted a bunch of stuff from code quality plugins into a common super class.

  1. … 6 more files in changeset.
- Changed the CodeNarc plugin so it works more like the other code quality plugins. - Removed CodeQualityExtension.project, and checkTasks.

  1. … 11 more files in changeset.
Some specific test for the new reporting DSL

  1. … 1 more file in changeset.
changed CodeQualityExtension.ignoreFailures from Boolean to boolean (now that convention mapping works for primitive types)

  1. … 5 more files in changeset.
generalized CodeNarc plugin

- only applies reporting-base instead of groovy-base plugin

- also configures tasks not added by the plugin (as good as it can)

Note: If this is to stay, similar changes should be made to all other code quality plugins. Besides, it might be worthwile to make the plugins add a 'codeQuality' lifecycle task.

  1. … 6 more files in changeset.
consistent capitalization of "classpath" throughout code quality plugins

  1. … 5 more files in changeset.
consistent capitalization of "classpath" throughout code quality plugins

  1. … 7 more files in changeset.
reworked codenarc plugin

notably:

- turn into its own plugin

- introduce checkstyle configuration (don't hardcode the codenarc version)

- configure via extension object

- improve tests and move them into code-quality project

- implement in groovy

    • -0
    • +138
    ./CodeNarcPluginTest.groovy
  1. … 7 more files in changeset.