Comments (7)
I assume that you want something like this:
quality {
exclude = [
'**/com/mypackage/badcode/**'
]
}
Is it correct? If not please show your example.
from gradle-quality-plugin.
yep, that is correct in general. My sourceSet contains two folders build/generated-sources
and src/main/java
(and I can split them to different source sets for some reason). So it would be nice to exclude generated sources from analysis (generated sources is in the same package and may contains a lot of classes)
from gradle-quality-plugin.
@xvik is there any chance to get this implemented soon?
from gradle-quality-plugin.
It's already implemented but needs some polishing before publication.
The new version should be released in a couple of days.
from gradle-quality-plugin.
@xvik glad to hear, thanks
from gradle-quality-plugin.
Released 2.2.0
I suppose your configuration is something like this:
sourceSets.main {
java {
srcDir 'build/generated-sources'
}
}
So to exclude all generated classes you can use:
quality {
excludeSources = fileTree('build/genearted-sources')
}
See full description in the new docs chapter
from gradle-quality-plugin.
thank you so much
from gradle-quality-plugin.
Related Issues (20)
- Setting Spotbugs exclusion breaks cache HOT 1
- Configuring Spotbugs ReportLevel HOT 7
- Security vulnerability in dom4j HOT 1
- Failure with Gradle 6 HOT 5
- gradle 6: quality plugin breaks build because FindBugs has been removed HOT 2
- Support for Kotlin gradle DSL ? HOT 3
- 4.0.0: Failed to run Gradle SpotBugs Worker HOT 2
- plugin breaks gradle integration in IntelliJ IDEA 2020.1 EAP HOT 3
- build error with: Fatal error during transformation HOT 1
- 4.2.1 seems to break CodeNarc HOT 7
- Combining quality plugin with testsets plugin and build dashboard HOT 6
- Feature request: dependency checks for vulnerabilities HOT 1
- SpotBugs support is broken in Gradle 6.4 HOT 4
- Cannot suppress SpotBug warnings in generated code HOT 3
- Update CodeNarc to latest version (1.6.1) HOT 2
- Provide configDirectory property for Checkstyle plugin HOT 1
- Reporting enabled property deprecation warning HOT 1
- Update Spotbugs Gradle plugin to 5.0.13 HOT 2
- checkstyleMain task is failing with Gradle 8.0 upgrade HOT 2
- Update Spotbugs Gradle plugin to 5.1.4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-quality-plugin.