Skip to content

Instantly share code, notes, and snippets.

@brunorozendo
Created June 14, 2019 19:52
Show Gist options
  • Save brunorozendo/5e6a8e3a4cce27501df814321100fb36 to your computer and use it in GitHub Desktop.
Save brunorozendo/5e6a8e3a4cce27501df814321100fb36 to your computer and use it in GitHub Desktop.
Codenarc gradle

build.gradle

apply plugin: 'codenarc'

codenarc {
	toolVersion = "1.4"
}


<!--
  ~ Copyright 2010 the original author or authors.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<ruleset xmlns="http://codenarc.org/ruleset/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://codenarc.org/ruleset/1.0 http://codenarc.org/ruleset-schema.xsd" xsi:noNamespaceSchemaLocation="http://codenarc.org/ruleset-schema.xsd" >
    <ruleset-ref path='rulesets/basic.xml' />
    <ruleset-ref path='rulesets/braces.xml' />
    <ruleset-ref path='rulesets/comments.xml' />
    <ruleset-ref path='rulesets/concurrency.xml' />
    <ruleset-ref path='rulesets/convention.xml' />
    <ruleset-ref path='rulesets/design.xml' />
    <ruleset-ref path='rulesets/dry.xml' />
    <ruleset-ref path='rulesets/enhanced.xml' />
    <ruleset-ref path='rulesets/exceptions.xml' />
    <ruleset-ref path='rulesets/formatting.xml' />
    <ruleset-ref path='rulesets/generic.xml' />
    <ruleset-ref path='rulesets/grails.xml' />
    <ruleset-ref path='rulesets/groovyism.xml' />
    <ruleset-ref path='rulesets/imports.xml' />
    <ruleset-ref path='rulesets/jdbc.xml' />
    <ruleset-ref path='rulesets/junit.xml' />
    <ruleset-ref path='rulesets/logging.xml' />
    <ruleset-ref path='rulesets/naming.xml' />
    <ruleset-ref path='rulesets/security.xml' />
    <ruleset-ref path='rulesets/serialization.xml' />
    <ruleset-ref path='rulesets/size.xml' />
    <ruleset-ref path='rulesets/unnecessary.xml' />
    <ruleset-ref path='rulesets/unused.xml' />
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment