plugins {
id("nebula.lint") version "17.0.0"
}
gradleLint.rules = ['unused-dependency']
命令
gradle-6.8.1/bin/gradle autoLintGradle
输出示例
> Task :autoLintGradle
This project contains lint violations. A complete listing of the violations follows.
Because none were serious, the build's overall status was unaffected.
..............
warning unused-dependency this dependency should be removed since its artifact is empty (no auto-fix available)
build.gradle:77
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.6.6'
✖ 30 problems (0 errors, 30 warnings)
To apply fixes automatically, run fixGradleLint, review, and commit the changes.
1条答案
按热度按时间w7t8yxp51#
在第17版之后似乎发生了一些变化。这应该是可行的,我测试了一下:
build.gradle
命令
输出示例
其他注意事项
nebula lint插件17.X版
星云lint插件18.X版
(No如果我发现了,我会把它填上的!)
多模块项目
我还不知道怎么让它在一个上面工作。只是一个简单的项目。