All Projects → xvik → Gradle Quality Plugin

xvik / Gradle Quality Plugin

Licence: mit
Gradle quality plugin for Java and Groovy

Programming Languages

groovy
2714 projects

Projects that are alternatives of or similar to Gradle Quality Plugin

Gradle Code Quality Tools Plugin
Gradle plugin that generates ErrorProne, Findbugs, Checkstyle, PMD, CPD, Lint, Detekt & Ktlint Tasks for every subproject.
Stars: ✭ 282 (+190.72%)
Mutual labels:  gradle, gradle-plugin, checkstyle, findbugs, pmd
Gradle Static Analysis Plugin
Easy setup of static analysis tools for Android and Java projects.
Stars: ✭ 398 (+310.31%)
Mutual labels:  gradle, gradle-plugin, checkstyle, findbugs, pmd
Quality Checks
Gradle plugin which includes Checkstyle, FindBugs, and PMD basic configuration.
Stars: ✭ 38 (-60.82%)
Mutual labels:  gradle, checkstyle, findbugs, pmd
Gnag
A Gradle plugin that helps facilitate GitHub PR checking and automatic commenting of violations.
Stars: ✭ 120 (+23.71%)
Mutual labels:  gradle, checkstyle, findbugs, pmd
Codeanalysis
Android静态代码分析
Stars: ✭ 31 (-68.04%)
Mutual labels:  gradle-plugin, checkstyle, findbugs, pmd
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (-62.89%)
Mutual labels:  gradle, findbugs, pmd, checkstyle
Kotlin Android Starter
[Kotlin Android] Kotlin Android starter based MVP/Dagger2/RxJava2/Robolectric/Espresso/Mockito. It provides a generator to fast create a Kotlin Android project.
Stars: ✭ 589 (+507.22%)
Mutual labels:  checkstyle, findbugs, pmd
Warnings Ng Plugin
Jenkins Warnings Plugin - Next Generation
Stars: ✭ 248 (+155.67%)
Mutual labels:  checkstyle, findbugs, pmd
Qulice
Quality Police for Java projects
Stars: ✭ 250 (+157.73%)
Mutual labels:  quality, checkstyle, pmd
qulice
Quality Police for Java projects: aggregator of Checkstyle, PMD, and SpotBugs
Stars: ✭ 286 (+194.85%)
Mutual labels:  quality, pmd, checkstyle
Debt-Manager
A personal app to store people that owe you money or you owe money to. "Mo Money Mo Problems" 🎵 - The Notorious B.I.G. 😎
Stars: ✭ 22 (-77.32%)
Mutual labels:  findbugs, pmd, checkstyle
java-quality-checks
No description or website provided.
Stars: ✭ 33 (-65.98%)
Mutual labels:  findbugs, pmd, checkstyle
Okcheck
Incremental scan,integrate Lint、KtLint、UnitTest、Checkstyle、Findbugs、Pmd, powerful and easy to use
Stars: ✭ 285 (+193.81%)
Mutual labels:  checkstyle, findbugs, pmd
Android Starter
[Android Architecture] Android starter based on MVP/Dagger2/RxJava2/Robolectric/Espresso/Mockito. It provides a generator to fast create a Android template project.
Stars: ✭ 522 (+438.14%)
Mutual labels:  checkstyle, findbugs, pmd
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+634.02%)
Mutual labels:  gradle, gradle-plugin
Ktlint Gradle
A ktlint gradle plugin
Stars: ✭ 713 (+635.05%)
Mutual labels:  gradle, gradle-plugin
Violations Lib
Java library for parsing report files from static code analysis.
Stars: ✭ 94 (-3.09%)
Mutual labels:  checkstyle, findbugs
Gradle Git
Git plugin for Gradle
Stars: ✭ 559 (+476.29%)
Mutual labels:  gradle, gradle-plugin
Plantuml Gradle Plugin
Gradle plugin to build PlantUML diagrams from code (for living and up-to-date documentation)
Stars: ✭ 27 (-72.16%)
Mutual labels:  gradle, gradle-plugin
Gradle Buildconfig Plugin
A plugin for generating BuildConstants for any kind of Gradle projects: Java, Kotlin, Groovy, etc. Designed for KTS scripts.
Stars: ✭ 85 (-12.37%)
Mutual labels:  gradle, gradle-plugin

Gradle quality plugin

License Build Status Appveyor build status codecov

DOCUMENTATION http://xvik.github.io/gradle-quality-plugin

About

Static code analysis for Java and Groovy projects using Checkstyle, PMD, CPD, SpotBugs and CodeNarc. Plugin implements unified console output for all quality plugins, which greatly simplifies developer workflow: only console required for working with violations and makes it feel the same as java compiler errors.

For example, in IntelliJ Idea it would look like:

Features:

  • Zero configuration by default: provided opinionated configs applied to all quality plugins
    • Default configuration files may be customized
  • Adds extra javac lint options to see more warnings
  • Complete console output for all quality plugins
  • Html and xml reports for all plugins (custom xsl used for findbugs html report because it can't generate both xml and html reports)
  • Grouping tasks to run registered quality plugins for exact source set (e.g. checkQualityMain)
Summary
  • Configuration: quality
  • Tasks:
    • initQualityConfig - copy default configs for customization
    • checkQuality[Main] - run quality tasks for main (or any other) source set
  • Enable plugins: Checkstyle, PMD, SpotBugs, CodeNarc

Setup

NOTE: when updating plugin version in your project don't forget to call clean task to remove cached configs from previous plugin version

JCenter Maven Central Gradle Plugin Portal

plugins {
    id 'ru.vyarus.quality' version '4.5.0'
}

OR

buildscript {
    repositories {
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath 'ru.vyarus:gradle-quality-plugin:4.5.0'
    }
}
apply plugin: 'ru.vyarus.quality'

Minimal requirements: java 8, gradle 5.6

Compatibility

Plugin compiled for java 8, compatible with java 11

Gradle Version
5.6 4.5.0
5.1 4.2.2
4.1 3.4.0
older 2.4.0

Java tools require sourceCompatibility=1.8 (or above).

Version 3.3.0 is the latest supporting sourceCompatibility=1.6

Snapshots

Snapshots may be used through JitPack
  • Go to JitPack project page
  • Select Commits section and click Get it on commit you want to use (you may need to wait while version builds if no one requested it before) or use master-SNAPSHOT to use the most recent snapshot

For gradle before 6.0 use buildscript block with required commit hash as version:

buildscript {
    repositories {
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath 'ru.vyarus:gradle-quality-plugin:b9474cab84'
    }
}
apply plugin: 'ru.vyarus.quality'

For gradle 6.0 and above:

  • Add to settings.gradle (top most!) with required commit hash as version:

    pluginManagement {
        resolutionStrategy {
            eachPlugin {
                if (requested.id.namespace == 'ru.vyarus.quality') {
                    useModule('ru.vyarus:gradle-quality-plugin:b9474cab84')
                }
            }
        }
        repositories {
            maven { url 'https://jitpack.io' }
            gradlePluginPortal()          
        }
    }    
    
  • Use plugin without declaring version:

    plugins {
        id 'ru.vyarus.quality'
    }
    

Usage

Read documentation

Might also like


gradle plugin generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].