在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):novoda/gradle-static-analysis-plugin开源软件地址(OpenSource Url):https://github.com/novoda/gradle-static-analysis-plugin开源编程语言(OpenSource Language):Groovy 97.6%开源软件介绍(OpenSource Introduction):[DEPRECATED] Gradle static analysis plugin
A Gradle plugin to easily apply the same setup of static analysis tools across different Android, Java or Kotlin projects. Supports Task Configuration Avoidance so that you have zero overhead in build speeds when you use this plugin! DescriptionGradle supports many popular static analysis (Checkstyle, PMD, FindBugs, etc) via a set of built-in plugins. Using these plugins in an Android module will require an additional setup to compensate for the differences between the model adopted by the Android plugin compared to the the Java one. The
Supported toolsThe plugin supports various static analysis tools for Java, Kotlin and Android projects:
Please note that the tools availability depends on the project the plugin is applied to. For more details please refer to the supported tools page. Tools in-considerationFor all tools in consideration, please refer to issues. Out-of-the-box support for Android projectsAndroid projects use a Gradle model that is not compatible with the Java one, supported by the built-in static analysis tools plugins.
Applying Add the plugin to your projectApply the plugin from jCenter as a classpath dependency buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.novoda:gradle-static-analysis-plugin:1.2'
}
}
apply plugin: 'com.novoda.static-analysis' or from the Gradle Plugins Repository: plugins {
id 'com.novoda.static-analysis' version '1.2'
}
Simple usageA typical configuration for the plugin will look like: staticAnalysis {
penalty {
maxErrors = 0
maxWarnings = 0
}
checkstyle { }
pmd { }
findbugs { }
spotbugs { }
detekt { }
lintOptions { }
} This will enable all the tools with their default settings and create Sample appThere are two sample Android projects available, one consisting of a regular app - available here - and the other comprising a multi-module setup available here. Both sample projects showcase a setup featuring Checkstyle, FindBugs, SpotBugs, PMD, Lint, Ktlint and Detekt. SnapshotsSnapshot builds from
You can find the latest snapshot version following this link. RoadmapThis project is routinely used by many Novoda projects and by other external projects with no known critical issues. Future improvements and new tool integrations can be found on the repository's issue tracker. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论