Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 35 | [SRC]def DefaultArtifactHandler(ConfigurationContainer config..ctFactory) { [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler. The def keyword is unneeded on constructors |
UnnecessaryPackageReference | 3 | 40 | [SRC]private PublishArtifact pushArtifact(org.gradle.api.arti..reClosure) { [MSG]The org.gradle.api.artifacts.Configuration class was explicitly imported, so specifying the package name is not necessary |
UnnecessaryDefInMethodDeclaration | 3 | 55 | [SRC]public def methodMissing(String name, args) { [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler. The def keyword is unneeded when a method is marked public |
UnnecessaryGetter | 3 | 58 | [SRC]if (!getMetaClass().respondsTo(this, name, args.size())) { [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler. getMetaClass() can probably be rewritten as metaClass |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 34 | [SRC]def DefaultDependencyHandler(ConfigurationContainer conf..encyFactory, [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 93 | [SRC]if (!getMetaClass().respondsTo(this, name, args.size())) { [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. getMetaClass() can probably be rewritten as metaClass |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 29 | [SRC]def ModuleFactoryDelegate(ClientModule clientModule, Dep..cyFactory) { [MSG]Violation in class org.gradle.api.internal.artifacts.dsl.dependencies.ModuleFactoryDelegate. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryParenthesesForMethodCallWithClosure | 3 | 33 | [SRC]node."${childNodeName ?: 'resources'}"() { [MSG]Violation in class org.gradle.api.internal.file.AntFileCollectionBuilder. Parentheses in the 'null' method call are unnecessary and can be removed. |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 24 | [SRC]def AntFileCollectionMatchingTaskBuilder(Iterable<Direct..fileTrees) { [MSG]Violation in class org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 24 | [SRC]def AntFileTreeBuilder(Map<String, File> files) { [MSG]Violation in class org.gradle.api.internal.file.AntFileTreeBuilder. The def keyword is unneeded on constructors |
UnnecessaryParenthesesForMethodCallWithClosure | 3 | 29 | [SRC]node."${childNodeName ?: 'resources'}"() { [MSG]Violation in class org.gradle.api.internal.file.AntFileTreeBuilder. Parentheses in the 'null' method call are unnecessary and can be removed. |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 32 | [SRC]def DefaultAntBuilder(Project gradleProject) { [MSG]Violation in class org.gradle.api.internal.project.DefaultAntBuilder. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 36 | [SRC]def Object invokeMethod(String methodName, Object args) { [MSG]Violation in class org.gradle.api.internal.project.DefaultAntBuilder. The def keyword is unneeded when a method returns the Object type |
UnnecessaryOverridingMethod | 3 | 36 | [SRC]def Object invokeMethod(String methodName, Object args) { [MSG]Violation in class DefaultAntBuilder. The method invokeMethod contains no logic and can be safely deleted |
UnnecessaryDefInMethodDeclaration | 3 | 44 | [SRC]private def doSetProperty(String property, newValue) { [MSG]Violation in class org.gradle.api.internal.project.DefaultAntBuilder. The def keyword is unneeded when a method is marked private |
UnnecessaryGetter | 3 | 75 | [SRC]antProject.setUserProperty(MagicNames.ANT_FILE, file.get..olutePath()) [MSG]Violation in class org.gradle.api.internal.project.DefaultAntBuilder. getAbsolutePath() can probably be rewritten as absolutePath |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 31 | [SRC]def DefaultIsolatedAntBuilder(ClassPathRegistry classPat..erFactory) { [MSG]Violation in class org.gradle.api.internal.project.DefaultIsolatedAntBuilder. The def keyword is unneeded on constructors |
UnnecessaryDotClass | 3 | 103 | [SRC]Object antBuilder = gradleLoader.loadClass(BasicAntBuild..ewInstance() [MSG]BasicAntBuilder.class can be rewritten as BasicAntBuilder |
UnnecessaryDotClass | 3 | 105 | [SRC]Object antLogger = gradleLoader.loadClass(AntLoggingAdap..ewInstance() [MSG]AntLoggingAdapter.class can be rewritten as AntLoggingAdapter |
UnnecessaryGetter | 3 | 106 | [SRC]antBuilder.project.removeBuildListener(antBuilder.projec..teners()[0]) [MSG]Violation in class org.gradle.api.internal.project.DefaultIsolatedAntBuilder. getBuildListeners() can probably be rewritten as buildListeners |
UnnecessaryDefInMethodDeclaration | 3 | 124 | [SRC]def AntBuilderDelegate(builder, antlibClassLoader) { [MSG]Violation in class org.gradle.api.internal.project.AntBuilderDelegate. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 29 | [SRC]def void apply(Closure closure) { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 33 | [SRC]def void apply(Map options) { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 37 | [SRC]def ScriptHandler getBuildscript() { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 41 | [SRC]def void buildscript(Closure configureClosure) { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 45 | [SRC]def StandardOutputCapture getStandardOutputCapture() { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 49 | [SRC]def LoggingManager getLogging() { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 53 | [SRC]def Logger getLogger() { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 57 | [SRC]def String toString() { [MSG]Violation in class org.gradle.api.internal.project.ProjectScript. The def keyword is unneeded when a method specifies a return type |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedPrivateField | 2 | 35 | [SRC]private static Logger logger = LoggerFactory.getLogger(A..ovyCompiler) [MSG]The field logger is not used within the class org.gradle.api.internal.tasks.compile.AntGroovyCompiler |
UnnecessaryDefInMethodDeclaration | 3 | 42 | [SRC]def AntGroovyCompiler(IsolatedAntBuilder ant, ClassPathR..hRegistry) { [MSG]Violation in class org.gradle.api.internal.tasks.compile.AntGroovyCompiler. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedPrivateField | 2 | 27 | [SRC]private static Logger logger = LoggerFactory.getLogger(A..alaCompiler) [MSG]The field logger is not used within the class org.gradle.api.internal.tasks.scala.AntScalaCompiler |
UnnecessaryDefInMethodDeclaration | 3 | 33 | [SRC]def AntScalaCompiler(IsolatedAntBuilder antBuilder) { [MSG]Violation in class org.gradle.api.internal.tasks.scala.AntScalaCompiler. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 39 | [SRC]def AntScalaCompiler(IsolatedAntBuilder antBuilder, Iter..nsionDirs) { [MSG]Violation in class org.gradle.api.internal.tasks.scala.AntScalaCompiler. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryObjectReferences | 3 | 98 | [SRC]installTask.doLast { [MSG]The code could be more concise by using a with() or identity() block |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 77 | [SRC]Delete clean = project.tasks.add(CLEAN_TASK_NAME, Delete.class) [MSG]Delete.class can be rewritten as Delete |
UnnecessarySubstring | 3 | 92 | [SRC]String targetTaskName = taskName.substring(prefix.length()) [MSG]Violation in class org.gradle.api.plugins.BasePlugin. The String.substring(int) method can be replaced with the subscript operator |
UnnecessarySubstring | 3 | 118 | [SRC]Configuration configuration = project.configurations.fin...length()))) [MSG]Violation in class org.gradle.api.plugins.BasePlugin. The String.substring(int) method can be replaced with the subscript operator |
UnnecessaryGetter | 3 | 120 | [SRC]project.tasks.add(taskName).dependsOn(configuration.getA..figuration)) [MSG]Violation in class org.gradle.api.plugins.BasePlugin. getAllArtifacts() can probably be rewritten as allArtifacts |
UnnecessaryGetter | 3 | 158 | [SRC]Upload upload = project.getTasks().add(name, Upload.class) [MSG]Violation in class org.gradle.api.plugins.BasePlugin. getTasks() can probably be rewritten as tasks |
UnnecessaryDotClass | 3 | 158 | [SRC]Upload upload = project.getTasks().add(name, Upload.class) [MSG]Upload.class can be rewritten as Upload |
UnnecessaryGetter | 3 | 161 | [SRC]upload.descriptorDestination = new File(project.getBuild.., "ivy.xml") [MSG]Violation in class org.gradle.api.plugins.BasePlugin. getBuildDir() can probably be rewritten as buildDir |
UnnecessaryGetter | 3 | 168 | [SRC]ConfigurationContainer configurations = project.getConfigurations(); [MSG]Violation in class org.gradle.api.plugins.BasePlugin. getConfigurations() can probably be rewritten as configurations |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 74 | [SRC]sourceSets = instantiator.newInstance(DefaultSourceSetCo..nstantiator) [MSG]DefaultSourceSetContainer.class can be rewritten as DefaultSourceSetContainer |
UnnecessaryGetter | 3 | 185 | [SRC]return ConfigureUtil.configure(closure, new DefaultManif..eResolver)); [MSG]Violation in class org.gradle.api.plugins.JavaPluginConvention. getProject() can probably be rewritten as project |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 29 | [SRC]def ProjectReportsPluginConvention(Project project) { [MSG]Violation in class org.gradle.api.plugins.ProjectReportsPluginConvention. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 27 | [SRC]def WarPluginConvention(Project project) { [MSG]Violation in class org.gradle.api.plugins.WarPluginConvention. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 35 | [SRC]void beforeExecute(Task task) { [MSG]Violation in class AnnouncingBuildListener. Method parameter [task] is never referenced in the method beforeExecute of class org.gradle.api.plugins.announce.internal.AnnouncingBuildListener |
UnnecessaryElseStatement | 3 | 73 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 56 | [SRC]private def escape(String value) { [MSG]Violation in class org.gradle.api.plugins.announce.internal.AppleScriptBackedGrowlAnnouncer. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyCatchBlock | 2 | 66 | [SRC]} catch (ClassNotFoundException e) { [MSG]The catch block is empty |
UnusedMethodParameter | 2 | 78 | [SRC]void send(String title, String message) { [MSG]Violation in class UnknownAnnouncer. Method parameter [title] is never referenced in the method send of class org.gradle.api.plugins.announce.internal.UnknownAnnouncer |
UnusedMethodParameter | 2 | 78 | [SRC]void send(String title, String message) { [MSG]Violation in class UnknownAnnouncer. Method parameter [message] is never referenced in the method send of class org.gradle.api.plugins.announce.internal.UnknownAnnouncer |
UnnecessaryElseStatement | 3 | 51 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryGetter | 3 | 65 | [SRC]return getClass().getClassLoader().loadClass("org.gradle..conProvider) [MSG]Violation in class org.gradle.api.plugins.announce.internal.DefaultAnnouncerFactory. getClassLoader() can probably be rewritten as classLoader |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedPrivateMethod | 2 | 46 | [SRC]private def escape(String value) { [MSG]The method escape is not used within GrowlNotifyBackedAnnouncer.groovy |
UnnecessaryDefInMethodDeclaration | 3 | 46 | [SRC]private def escape(String value) { [MSG]Violation in class org.gradle.api.plugins.announce.internal.GrowlNotifyBackedAnnouncer. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 43 | [SRC]with(new PrintWriter(sock.getOutputStream(), true)) { out -> [MSG]Violation in class org.gradle.api.plugins.announce.internal.Snarl. getOutputStream() can probably be rewritten as outputStream |
UnnecessaryElseStatement | 3 | 66 | [SRC]else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
ImportFromSunPackages | 2 | 20 | [SRC]import sun.misc.BASE64Encoder [MSG]The file imports sun.misc.BASE64Encoder, which is not portable and likely to change |
UnusedMethodParameter | 2 | 40 | [SRC]void send(String title, String message) { [MSG]Violation in class Twitter. Method parameter [title] is never referenced in the method send of class org.gradle.api.plugins.announce.internal.Twitter |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 66 | [SRC]getConfigProperties() [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getConfigProperties() can probably be rewritten as configProperties |
UnnecessaryGetter | 3 | 144 | [SRC]antBuilder.withClasspath(getCheckstyleClasspath()).execute { [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getCheckstyleClasspath() can probably be rewritten as checkstyleClasspath |
UnnecessaryGetter | 3 | 147 | [SRC]ant.checkstyle(config: getConfigFile(), failOnViolation:..pertyName) { [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getConfigFile() can probably be rewritten as configFile |
UnnecessaryGetter | 3 | 148 | [SRC]getSource().addToAntBuilder(ant, 'fileset', FileCollecti..ype.FileSet) [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getSource() can probably be rewritten as source |
UnnecessaryGetter | 3 | 149 | [SRC]getClasspath().addToAntBuilder(ant, 'classpath') [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getClasspath() can probably be rewritten as classpath |
UnnecessaryGetter | 3 | 155 | [SRC]getConfigProperties().each { key, value -> [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getConfigProperties() can probably be rewritten as configProperties |
UnnecessaryGetter | 3 | 160 | [SRC]if (!getIgnoreFailures() && ant.project.properties[propertyName]) { [MSG]Violation in class org.gradle.api.plugins.quality.Checkstyle. getIgnoreFailures() can probably be rewritten as ignoreFailures |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 102 | [SRC]antBuilder.withClasspath(getCodenarcClasspath()).execute { [MSG]Violation in class org.gradle.api.plugins.quality.CodeNarc. getCodenarcClasspath() can probably be rewritten as codenarcClasspath |
UnnecessaryGetter | 3 | 105 | [SRC]ant.codenarc(ruleSetFiles: "file:${getConfigFile()}", ma..ations: 0) { [MSG]Violation in class org.gradle.api.plugins.quality.CodeNarc. getConfigFile() can probably be rewritten as configFile |
UnnecessaryGetter | 3 | 116 | [SRC]if (getIgnoreFailures()) { [MSG]Violation in class org.gradle.api.plugins.quality.CodeNarc. getIgnoreFailures() can probably be rewritten as ignoreFailures |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 113 | [SRC]antBuilder.withClasspath(getFindbugsClasspath()).execute { [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getFindbugsClasspath() can probably be rewritten as findbugsClasspath |
UnnecessaryGetter | 3 | 116 | [SRC]getFindbugsClasspath().addToAntBuilder(ant, 'classpath') [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getFindbugsClasspath() can probably be rewritten as findbugsClasspath |
UnnecessaryGetter | 3 | 117 | [SRC]getPluginClasspath().addToAntBuilder(ant, 'pluginList') [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getPluginClasspath() can probably be rewritten as pluginClasspath |
UnnecessaryGetter | 3 | 118 | [SRC]getClasses().addToAntBuilder(ant, 'auxAnalyzepath') [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getClasses() can probably be rewritten as classes |
UnnecessaryGetter | 3 | 121 | [SRC]addUnlessEmpty(ant, getClasspath(), 'auxClasspath') [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getClasspath() can probably be rewritten as classpath |
UnnecessaryGetter | 3 | 122 | [SRC]addUnlessEmpty(ant, getSource(), 'sourcePath') [MSG]Violation in class org.gradle.api.plugins.quality.FindBugs. getSource() can probably be rewritten as source |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 40 | [SRC]def GroovyCodeQualityPluginConvention(Project project) { [MSG]Violation in class org.gradle.api.plugins.quality.GroovyCodeQualityPluginConvention. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 99 | [SRC]antBuilder.withClasspath(getJdependClasspath()).execute { [MSG]Violation in class org.gradle.api.plugins.quality.JDepend. getJdependClasspath() can probably be rewritten as jdependClasspath |
UnnecessaryGetter | 3 | 103 | [SRC]pathElement(location: getClassesDir()) [MSG]Violation in class org.gradle.api.plugins.quality.JDepend. getClassesDir() can probably be rewritten as classesDir |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 40 | [SRC]def JavaCodeQualityPluginConvention(Project project) { [MSG]Violation in class org.gradle.api.plugins.quality.JavaCodeQualityPluginConvention. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 68 | [SRC]antBuilder.withClasspath(getPmdClasspath()).execute { [MSG]Violation in class org.gradle.api.plugins.quality.Pmd. getPmdClasspath() can probably be rewritten as pmdClasspath |
UnnecessaryGetter | 3 | 70 | [SRC]ant.pmd(failOnRuleViolation: !getIgnoreFailures()) { [MSG]Violation in class org.gradle.api.plugins.quality.Pmd. getIgnoreFailures() can probably be rewritten as ignoreFailures |
UnnecessaryGetter | 3 | 71 | [SRC]getSource().addToAntBuilder(ant, 'fileset', FileCollecti..ype.FileSet) [MSG]Violation in class org.gradle.api.plugins.quality.Pmd. getSource() can probably be rewritten as source |
UnnecessaryGetter | 3 | 72 | [SRC]getRuleSets().each { [MSG]Violation in class org.gradle.api.plugins.quality.Pmd. getRuleSets() can probably be rewritten as ruleSets |
UnnecessaryGetter | 3 | 75 | [SRC]getRuleSetFiles().each { [MSG]Violation in class org.gradle.api.plugins.quality.Pmd. getRuleSetFiles() can probably be rewritten as ruleSetFiles |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 106 | [SRC]protected void configureTaskDefaults(T task, String baseName) { [MSG]Violation in class AbstractCodeQualityPlugin. Method parameter [task] is never referenced in the method configureTaskDefaults of class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin |
UnusedMethodParameter | 2 | 106 | [SRC]protected void configureTaskDefaults(T task, String baseName) { [MSG]Violation in class AbstractCodeQualityPlugin. Method parameter [baseName] is never referenced in the method configureTaskDefaults of class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin |
UnusedMethodParameter | 2 | 118 | [SRC]protected void configureForSourceSet(SourceSet sourceSet, T task) { [MSG]Violation in class AbstractCodeQualityPlugin. Method parameter [sourceSet] is never referenced in the method configureForSourceSet of class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin |
UnusedMethodParameter | 2 | 118 | [SRC]protected void configureForSourceSet(SourceSet sourceSet, T task) { [MSG]Violation in class AbstractCodeQualityPlugin. Method parameter [task] is never referenced in the method configureForSourceSet of class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin |
UnnecessarySubstring | 3 | 101 | [SRC]prunedName = prunedName[0].toLowerCase() + prunedName.substring(1) [MSG]Violation in class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin. The String.substring(int) method can be replaced with the subscript operator |
UnnecessaryCollectCall | 3 | 123 | [SRC]project.tasks['check'].dependsOn { extension.sourceSets...me, null) }} [MSG]Violation in class org.gradle.api.plugins.quality.internal.AbstractCodeQualityPlugin. The call to collect could probably be rewritten as a spread expression: extension.sourceSets*.getTaskName(taskBaseName, null) |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedPrivateMethodParameter | 2 | 64 | [SRC]private void configureCompileDefaults(final Project proj..avaPlugin) { [MSG]Violation in class ScalaBasePlugin. Method parameter [javaPlugin] is never referenced in the method configureCompileDefaults of class org.gradle.api.plugins.scala.ScalaBasePlugin |
UnnecessaryDotClass | 3 | 35 | [SRC]JavaBasePlugin javaPlugin = project.plugins.apply(JavaBa..ugin.class); [MSG]JavaBasePlugin.class can be rewritten as JavaBasePlugin |
UnnecessaryDotClass | 3 | 46 | [SRC]project.convention.getPlugin(JavaPluginConvention.class)..sourceSet -> [MSG]JavaPluginConvention.class can be rewritten as JavaPluginConvention |
UnnecessaryDotClass | 3 | 54 | [SRC]ScalaCompile scalaCompile = project.tasks.add(taskName, ..pile.class); [MSG]ScalaCompile.class can be rewritten as ScalaCompile |
UnnecessaryDotClass | 3 | 65 | [SRC]project.tasks.withType(ScalaCompile.class) {ScalaCompile compile -> [MSG]ScalaCompile.class can be rewritten as ScalaCompile |
UnnecessaryGetter | 3 | 71 | [SRC]project.getTasks().withType(ScalaDoc.class) {ScalaDoc scalaDoc -> [MSG]Violation in class org.gradle.api.plugins.scala.ScalaBasePlugin. getTasks() can probably be rewritten as tasks |
UnnecessaryDotClass | 3 | 71 | [SRC]project.getTasks().withType(ScalaDoc.class) {ScalaDoc scalaDoc -> [MSG]ScalaDoc.class can be rewritten as ScalaDoc |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 30 | [SRC]project.plugins.apply(ScalaBasePlugin.class); [MSG]ScalaBasePlugin.class can be rewritten as ScalaBasePlugin |
UnnecessaryDotClass | 3 | 31 | [SRC]project.plugins.apply(JavaPlugin.class); [MSG]JavaPlugin.class can be rewritten as JavaPlugin |
UnnecessaryGetter | 3 | 37 | [SRC]project.getTasks().withType(ScalaDoc.class) {ScalaDoc scalaDoc -> [MSG]Violation in class org.gradle.api.plugins.scala.ScalaPlugin. getTasks() can probably be rewritten as tasks |
UnnecessaryDotClass | 3 | 37 | [SRC]project.getTasks().withType(ScalaDoc.class) {ScalaDoc scalaDoc -> [MSG]ScalaDoc.class can be rewritten as ScalaDoc |
UnnecessaryDotClass | 3 | 41 | [SRC]ScalaDoc scalaDoc = project.tasks.add(SCALA_DOC_TASK_NAM..laDoc.class) [MSG]ScalaDoc.class can be rewritten as ScalaDoc |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryObjectReferences | 3 | 71 | [SRC]projectDef.workDir = sonarProject.workDir [MSG]The code could be more concise by using a with() or identity() block |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryPackageReference | 3 | 26 | [SRC]public @interface IncludeProperties {} [MSG]The java.lang.annotation.Annotation class was explicitly imported, so specifying the package name is not necessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryPackageReference | 3 | 26 | [SRC]public @interface SonarProperty { [MSG]The java.lang.annotation.Annotation class was explicitly imported, so specifying the package name is not necessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 36 | [SRC]project.task("publishArchives", dependsOn: 'assemble', t..ons.class) { [MSG]PublishPublications.class can be rewritten as PublishPublications |
UnnecessaryDotClass | 3 | 39 | [SRC]project.task("installArchives", dependsOn: 'assemble', t..ons.class) { [MSG]InstallPublications.class can be rewritten as InstallPublications |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 27 | [SRC]ConfigureUtil.configure(c, getMaven()) [MSG]Violation in class org.gradle.api.publication.Publications. getMaven() can probably be rewritten as maven |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryObjectReferences | 3 | 44 | [SRC]model.description = publication.description [MSG]The code could be more concise by using a with() or identity() block |
UnnecessaryObjectReferences | 3 | 55 | [SRC]dependency.optional = mavenDep.optional [MSG]The code could be more concise by using a with() or identity() block |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryElseStatement | 3 | 47 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 55 | [SRC]private def execute(MavenPublication publication, Instal..port task) { [MSG]Violation in class org.gradle.api.publication.maven.internal.ant.DefaultMavenPublisher. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 42 | [SRC]ConfigureUtil.configure(c, getRepository()) [MSG]Violation in class org.gradle.api.publication.maven.internal.model.DefaultMavenPublication. getRepository() can probably be rewritten as repository |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 69 | [SRC]if (!getApplicationName()) { [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 72 | [SRC]return "${GUtil.toConstant(getApplicationName())}_OPTS" [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 80 | [SRC]if (!getApplicationName()) { [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 83 | [SRC]return "${GUtil.toConstant(getApplicationName())}_EXIT_CONSOLE" [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 88 | [SRC]return new File(getOutputDir(), getApplicationName()) [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getOutputDir() can probably be rewritten as outputDir |
UnnecessaryGetter | 3 | 88 | [SRC]return new File(getOutputDir(), getApplicationName()) [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 93 | [SRC]return new File(getOutputDir(), "${getApplicationName()}.bat") [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getOutputDir() can probably be rewritten as outputDir |
UnnecessaryGetter | 3 | 93 | [SRC]return new File(getOutputDir(), "${getApplicationName()}.bat") [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 98 | [SRC]getOutputDir().mkdirs() [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getOutputDir() can probably be rewritten as outputDir |
UnnecessaryGetter | 3 | 101 | [SRC]generator.applicationName = getApplicationName() [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getApplicationName() can probably be rewritten as applicationName |
UnnecessaryGetter | 3 | 102 | [SRC]generator.mainClassName = getMainClassName() [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getMainClassName() can probably be rewritten as mainClassName |
UnnecessaryGetter | 3 | 103 | [SRC]generator.optsEnvironmentVar = getOptsEnvironmentVar() [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getOptsEnvironmentVar() can probably be rewritten as optsEnvironmentVar |
UnnecessaryGetter | 3 | 104 | [SRC]generator.exitEnvironmentVar = getExitEnvironmentVar() [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getExitEnvironmentVar() can probably be rewritten as exitEnvironmentVar |
UnnecessaryGetter | 3 | 105 | [SRC]generator.classpath = getClasspath().collect { "lib/${it.name}" } [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getClasspath() can probably be rewritten as classpath |
UnnecessaryGetter | 3 | 106 | [SRC]generator.scriptRelPath = "bin/${getUnixScript().name}" [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getUnixScript() can probably be rewritten as unixScript |
UnnecessaryObjectReferences | 3 | 106 | [SRC]generator.scriptRelPath = "bin/${getUnixScript().name}" [MSG]The code could be more concise by using a with() or identity() block |
UnnecessaryGetter | 3 | 107 | [SRC]generator.generateUnixScript(getUnixScript()) [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getUnixScript() can probably be rewritten as unixScript |
UnnecessaryObjectReferences | 3 | 107 | [SRC]generator.generateUnixScript(getUnixScript()) [MSG]The code could be more concise by using a with() or identity() block |
UnnecessaryGetter | 3 | 108 | [SRC]generator.generateWindowsScript(getWindowsScript()) [MSG]Violation in class org.gradle.api.tasks.application.CreateStartScripts. getWindowsScript() can probably be rewritten as windowsScript |
UnnecessaryObjectReferences | 3 | 108 | [SRC]generator.generateWindowsScript(getWindowsScript()) [MSG]The code could be more concise by using a with() or identity() block |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 47 | [SRC]Manifest manifest = getManifest() ?: new DefaultManifest(null) [MSG]Violation in class org.gradle.api.tasks.bundling.Jar. getManifest() can probably be rewritten as manifest |
UnnecessaryGetter | 3 | 86 | [SRC]if (getManifest() == null) { [MSG]Violation in class org.gradle.api.tasks.bundling.Jar. getManifest() can probably be rewritten as manifest |
UnnecessaryGetter | 3 | 89 | [SRC]ConfigureUtil.configure(configureClosure, getManifest()); [MSG]Violation in class org.gradle.api.tasks.bundling.Jar. getManifest() can probably be rewritten as manifest |
UnnecessaryGetter | 3 | 107 | [SRC]return ConfigureUtil.configure(configureClosure, getMetaInf()) [MSG]Violation in class org.gradle.api.tasks.bundling.Jar. getMetaInf() can probably be rewritten as metaInf |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 46 | [SRC]def classpath = getClasspath() [MSG]Violation in class org.gradle.api.tasks.bundling.War. getClasspath() can probably be rewritten as classpath |
UnnecessaryGetter | 3 | 52 | [SRC]def classpath = getClasspath() [MSG]Violation in class org.gradle.api.tasks.bundling.War. getClasspath() can probably be rewritten as classpath |
UnnecessaryGetter | 3 | 58 | [SRC]getWebXml() [MSG]Violation in class org.gradle.api.tasks.bundling.War. getWebXml() can probably be rewritten as webXml |
UnnecessaryGetter | 3 | 80 | [SRC]return ConfigureUtil.configure(configureClosure, getWebInf()) [MSG]Violation in class org.gradle.api.tasks.bundling.War. getWebInf() can probably be rewritten as webInf |
UnnecessaryGetter | 3 | 110 | [SRC]FileCollection oldClasspath = getClasspath() [MSG]Violation in class org.gradle.api.tasks.bundling.War. getClasspath() can probably be rewritten as classpath |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 48 | [SRC]((field.getModifiers() & Modifier.STATIC) == 0) && [MSG]Violation in class org.gradle.api.tasks.compile.AbstractOptions. getModifiers() can probably be rewritten as modifiers |
UnnecessaryGetter | 3 | 49 | [SRC](field.getName() != "metaClass") && [MSG]Violation in class org.gradle.api.tasks.compile.AbstractOptions. getName() can probably be rewritten as name |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 31 | [SRC]def AntGroovydoc(IsolatedAntBuilder ant, ClassPathRegist..hRegistry) { [MSG]Violation in class org.gradle.api.tasks.javadoc.AntGroovydoc. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedPrivateField | 2 | 24 | [SRC]private static Logger logger = LoggerFactory.getLogger(AntScalaDoc) [MSG]The field logger is not used within the class org.gradle.api.tasks.scala.AntScalaDoc |
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def AntScalaDoc(IsolatedAntBuilder antBuilder) { [MSG]Violation in class org.gradle.api.tasks.scala.AntScalaDoc. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 36 | [SRC]def AntScalaDoc(IsolatedAntBuilder antBuilder, Iterable<..nsionDirs) { [MSG]Violation in class org.gradle.api.tasks.scala.AntScalaDoc. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 194 | [SRC]return suiteXmlBuilder.getMetaClass()."${name}" [MSG]Violation in class org.gradle.api.tasks.testing.testng.TestNGOptions. getMetaClass() can probably be rewritten as metaClass |
UnnecessaryElseStatement | 3 | 195 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryGetter | 3 | 202 | [SRC]return suiteXmlBuilder.getMetaClass().invokeMethod(suite.. name, args) [MSG]Violation in class org.gradle.api.tasks.testing.testng.TestNGOptions. getMetaClass() can probably be rewritten as metaClass |
UnnecessaryElseStatement | 3 | 203 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 206 | [SRC]def addToAntBuilder(node, String childNodeName = null) { [MSG]Violation in class PatternSet. Method parameter [childNodeName] is never referenced in the method addToAntBuilder of class org.gradle.api.tasks.util.PatternSet |
UnusedMethodParameter | 2 | 242 | [SRC]def addToAntBuilder(Object node, String childNodeName) { [MSG]Violation in class IntersectionPatternSet. Method parameter [childNodeName] is never referenced in the method addToAntBuilder of class org.gradle.api.tasks.util.IntersectionPatternSet |
UnnecessaryDefInFieldDeclaration | 3 | 51 | [SRC]def boolean caseSensitive = true [MSG]Violation in class org.gradle.api.tasks.util.PatternSet. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInMethodDeclaration | 3 | 57 | [SRC]static def setGlobalExcludes(Collection<String> excludes) { [MSG]Violation in class org.gradle.api.tasks.util.PatternSet. The def keyword is unneeded when a method is marked static |
UnnecessaryDefInMethodDeclaration | 3 | 62 | [SRC]static def resetGlobalExcludes() { [MSG]Violation in class org.gradle.api.tasks.util.PatternSet. The def keyword is unneeded when a method is marked static |
UnnecessaryDefInMethodDeclaration | 3 | 66 | [SRC]def boolean equals(Object o) { [MSG]Violation in class org.gradle.api.tasks.util.PatternSet. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 76 | [SRC]def int hashCode() { [MSG]Violation in class org.gradle.api.tasks.util.PatternSet. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDefInMethodDeclaration | 3 | 234 | [SRC]def IntersectionPatternSet(PatternSet other) { [MSG]Violation in class org.gradle.api.tasks.util.IntersectionPatternSet. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 239 | [SRC]return new AndSpec<FileTreeElement>([super.getAsSpec(), ..] as Spec[]) [MSG]Violation in class org.gradle.api.tasks.util.IntersectionPatternSet. getAsSpec() can probably be rewritten as asSpec |
UnnecessaryGetter | 3 | 239 | [SRC]return new AndSpec<FileTreeElement>([super.getAsSpec(), ..] as Spec[]) [MSG]Violation in class org.gradle.api.tasks.util.IntersectionPatternSet. getAsSpec() can probably be rewritten as asSpec |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 34 | [SRC]standardOutputCapture = services.get(StandardOutputCapture.class) [MSG]StandardOutputCapture.class can be rewritten as StandardOutputCapture |
UnnecessaryDefInMethodDeclaration | 3 | 38 | [SRC]def Object getScriptTarget() { [MSG]Violation in class org.gradle.groovy.scripts.BasicScript. The def keyword is unneeded when a method returns the Object type |
UnnecessaryDefInMethodDeclaration | 3 | 42 | [SRC]def StandardOutputCapture getStandardOutputCapture() { [MSG]Violation in class org.gradle.groovy.scripts.BasicScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryGetter | 3 | 65 | [SRC]return target.getProperties() [MSG]Violation in class org.gradle.groovy.scripts.BasicScript. getProperties() can probably be rewritten as properties |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 43 | [SRC]private static final Logger LOGGER = Logging.getLogger(Script.class) [MSG]Script.class can be rewritten as Script |
UnnecessaryDefInMethodDeclaration | 3 | 49 | [SRC]def void init(Object target, ServiceRegistry services) { [MSG]Violation in class org.gradle.groovy.scripts.DefaultScript. The def keyword is unneeded when a method specifies a return type |
UnnecessaryDotClass | 3 | 52 | [SRC]loggingManager = services.get(LoggingManager.class) [MSG]LoggingManager.class can be rewritten as LoggingManager |
UnnecessaryDotClass | 3 | 68 | [SRC]ObjectConfigurationAction action = new DefaultObjectConf..criptTarget) [MSG]ScriptPluginFactory.class can be rewritten as ScriptPluginFactory |
UnnecessaryDotClass | 3 | 74 | [SRC]ObjectConfigurationAction action = new DefaultObjectConf..criptTarget) [MSG]ScriptPluginFactory.class can be rewritten as ScriptPluginFactory |
UnnecessaryDotClass | 3 | 80 | [SRC]return services.get(ScriptHandler.class); [MSG]ScriptHandler.class can be rewritten as ScriptHandler |
UnnecessaryGetter | 3 | 84 | [SRC]ConfigureUtil.configure(configureClosure, getBuildscript()) [MSG]Violation in class org.gradle.groovy.scripts.DefaultScript. getBuildscript() can probably be rewritten as buildscript |
UnnecessaryDefInMethodDeclaration | 3 | 172 | [SRC]def String toString() { [MSG]Violation in class org.gradle.groovy.scripts.DefaultScript. The def keyword is unneeded when a method specifies a return type |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 23 | [SRC]getBuildscript() [MSG]Violation in class org.gradle.initialization.InitScript. getBuildscript() can probably be rewritten as buildscript |
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def String toString() { [MSG]Violation in class org.gradle.initialization.InitScript. The def keyword is unneeded when a method specifies a return type |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 21 | [SRC]def String toString() { [MSG]Violation in class org.gradle.initialization.SettingsScript. The def keyword is unneeded when a method specifies a return type |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
JUnitPublicNonTestMethod | 2 | 26 | [SRC]void runSamplesFrom(String dir) { [MSG]Violation in class AbstractAutoTestedSamplesTest. The method runSamplesFrom is public but not a test method |
JUnitPublicNonTestMethod | 2 | 41 | [SRC]void includeOnly(String includes) { [MSG]Violation in class AbstractAutoTestedSamplesTest. The method includeOnly is public but not a test method |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 44 | [SRC]distribution.getTestDir(); [MSG]Violation in class org.gradle.integtests.fixtures.AbstractIntegrationSpec. getTestDir() can probably be rewritten as testDir |
UnnecessaryGetter | 3 | 48 | [SRC]getTestDir().file(path); [MSG]Violation in class org.gradle.integtests.fixtures.AbstractIntegrationSpec. getTestDir() can probably be rewritten as testDir |
UnnecessaryGetter | 3 | 130 | [SRC]executer.withUserHomeDir(distribution.getUserHomeDir()) [MSG]Violation in class org.gradle.integtests.fixtures.AbstractIntegrationSpec. getUserHomeDir() can probably be rewritten as userHomeDir |
UnnecessaryGetter | 3 | 131 | [SRC]return new GradleBackedArtifactBuilder(executer, getTest..artifacts")) [MSG]Violation in class org.gradle.integtests.fixtures.AbstractIntegrationSpec. getTestDir() can probably be rewritten as testDir |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryParenthesesForMethodCallWithClosure | 3 | 34 | [SRC]list.each() { runSamplesFromFile(it, runner) } [MSG]Violation in class org.gradle.integtests.fixtures.AutoTestedSamplesUtil. Parentheses in the 'each' method call are unnecessary and can be removed. |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 37 | [SRC]current.getTestDir(); [MSG]Violation in class org.gradle.integtests.fixtures.CrossVersionIntegrationSpec. getTestDir() can probably be rewritten as testDir |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessarySubstring | 3 | 68 | [SRC]def minVersion = targetGradleVersion.substring(0, target..ength() - 1) [MSG]Violation in class org.gradle.integtests.fixtures.CrossVersionTestRunner$PreviousVersionExecution. The String.substring(int, int) method can be replaced with the subscript operator |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 338 | [SRC]boolean reauthenticate(Principal user) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [user] is never referenced in the method reauthenticate of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
UnusedMethodParameter | 2 | 342 | [SRC]boolean isUserInRole(Principal user, String role) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [user] is never referenced in the method isUserInRole of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
UnusedMethodParameter | 2 | 342 | [SRC]boolean isUserInRole(Principal user, String role) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [role] is never referenced in the method isUserInRole of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
EmptyMethod | 2 | 346 | [SRC]void disassociate(Principal user) { [MSG]Violation in class HttpServer$TestUserRealm. The method disassociate is both empty and not marked with @Override |
UnusedMethodParameter | 2 | 346 | [SRC]void disassociate(Principal user) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [user] is never referenced in the method disassociate of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
UnusedMethodParameter | 2 | 349 | [SRC]Principal pushRole(Principal user, String role) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [role] is never referenced in the method pushRole of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
EmptyMethod | 2 | 357 | [SRC]void logout(Principal user) { [MSG]Violation in class HttpServer$TestUserRealm. The method logout is both empty and not marked with @Override |
UnusedMethodParameter | 2 | 357 | [SRC]void logout(Principal user) { [MSG]Violation in class HttpServer$TestUserRealm. Method parameter [user] is never referenced in the method logout of class org.gradle.integtests.fixtures.HttpServer$TestUserRealm |
UnnecessaryDotClass | 3 | 31 | [SRC]private static Logger logger = LoggerFactory.getLogger(H..erver.class) [MSG]HttpServer.class can be rewritten as HttpServer |
UnnecessarySubstring | 3 | 93 | [SRC]def relativePath = request.pathInfo.substring(path.length() + 1) [MSG]Violation in class org.gradle.integtests.fixtures.HttpServer$3. The String.substring(int) method can be replaced with the subscript operator |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 100 | [SRC]TestClassExecutionResult assertTestSkipped(String name) { [MSG]Violation in class JUnitTestClassExecutionResult. Method parameter [name] is never referenced in the method assertTestSkipped of class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult |
UnusedMethodParameter | 2 | 110 | [SRC]TestClassExecutionResult assertConfigMethodPassed(String name) { [MSG]Violation in class JUnitTestClassExecutionResult. Method parameter [name] is never referenced in the method assertConfigMethodPassed of class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult |
UnusedMethodParameter | 2 | 114 | [SRC]TestClassExecutionResult assertConfigMethodFailed(String name) { [MSG]Violation in class JUnitTestClassExecutionResult. Method parameter [name] is never referenced in the method assertConfigMethodFailed of class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult |
MisorderedStaticImports | 3 | 21 | [SRC]import static org.hamcrest.Matchers.* [MSG]Static imports should appear before normal imports |
MisorderedStaticImports | 3 | 22 | [SRC]import static org.junit.Assert.assertThat [MSG]Static imports should appear before normal imports |
UnnecessaryDefInMethodDeclaration | 3 | 27 | [SRC]def JUnitTestExecutionResult(TestFile projectDir, String..= 'build') { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestExecutionResult. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 41 | [SRC]private def findTestClass(String testClass) { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 49 | [SRC]private def findClasses() { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 69 | [SRC]def JUnitTestClassExecutionResult(GPathResult testClassN..ClassName) { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 130 | [SRC]private def findTests() { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 160 | [SRC]private def findIgnoredTests() { [MSG]Violation in class org.gradle.integtests.fixtures.JUnitTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryCollectCall | 3 | 106 | [SRC]artifactNames = names.collect { it.replace('-SNAPSHOT', ..-${build}")} [MSG]Violation in class org.gradle.integtests.fixtures.MavenModule. The call to collect could probably be rewritten as a spread expression: names*.replace(-SNAPSHOT, -$timestamp-$build) |
UnnecessaryCollectCall | 3 | 283 | [SRC]assert dependencies.collect { it.artifactId} as Set == a..ctIds as Set [MSG]Violation in class org.gradle.integtests.fixtures.MavenScope. The call to collect could probably be rewritten as a spread expression: dependencies*.artifactId |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 60 | [SRC]def String toString() { [MSG]Violation in class org.gradle.integtests.fixtures.PreviousGradleVersionExecuter. The def keyword is unneeded when a method specifies a return type |
UnnecessaryElseStatement | 3 | 102 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryDefInMethodDeclaration | 3 | 158 | [SRC]def TestFile getGradleHomeDir() { [MSG]Violation in class org.gradle.integtests.fixtures.PreviousGradleVersionExecuter. The def keyword is unneeded when a method specifies a return type |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyCatchBlock | 2 | 70 | [SRC]} catch (Throwable e) {} [MSG]The catch block is empty |
EmptyCatchBlock | 2 | 73 | [SRC]} catch (Throwable e) {} [MSG]The catch block is empty |
EmptyCatchBlock | 2 | 77 | [SRC]} catch (Throwable e) {} [MSG]The catch block is empty |
EmptyMethod | 2 | 105 | [SRC]public void showMessage(String message) { [MSG]Violation in class SFTPServer$1. The method showMessage is both empty and not marked with @Override |
UnusedMethodParameter | 2 | 128 | [SRC]boolean authenticate(String username, PublicKey key, Ser..n session) { [MSG]Violation in class SFTPServer$3. Method parameter [username] is never referenced in the method authenticate of class org.gradle.integtests.fixtures.SFTPServer$3 |
UnusedMethodParameter | 2 | 128 | [SRC]boolean authenticate(String username, PublicKey key, Ser..n session) { [MSG]Violation in class SFTPServer$3. Method parameter [key] is never referenced in the method authenticate of class org.gradle.integtests.fixtures.SFTPServer$3 |
UnusedMethodParameter | 2 | 128 | [SRC]boolean authenticate(String username, PublicKey key, Ser..n session) { [MSG]Violation in class SFTPServer$3. Method parameter [session] is never referenced in the method authenticate of class org.gradle.integtests.fixtures.SFTPServer$3 |
UnusedMethodParameter | 2 | 160 | [SRC]boolean authenticate(String username, String password, o..n session) { [MSG]Violation in class DummyPasswordAuthenticator. Method parameter [session] is never referenced in the method authenticate of class org.gradle.integtests.fixtures.DummyPasswordAuthenticator |
UnnecessaryGetter | 3 | 114 | [SRC]FileUtils.copyURLToFile(fileUrl, new File(configDir.getR..-dsa.key")); [MSG]Violation in class org.gradle.integtests.fixtures.SFTPServer. getRoot() can probably be rewritten as root |
UnnecessaryGetter | 3 | 118 | [SRC]sshServer.setFileSystemFactory(new TestNativeFileSystemF..stLogger() { [MSG]Violation in class org.gradle.integtests.fixtures.SFTPServer. getRoot() can probably be rewritten as root |
UnnecessaryGetter | 3 | 125 | [SRC]sshServer.setKeyPairProvider(new SimpleGeneratorHostKeyP..-dsa.key")); [MSG]Violation in class org.gradle.integtests.fixtures.SFTPServer. getRoot() can probably be rewritten as root |
UnnecessaryObjectReferences | 3 | 126 | [SRC]sshServer.setPasswordAuthenticator(new DummyPasswordAuthenticator()); [MSG]The code could be more concise by using a with() or identity() block |
UnnecessaryObjectReferences | 3 | 127 | [SRC]sshServer.setPublickeyAuthenticator(new PublickeyAuthenticator() { [MSG]The code could be more concise by using a with() or identity() block |
UnnecessaryGetter | 3 | 136 | [SRC]new File(baseDir.getRoot(), filePathToCheck).exists() [MSG]Violation in class org.gradle.integtests.fixtures.SFTPServer. getRoot() can probably be rewritten as root |
UnnecessaryGetter | 3 | 140 | [SRC]new TestFile(new File(baseDir.getRoot(), expectedPath)) [MSG]Violation in class org.gradle.integtests.fixtures.SFTPServer. getRoot() can probably be rewritten as root |
UnnecessaryPackageReference | 3 | 160 | [SRC]boolean authenticate(String username, String password, o..n session) { [MSG]The org.apache.sshd.server.session.ServerSession class was explicitly imported, so specifying the package name is not necessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 84 | [SRC]TestClassExecutionResult assertTestsSkipped(String... testNames) { [MSG]Violation in class TestNgTestClassExecutionResult. Method parameter [testNames] is never referenced in the method assertTestsSkipped of class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult |
UnusedMethodParameter | 2 | 107 | [SRC]TestClassExecutionResult assertStdout(Matcher<? super St..> matcher) { [MSG]Violation in class TestNgTestClassExecutionResult. Method parameter [matcher] is never referenced in the method assertStdout of class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult |
UnusedMethodParameter | 2 | 111 | [SRC]TestClassExecutionResult assertStderr(Matcher<? super St..> matcher) { [MSG]Violation in class TestNgTestClassExecutionResult. Method parameter [matcher] is never referenced in the method assertStderr of class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult |
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def TestNGExecutionResult(projectDir) { [MSG]Violation in class org.gradle.integtests.fixtures.TestNGExecutionResult. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 46 | [SRC]private def findTestClass(String testClass) { [MSG]Violation in class org.gradle.integtests.fixtures.TestNGExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 54 | [SRC]private def findTestClasses() { [MSG]Violation in class org.gradle.integtests.fixtures.TestNGExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInFieldDeclaration | 3 | 64 | [SRC]def String testClass [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInFieldDeclaration | 3 | 65 | [SRC]def GPathResult testClassNode [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInMethodDeclaration | 3 | 67 | [SRC]def TestNgTestClassExecutionResult(String testClass, GPa..resultXml) { [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 127 | [SRC]private def findConfigMethod(String testName) { [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 135 | [SRC]private def findConfigMethods() { [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 143 | [SRC]private def findTestMethod(String testName) { [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 151 | [SRC]private def findTestMethods() { [MSG]Violation in class org.gradle.integtests.fixtures.TestNgTestClassExecutionResult. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 67 | [SRC]return getFile(baseDir.getAbsolutePath(), file); [MSG]Violation in class org.gradle.integtests.fixtures.TestNativeFileSystemView. getAbsolutePath() can probably be rewritten as absolutePath |
UnnecessarySubstring | 3 | 77 | [SRC]String userFileName = physicalName.substring("/".length() - 1); [MSG]Violation in class org.gradle.integtests.fixtures.TestNativeFileSystemView. The String.substring(int) method can be replaced with the subscript operator |
UnnecessaryGetter | 3 | 107 | [SRC]String userName = session.getUsername(); [MSG]Violation in class org.gradle.integtests.fixtures.TestNativeFileSystemFactory. getUsername() can probably be rewritten as username |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 51 | [SRC]void filter(HttpRequest httpRequest) { [MSG]Violation in class TestProxyServer$1. Method parameter [httpRequest] is never referenced in the method filter of class org.gradle.integtests.fixtures.TestProxyServer$1 |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyIfStatement | 2 | 176 | [SRC]if (line.matches('Download .+')) { [MSG]The if statement is empty |
UnnecessaryDefInMethodDeclaration | 3 | 42 | [SRC]def UserGuideSamplesRunner(Class<?> testClass) { [MSG]Violation in class org.gradle.integtests.fixtures.UserGuideSamplesRunner. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 45 | [SRC]this.dirFilter = getDirFilterPattern() [MSG]Violation in class org.gradle.integtests.fixtures.UserGuideSamplesRunner. getDirFilterPattern() can probably be rewritten as dirFilterPattern |
UnnecessaryDefInMethodDeclaration | 3 | 88 | [SRC]private def cleanup(SampleRun run) { [MSG]Violation in class org.gradle.integtests.fixtures.UserGuideSamplesRunner. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 99 | [SRC]private def runSample(GradleRun run) { [MSG]Violation in class org.gradle.integtests.fixtures.UserGuideSamplesRunner. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 138 | [SRC]private def compareStrings(String expected, String actua..xtraLines) { [MSG]Violation in class org.gradle.integtests.fixtures.UserGuideSamplesRunner. The def keyword is unneeded when a method is marked private |
UnnecessaryPackageReference | 3 | 197 | [SRC]actual = actual.replaceAll(java.util.regex.Pattern.quote..le/samples') [MSG]The java.util.regex.Pattern class was explicitly imported, so specifying the package name is not necessary |
UnnecessaryPackageReference | 3 | 199 | [SRC]actual = actual.replaceAll(java.util.regex.Pattern.quote..rator), '/') [MSG]The java.util.regex.Pattern class was explicitly imported, so specifying the package name is not necessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
JUnitPublicNonTestMethod | 2 | 23 | [SRC]String getPluginId() { [MSG]Violation in class WellBehavedPluginTest. The method getPluginId is public but not a test method |
JUnitPublicNonTestMethod | 2 | 31 | [SRC]String getMainTask() { [MSG]Violation in class WellBehavedPluginTest. The method getMainTask is public but not a test method |
JUnitPublicNonTestMethod | 2 | 35 | [SRC]def "plugin does not force creation of build dir during ..uration"() { [MSG]Violation in class WellBehavedPluginTest. The method plugin does not force creation of build dir during configuration is public but not a test method |
JUnitPublicNonTestMethod | 2 | 46 | [SRC]def "plugin can build with empty project"() { [MSG]Violation in class WellBehavedPluginTest. The method plugin can build with empty project is public but not a test method |
UnnecessaryGetter | 3 | 37 | [SRC]buildFile << "apply plugin: '${getPluginId()}'" [MSG]Violation in class org.gradle.integtests.fixtures.WellBehavedPluginTest. getPluginId() can probably be rewritten as pluginId |
UnnecessaryGetter | 3 | 48 | [SRC]buildFile << "apply plugin: '${getPluginId()}'" [MSG]Violation in class org.gradle.integtests.fixtures.WellBehavedPluginTest. getPluginId() can probably be rewritten as pluginId |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 50 | [SRC]def headersConfiguration = getHeadersConfiguration() [MSG]Violation in class org.gradle.plugins.binaries.model.internal.ConfigurationBasedNativeDependencySet. getHeadersConfiguration() can probably be rewritten as headersConfiguration |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 109 | [SRC]protected void store(Node xml) { [MSG]Violation in class CprojectDescriptor. Method parameter [xml] is never referenced in the method store of class org.gradle.plugins.cpp.cdt.model.CprojectDescriptor |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 67 | [SRC]task.outputs.file { getOutputFile() } [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppCompileSpec. getOutputFile() can probably be rewritten as outputFile |
UnnecessaryGetter | 3 | 143 | [SRC]project.file "$project.buildDir/binaries/${getOutputFileName()}" [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppCompileSpec. getOutputFileName() can probably be rewritten as outputFileName |
UnnecessaryGetter | 3 | 150 | [SRC]return "${getBaseName()}.${extension}" [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppCompileSpec. getBaseName() can probably be rewritten as baseName |
UnnecessaryElseStatement | 3 | 151 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryGetter | 3 | 152 | [SRC]return getDefaultOutputFileName() [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppCompileSpec. getDefaultOutputFileName() can probably be rewritten as defaultOutputFileName |
UnnecessaryGetter | 3 | 157 | [SRC]return OperatingSystem.current().getExecutableName(getBaseName()) [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppCompileSpec. getBaseName() can probably be rewritten as baseName |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 34 | [SRC]return OperatingSystem.current().getSharedLibraryName(getBaseName()) [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppLibraryCompileSpec. getBaseName() can probably be rewritten as baseName |
UnnecessaryGetter | 3 | 38 | [SRC]return installName ?: getOutputFileName() [MSG]Violation in class org.gradle.plugins.cpp.gpp.GppLibraryCompileSpec. getOutputFileName() can probably be rewritten as outputFileName |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 55 | [SRC]getLibDirName() [MSG]Violation in class org.gradle.plugins.ear.Ear. getLibDirName() can probably be rewritten as libDirName |
UnnecessarySubstring | 3 | 66 | [SRC]module = new DefaultEarWebModule(details.path, details.p..dexOf('.'))) [MSG]Violation in class org.gradle.plugins.ear.Ear. The String.substring(int, int) method can be replaced with the subscript operator |
UnnecessaryGetter | 3 | 128 | [SRC]return ConfigureUtil.configure(configureClosure, getLib()) [MSG]Violation in class org.gradle.plugins.ear.Ear. getLib() can probably be rewritten as lib |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 65 | [SRC]def EarPluginConvention(FileResolver fileResolver) { [MSG]Violation in class org.gradle.plugins.ear.EarPluginConvention. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 189 | [SRC]if (file.getParentFile() != null) { [MSG]Violation in class org.gradle.plugins.ear.descriptor.internal.DefaultDeploymentDescriptor. getParentFile() can probably be rewritten as parentFile |
UnnecessaryGetter | 3 | 190 | [SRC]file.getParentFile().mkdirs() [MSG]Violation in class org.gradle.plugins.ear.descriptor.internal.DefaultDeploymentDescriptor. getParentFile() can probably be rewritten as parentFile |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedObject | 2 | 39 | [SRC]new Node(web, nodeNameFor("web-uri", name), path) [MSG]The instantiated object is not used |
UnusedObject | 2 | 40 | [SRC]new Node(web, nodeNameFor("context-root", name), contextRoot) [MSG]The instantiated object is not used |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 44 | [SRC]EclipsePlugin delegatePlugin = project.getPlugins().appl..ugin.class); [MSG]Violation in class org.gradle.plugins.ide.eclipse.EclipseWtpPlugin. getPlugins() can probably be rewritten as plugins |
UnnecessaryDotClass | 3 | 44 | [SRC]EclipsePlugin delegatePlugin = project.getPlugins().appl..ugin.class); [MSG]EclipsePlugin.class can be rewritten as EclipsePlugin |
UnnecessaryGetter | 3 | 50 | [SRC]delegatePlugin.getLifecycleTask().dependsOn(getLifecycleTask()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.EclipseWtpPlugin. getLifecycleTask() can probably be rewritten as lifecycleTask |
UnnecessaryGetter | 3 | 50 | [SRC]delegatePlugin.getLifecycleTask().dependsOn(getLifecycleTask()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.EclipseWtpPlugin. getLifecycleTask() can probably be rewritten as lifecycleTask |
UnnecessaryGetter | 3 | 51 | [SRC]delegatePlugin.getCleanTask().dependsOn(getCleanTask()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.EclipseWtpPlugin. getCleanTask() can probably be rewritten as cleanTask |
UnnecessaryGetter | 3 | 51 | [SRC]delegatePlugin.getCleanTask().dependsOn(getCleanTask()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.EclipseWtpPlugin. getCleanTask() can probably be rewritten as cleanTask |
UnnecessaryDotClass | 3 | 96 | [SRC]if (WarPlugin.class.isAssignableFrom(type)) { [MSG]WarPlugin.class can be rewritten as WarPlugin |
UnnecessaryDotClass | 3 | 102 | [SRC]} else if (EarPlugin.class.isAssignableFrom(type)) { [MSG]EarPlugin.class can be rewritten as EarPlugin |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 37 | [SRC]jdt = services.get(Instantiator).newInstance(EclipseJdt,..nsformer())) [MSG]Violation in class org.gradle.plugins.ide.eclipse.GenerateEclipseJdt. getTransformer() can probably be rewritten as transformer |
UnnecessaryGetter | 3 | 41 | [SRC]return new Jdt(getTransformer()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.GenerateEclipseJdt. getTransformer() can probably be rewritten as transformer |
UnnecessaryGetter | 3 | 45 | [SRC]def jdtModel = getJdt() [MSG]Violation in class org.gradle.plugins.ide.eclipse.GenerateEclipseJdt. getJdt() can probably be rewritten as jdt |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 61 | [SRC]def allAttributes = attributes.findAll { it.value } + [k.. path: path] [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry. getKind() can probably be rewritten as kind |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 25 | [SRC]def AccessRule(kind, pattern) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.AccessRule. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 25 | [SRC]def BuildCommand(String name, Map arguments = [:]) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.BuildCommand. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 144 | [SRC]getLibConfigurations() [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.EclipseWtpComponent. getLibConfigurations() can probably be rewritten as libConfigurations |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 115 | [SRC]xmlFacet.configure(getFacets()) [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.EclipseWtpFacet. getFacets() can probably be rewritten as facets |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def Facet() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Facet. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 34 | [SRC]def Facet(Node node) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Facet. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 38 | [SRC]def Facet(String name, String version) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Facet. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 42 | [SRC]def Facet(FacetType type, String name, String version) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Facet. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 29 | [SRC]def Link(String name, String type, String location, Stri..cationUri) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Link. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 27 | [SRC]def Output(Node node) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Output. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 31 | [SRC]def Output(String path) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Output. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 41 | [SRC]node.appendNode('classpathentry', [kind: getKind(), path: path]) [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Output. getKind() can probably be rewritten as kind |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 59 | [SRC]def Project(XmlTransformer xmlTransformer) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 76 | [SRC]private def readReferencedProjects() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 82 | [SRC]private def readNatures() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 86 | [SRC]private def readBuildCommands() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 96 | [SRC]private def readLinkedResources() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 132 | [SRC]private def addReferencedProjectsToXml() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 139 | [SRC]private def addNaturesToXml() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 146 | [SRC]private def addBuildSpecToXml() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 160 | [SRC]private def addLinkedResourcesToXml() { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.Project. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 28 | [SRC]def WbDependentModule(node) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbDependentModule. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 32 | [SRC]def WbDependentModule(String deployPath, String handle) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbDependentModule. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 26 | [SRC]def WbProperty(node) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbProperty. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def WbProperty(String name, String value) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbProperty. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 28 | [SRC]def WbResource(node) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbResource. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 32 | [SRC]def WbResource(String deployPath, String sourcePath) { [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.WbResource. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessarySubstring | 3 | 49 | [SRC]path = entry.key + filePath.substring(len) [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory. The String.substring(int) method can be replaced with the subscript operator |
UnnecessarySubstring | 3 | 91 | [SRC]def file = new File(entry.value, path.substring(prefix.length())) [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory. The String.substring(int) method can be replaced with the subscript operator |
UnnecessaryGetter | 3 | 130 | [SRC]", jarUrl='" + getJarURL() + '\'' + [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory$FileReferenceImpl. getJarURL() can probably be rewritten as jarURL |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryCollectCall | 3 | 100 | [SRC]dependencies.collect { it.resolve() }.flatten() as LinkedHashSet [MSG]Violation in class org.gradle.plugins.ide.eclipse.model.internal.WtpComponentFactory. The call to collect could probably be rewritten as a spread expression: dependencies*.resolve() |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 43 | [SRC]getModule().mergeXmlModule(xmlModule) [MSG]Violation in class org.gradle.plugins.ide.idea.GenerateIdeaModule. getModule() can probably be rewritten as module |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 37 | [SRC]getIdeaProject().mergeXmlProject(xmlModule) [MSG]Violation in class org.gradle.plugins.ide.idea.GenerateIdeaProject. getIdeaProject() can probably be rewritten as ideaProject |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 37 | [SRC]getWorkspace().mergeXmlWorkspace(xmlWorkspace) [MSG]Violation in class org.gradle.plugins.ide.idea.GenerateIdeaWorkspace. getWorkspace() can probably be rewritten as workspace |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 60 | [SRC]ConfigureUtil.configure(closure, getModule()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModel. getModule() can probably be rewritten as module |
UnnecessaryGetter | 3 | 71 | [SRC]ConfigureUtil.configure(closure, getProject()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModel. getProject() can probably be rewritten as project |
UnnecessaryGetter | 3 | 82 | [SRC]ConfigureUtil.configure(closure, getWorkspace()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModel. getWorkspace() can probably be rewritten as workspace |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 277 | [SRC]ConfigureUtil.configure(closure, getIml()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getIml() can probably be rewritten as iml |
UnnecessaryGetter | 3 | 288 | [SRC]new File((File) iml.getGenerateTo(), getName() + ".iml") [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getGenerateTo() can probably be rewritten as generateTo |
UnnecessaryGetter | 3 | 288 | [SRC]new File((File) iml.getGenerateTo(), getName() + ".iml") [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getName() can probably be rewritten as name |
UnnecessaryGetter | 3 | 302 | [SRC]return new IdeaDependenciesProvider().provide(this, getPathFactory()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getPathFactory() can probably be rewritten as pathFactory |
UnnecessaryGetter | 3 | 330 | [SRC]def path = { getPathFactory().path(it) } [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getPathFactory() can probably be rewritten as pathFactory |
UnnecessaryGetter | 3 | 331 | [SRC]def contentRoot = path(getContentRoot()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getContentRoot() can probably be rewritten as contentRoot |
UnnecessaryGetter | 3 | 332 | [SRC]Set sourceFolders = getSourceDirs().findAll { it.exists(..{ path(it) } [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getSourceDirs() can probably be rewritten as sourceDirs |
UnnecessaryGetter | 3 | 333 | [SRC]Set testSourceFolders = getTestSourceDirs().findAll { it..{ path(it) } [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getTestSourceDirs() can probably be rewritten as testSourceDirs |
UnnecessaryGetter | 3 | 334 | [SRC]Set excludeFolders = getExcludeDirs().collect { path(it) } [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getExcludeDirs() can probably be rewritten as excludeDirs |
UnnecessaryGetter | 3 | 335 | [SRC]def outputDir = getOutputDir() ? path(getOutputDir()) : null [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getOutputDir() can probably be rewritten as outputDir |
UnnecessaryGetter | 3 | 335 | [SRC]def outputDir = getOutputDir() ? path(getOutputDir()) : null [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getOutputDir() can probably be rewritten as outputDir |
UnnecessaryGetter | 3 | 336 | [SRC]def testOutputDir = getTestOutputDir() ? path(getTestOut..ir()) : null [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getTestOutputDir() can probably be rewritten as testOutputDir |
UnnecessaryGetter | 3 | 336 | [SRC]def testOutputDir = getTestOutputDir() ? path(getTestOut..ir()) : null [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getTestOutputDir() can probably be rewritten as testOutputDir |
UnnecessaryGetter | 3 | 340 | [SRC]getInheritOutputDirs(), outputDir, testOutputDir, depend..etJdkName()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getInheritOutputDirs() can probably be rewritten as inheritOutputDirs |
UnnecessaryGetter | 3 | 340 | [SRC]getInheritOutputDirs(), outputDir, testOutputDir, depend..etJdkName()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaModule. getJdkName() can probably be rewritten as jdkName |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 136 | [SRC]getOutputFile().name.replaceFirst(/\.ipr$/, '') [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getOutputFile() can probably be rewritten as outputFile |
UnnecessaryGetter | 3 | 146 | [SRC]ConfigureUtil.configure(closure, getIpr()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getIpr() can probably be rewritten as ipr |
UnnecessaryGetter | 3 | 162 | [SRC]def modulePaths = getModules().collect { [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getModules() can probably be rewritten as modules |
UnnecessaryGetter | 3 | 163 | [SRC]getPathFactory().relativePath('PROJECT_DIR', it.outputFile) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getPathFactory() can probably be rewritten as pathFactory |
UnnecessaryGetter | 3 | 165 | [SRC]xmlProject.configure(modulePaths, getJdkName(), getLangu..Wildcards()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getJdkName() can probably be rewritten as jdkName |
UnnecessaryGetter | 3 | 165 | [SRC]xmlProject.configure(modulePaths, getJdkName(), getLangu..Wildcards()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getLanguageLevel() can probably be rewritten as languageLevel |
UnnecessaryGetter | 3 | 165 | [SRC]xmlProject.configure(modulePaths, getJdkName(), getLangu..Wildcards()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaProject. getWildcards() can probably be rewritten as wildcards |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 48 | [SRC]ConfigureUtil.configure(closure, getIws()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.IdeaWorkspace. getIws() can probably be rewritten as iws |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 34 | [SRC]def JarDirectory(path, recursive) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.JarDirectory. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 30 | [SRC]def Jdk(String jdkName, IdeaLanguageLevel ideaLanguageLevel) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Jdk. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 46 | [SRC]def Jdk(assertKeyword, jdk15, languageLevel, projectJdkName) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Jdk. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 155 | [SRC]protected def configure(Path contentPath, Set sourceFold..ludeFolders, [MSG]Violation in class org.gradle.plugins.ide.idea.model.Module. The def keyword is unneeded when a method is marked protected |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 36 | [SRC]def ModuleDependency(name, scope) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleDependency. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 43 | [SRC]parentNode.appendNode('orderEntry', [type: 'module', 'mo..dExported()) [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleDependency. getAttributeMapForScopeAndExported() can probably be rewritten as attributeMapForScopeAndExported |
UnnecessaryElseStatement | 3 | 68 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryGetter | 3 | 77 | [SRC]result = 31 * result + getScopeHash(); [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleDependency. getScopeHash() can probably be rewritten as scopeHash |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 51 | [SRC]def ModuleLibrary(Collection<Path> classes, Collection<P..ing scope) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleLibrary. The def keyword is unneeded on constructors |
UnnecessaryGetter | 3 | 61 | [SRC]Node libraryNode = parentNode.appendNode('orderEntry', [..e('library') [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleLibrary. getAttributeMapForScopeAndExported() can probably be rewritten as attributeMapForScopeAndExported |
UnnecessaryElseStatement | 3 | 104 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryGetter | 3 | 117 | [SRC]result = 31 * result + getScopeHash() [MSG]Violation in class org.gradle.plugins.ide.idea.model.ModuleLibrary. getScopeHash() can probably be rewritten as scopeHash |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessarySubstring | 3 | 84 | [SRC]expandedUrl = toUrl('file', new File(expandedUrl.substri..nonicalFile) [MSG]Violation in class org.gradle.plugins.ide.idea.model.PathFactory. The String.substring(int) method can be replaced with the subscript operator |
UnnecessarySubstring | 3 | 86 | [SRC]def parts = expandedUrl.substring(6).split('!') [MSG]Violation in class org.gradle.plugins.ide.idea.model.PathFactory. The String.substring(int) method can be replaced with the subscript operator |
UnnecessaryDefInMethodDeclaration | 3 | 94 | [SRC]private def toUrl(String scheme, File file) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.PathFactory. The def keyword is unneeded when a method is marked private |
UnnecessaryElseStatement | 3 | 106 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 44 | [SRC]def Project(XmlTransformer xmlTransformer, pathFactory) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Project. The def keyword is unneeded on constructors |
UnnecessaryDefInMethodDeclaration | 3 | 96 | [SRC]private def findProjectRootManager() { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 100 | [SRC]private def findWildcardResourcePatterns() { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Project. The def keyword is unneeded when a method is marked private |
UnnecessaryDefInMethodDeclaration | 3 | 104 | [SRC]private def findModules() { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Project. The def keyword is unneeded when a method is marked private |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryElseStatement | 3 | 63 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
UnnecessaryElseStatement | 3 | 74 | [SRC]} else { [MSG]When an if statement block ends with a return statement the else is unnecessary |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInMethodDeclaration | 3 | 28 | [SRC]def Workspace(XmlTransformer withXmlActions) { [MSG]Violation in class org.gradle.plugins.ide.idea.model.Workspace. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryPackageReference | 3 | 118 | [SRC]def filter = { it instanceof SelfResolvingDependency && ..Dependency)} [MSG]The org.gradle.api.artifacts.ProjectDependency class was explicitly imported, so specifying the package name is not necessary |
UnnecessaryCollectCall | 3 | 122 | [SRC]def files = deps.collect { it.resolve() }.flatten() [MSG]Violation in class org.gradle.plugins.ide.internal.IdeDependenciesExtractor. The call to collect could probably be rewritten as a spread expression: deps*.resolve() |
UnnecessaryCollectCall | 3 | 127 | [SRC]def files = deps.collect { it.resolve() }.flatten() [MSG]Violation in class org.gradle.plugins.ide.internal.IdeDependenciesExtractor. The call to collect could probably be rewritten as a spread expression: deps*.resolve() |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 65 | [SRC]protected void onApply(Project target) { [MSG]Violation in class IdePlugin. Method parameter [target] is never referenced in the method onApply of class org.gradle.plugins.ide.internal.IdePlugin |
UnnecessaryGetter | 3 | 32 | [SRC]String lifecyleTaskName = getLifecycleTaskName(); [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getLifecycleTaskName() can probably be rewritten as lifecycleTaskName |
UnnecessaryGetter | 3 | 49 | [SRC]return project.getTasks().getByName(cleanName(worker.getName())); [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getTasks() can probably be rewritten as tasks |
UnnecessaryGetter | 3 | 49 | [SRC]return project.getTasks().getByName(cleanName(worker.getName())); [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getName() can probably be rewritten as name |
UnnecessaryGetter | 3 | 58 | [SRC]Delete cleanWorker = project.getTasks().add(cleanName(wo..elete.class) [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getTasks() can probably be rewritten as tasks |
UnnecessaryGetter | 3 | 58 | [SRC]Delete cleanWorker = project.getTasks().add(cleanName(wo..elete.class) [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getName() can probably be rewritten as name |
UnnecessaryDotClass | 3 | 58 | [SRC]Delete cleanWorker = project.getTasks().add(cleanName(wo..elete.class) [MSG]Delete.class can be rewritten as Delete |
UnnecessaryGetter | 3 | 59 | [SRC]cleanWorker.delete(worker.getOutputs().getFiles()) [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getFiles() can probably be rewritten as files |
UnnecessaryGetter | 3 | 59 | [SRC]cleanWorker.delete(worker.getOutputs().getFiles()) [MSG]Violation in class org.gradle.plugins.ide.internal.IdePlugin. getOutputs() can probably be rewritten as outputs |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInFieldDeclaration | 3 | 26 | [SRC]def String moduleName [MSG]Violation in class org.gradle.plugins.ide.internal.configurer.DeduplicationTarget. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInFieldDeclaration | 3 | 27 | [SRC]def Project project [MSG]Violation in class org.gradle.plugins.ide.internal.configurer.DeduplicationTarget. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInFieldDeclaration | 3 | 28 | [SRC]def Closure updateModuleName [MSG]Violation in class org.gradle.plugins.ide.internal.configurer.DeduplicationTarget. The def keyword is unneeded when a field type is specified |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 38 | [SRC]String defaultResourceName = getDefaultResourceName(); [MSG]Violation in class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject. getDefaultResourceName() can probably be rewritten as defaultResourceName |
UnnecessaryGetter | 3 | 41 | [SRC]throw new IllegalStateException(String.format("Failed to..getName())); [MSG]Violation in class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject. getName() can probably be rewritten as name |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 51 | [SRC]protected void load(Node xml) { [MSG]Violation in class XmlPersistableConfigurationObject. Method parameter [xml] is never referenced in the method load of class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject |
UnusedMethodParameter | 2 | 58 | [SRC]protected void store(Node xml) { [MSG]Violation in class XmlPersistableConfigurationObject. Method parameter [xml] is never referenced in the method store of class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnusedMethodParameter | 2 | 138 | [SRC]void signatureType(SignatureType type) { [MSG]Violation in class Sign. Method parameter [type] is never referenced in the method signatureType of class org.gradle.plugins.signing.Sign |
UnnecessaryGetter | 3 | 65 | [SRC]isRequired() || getSignatory() != null [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 69 | [SRC]inputs.property("signatory") { getSignatory()?.keyId?.asHex } [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 71 | [SRC]inputs.files { getSignatures()*.toSign } [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
UnnecessaryGetter | 3 | 72 | [SRC]outputs.files { getSignatures()*.toSign } [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
UnnecessaryGetter | 3 | 161 | [SRC]if (getSignatory() == null) { [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 162 | [SRC]throw new InvalidUserDataException("Cannot perform signi.. signatory") [MSG]Violation in class org.gradle.plugins.signing.Sign. getPath() can probably be rewritten as path |
UnnecessaryGetter | 3 | 165 | [SRC]getSignatures()*.generate() [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
UnnecessaryGetter | 3 | 182 | [SRC]def signatureSet = getSignatures() [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
UnnecessaryGetter | 3 | 196 | [SRC]new SimpleFileCollection(*getSignatures()*.toSign.findAl.. != null })) [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
UnnecessaryGetter | 3 | 203 | [SRC]new SimpleFileCollection(*getSignatures()*.file.findAll(.. != null })) [MSG]Violation in class org.gradle.plugins.signing.Sign. getSignatures() can probably be rewritten as signatures |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 61 | [SRC]getDisplayName() [MSG]Violation in class org.gradle.plugins.signing.SignOperation. getDisplayName() can probably be rewritten as displayName |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 176 | [SRC]name == null ? (toSignArtifact?.name ?: getFile()?.name) : name [MSG]Violation in class org.gradle.plugins.signing.Signature. getFile() can probably be rewritten as file |
UnnecessaryGetter | 3 | 187 | [SRC]extension == null ? getSignatureType()?.extension : extension [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatureType() can probably be rewritten as signatureType |
UnnecessaryGetter | 3 | 200 | [SRC]def toSign = getToSign() [MSG]Violation in class org.gradle.plugins.signing.Signature. getToSign() can probably be rewritten as toSign |
UnnecessaryGetter | 3 | 201 | [SRC]def signatureType = getSignatureType() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatureType() can probably be rewritten as signatureType |
UnnecessaryGetter | 3 | 234 | [SRC]def file = getFile() [MSG]Violation in class org.gradle.plugins.signing.Signature. getFile() can probably be rewritten as file |
UnnecessaryGetter | 3 | 260 | [SRC]def toSign = getToSign() [MSG]Violation in class org.gradle.plugins.signing.Signature. getToSign() can probably be rewritten as toSign |
UnnecessaryGetter | 3 | 261 | [SRC]def signatureType = getSignatureType() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatureType() can probably be rewritten as signatureType |
UnnecessaryGetter | 3 | 279 | [SRC]signatureSpec.getSignatory() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 288 | [SRC]signatureSpec.getSignatureType() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatureType() can probably be rewritten as signatureType |
UnnecessaryGetter | 3 | 300 | [SRC]def toSign = getToSign() [MSG]Violation in class org.gradle.plugins.signing.Signature. getToSign() can probably be rewritten as toSign |
UnnecessaryGetter | 3 | 309 | [SRC]def signatory = getSignatory() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 318 | [SRC]def signatureType = getSignatureType() [MSG]Violation in class org.gradle.plugins.signing.Signature. getSignatureType() can probably be rewritten as signatureType |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 118 | [SRC]this.configuration = getDefaultConfiguration() [MSG]Violation in class org.gradle.plugins.signing.SigningExtension. getDefaultConfiguration() can probably be rewritten as defaultConfiguration |
UnnecessaryGetter | 3 | 198 | [SRC]spec.conventionMapping.map('signatory') { getSignatory() } [MSG]Violation in class org.gradle.plugins.signing.SigningExtension. getSignatory() can probably be rewritten as signatory |
UnnecessaryGetter | 3 | 199 | [SRC]spec.conventionMapping.map('signatureType') { getSignatureType() } [MSG]Violation in class org.gradle.plugins.signing.SigningExtension. getSignatureType() can probably be rewritten as signatureType |
UnnecessaryGetter | 3 | 222 | [SRC]addSignaturesToConfiguration(signTask, getConfiguration()) [MSG]Violation in class org.gradle.plugins.signing.SigningExtension. getConfiguration() can probably be rewritten as configuration |
UnnecessaryGetter | 3 | 243 | [SRC]this.addSignaturesToConfiguration(signTask, getConfiguration()) [MSG]Violation in class org.gradle.plugins.signing.SigningExtension. getConfiguration() can probably be rewritten as configuration |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessarySubstring | 3 | 63 | [SRC]normalised = keyIdUpped.substring(2) [MSG]Violation in class org.gradle.plugins.signing.signatory.pgp.PgpKeyId. The String.substring(int) method can be replaced with the subscript operator |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryGetter | 3 | 37 | [SRC]new File(toSign.path + ".${getExtension()}") [MSG]Violation in class org.gradle.plugins.signing.type.AbstractSignatureType. getExtension() can probably be rewritten as extension |
UnnecessaryGetter | 3 | 44 | [SRC]getExtension() [MSG]Violation in class org.gradle.plugins.signing.type.AbstractSignatureType. getExtension() can probably be rewritten as extension |
UnnecessaryGetter | 3 | 46 | [SRC]name[++dotIndex..-1] + ".${getExtension()}" [MSG]Violation in class org.gradle.plugins.signing.type.AbstractSignatureType. getExtension() can probably be rewritten as extension |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
StaticSimpleDateFormatField | 2 | 25 | [SRC]private static final SimpleDateFormat DATE_FORMAT = new .. HH:mm:ss"); [MSG]Violation in class org.gradle.profile.HTMLProfileReport. SimpleDateFormat instances are not thread safe. Wrap the SimpleDateFormat field DATE_FORMAT in a ThreadLocal or make it an instance field |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 49 | [SRC]return Boolean.class; [MSG]Boolean.class can be rewritten as Boolean |
UnnecessaryDotClass | 3 | 51 | [SRC]return Long.class; [MSG]Long.class can be rewritten as Long |
UnnecessaryDotClass | 3 | 53 | [SRC]return Integer.class; [MSG]Integer.class can be rewritten as Integer |
UnnecessaryDotClass | 3 | 55 | [SRC]return Short.class; [MSG]Short.class can be rewritten as Short |
UnnecessaryDotClass | 3 | 57 | [SRC]return Byte.class; [MSG]Byte.class can be rewritten as Byte |
UnnecessaryDotClass | 3 | 59 | [SRC]return Float.class; [MSG]Float.class can be rewritten as Float |
UnnecessaryDotClass | 3 | 61 | [SRC]return Double.class; [MSG]Double.class can be rewritten as Double |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDotClass | 3 | 27 | [SRC]@ExtensionAnnotation(TestPreconditionExtension.class) [MSG]TestPreconditionExtension.class can be rewritten as TestPreconditionExtension |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryDefInFieldDeclaration | 3 | 19 | [SRC]def TestFile baseDir [MSG]Violation in class org.gradle.util.TestDirHelper. The def keyword is unneeded when a field type is specified |
UnnecessaryDefInMethodDeclaration | 3 | 21 | [SRC]def TestDirHelper(TestFile baseDir) { [MSG]Violation in class org.gradle.util.TestDirHelper. The def keyword is unneeded on constructors |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
AssignmentInConditional | 2 | 40 | [SRC]while (entry = zipStr.getNextEntry()) { [MSG]Assignment used as conditional value, which always results in true. Use the == operator instead |
MisorderedStaticImports | 3 | 22 | [SRC]import static org.hamcrest.Matchers.equalTo [MSG]Static imports should appear before normal imports |
MisorderedStaticImports | 3 | 23 | [SRC]import static org.junit.Assert.assertThat [MSG]Static imports should appear before normal imports |
MisorderedStaticImports | 3 | 24 | [SRC]import static org.junit.Assert.assertTrue [MSG]Static imports should appear before normal imports |
UnnecessaryGetter | 3 | 40 | [SRC]while (entry = zipStr.getNextEntry()) { [MSG]Violation in class org.gradle.util.TestFileHelper. getNextEntry() can probably be rewritten as nextEntry |
UnnecessarySubstring | 3 | 110 | [SRC]return perms.substring(1, 10) [MSG]Violation in class org.gradle.util.TestFileHelper. The String.substring(int, int) method can be replaced with the subscript operator |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
UnnecessaryParenthesesForMethodCallWithClosure | 3 | 25 | [SRC]spec.skipped = annotation.value().any() { !it.fulfilled } [MSG]Violation in class org.gradle.util.TestPreconditionExtension. Parentheses in the 'any' method call are unnecessary and can be removed. |
UnnecessaryParenthesesForMethodCallWithClosure | 3 | 30 | [SRC]feature.skipped = annotation.value().any() { !it.fulfilled } [MSG]Violation in class org.gradle.util.TestPreconditionExtension. Parentheses in the 'any' method call are unnecessary and can be removed. |