Closed dovogt closed 6 years ago
Hello, I have it active. The logs will still be displayed
What are your gradle and quality plugin versions? Is it multi-module project (maybe quality.consoleReporting = false
applied not to all modules)?
And the picture above slightly confuses me: do you disable it in build.gradle
(with quality.consoleReporting = false
) or somewhere in code? (just to be sure)
I tried on gradle 4.8 and quality plugin 3.1.1 and its working.
I have only one project. It may be that the high-priority warnings are still output to the console? The problem I have since Gradle 3. * Currently I use gradle 4.10.2 and quality plugin 3.2.0
`quality { /**
Only manualy registered quality plugins will be configured. */ boolean autoRegistration = true
// Enable/disable tools (when auto registration disabled control configuration appliance) checkstyle = true spotbugs = true pmd = true codenarc = false
// Tools versions checkstyleVersion = '8.12' spotbugsVersion = '3.1.8' pmdVersion = '6.7.0'
/**
memory consumption. Default is 'max'. */ spotbugsEffort = 'max'
/**
If set to high, only high priority bugs are reported. Default is 'medium'. */ spotbugsLevel = 'high'
/**
Full list of options: http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html#BHCJCABJ */ lintOptions = []
/**
When false, no html reports will be built. True by default. */ htmlReports = false
/**
are just printed to console. */ strict = false
/**
checkQualityMain (or other source set) grouping task. */ boolean enabled = true
/**
True by default. */ boolean consoleReporting = false
/**
@see org.gradle.api.tasks.SourceTask#exclude(java.lang.Iterable) (base class for all quality tasks) */ exclude = ['*/ClassInfo.java']
/**
filter by package and filename is not sufficient. */ //excludeSources
/**
Default is [sourceSets.main] to apply only for project sources, excluding tests. */ //sourceSets
/**
Mmm, I think I got your situation. If this is exact extract from your build file then its incorrect (and it's my bad).
Before, I put part of source code (extension class) into the documentation (and seems you copy pasted it from old doc). New doc is correct.
Look, for example,
quality {
boolean autoRegistration = true
}
For gradle is local variable declaration, which doesn't actually do anything, and
quality {
autoRegistration = true
}
is quality extension configuration (changing it's value).
So please remove all boolean in your config so only property names remain (like in docs) and consoleReporting = false
will work correctly.
Sorry for misguiding.
Oh sorry, I did not see that. Now it works :-) Thank you
When you run Checkstyle, PMD, and Spotbugs, the messages are output to the console. Is it possible to suppress the messages? The logfiles become very big. That's why I would like to activate it.
Console output: checkstyle
pmd
spotbugs