GithubHelp home page GithubHelp logo

Comments (3)

SimonScholz avatar SimonScholz commented on August 28, 2024

It seems that it looks for spotbugsXml.xml in the projects subdirectories.

See

List<File> spotBugsFiles = directories.stream().map(f -> new File(f, "spotbugsXml.xml")).filter(File::exists)

It already been 2 years ago since I worked on this gradle plugin, but several customers are using this gradle plugin to generate these reports.
Are you sure you properly setup spotbugs?

And you´re right I unfortunately hard coded the file name to be spotbugsXml.xml. Sorry for that.
I can change that if that helps you. Would it?

Do you have a sample project, where it can be tested? Unfortunately I do not have access to the customers using this plugin any more...

from report-aggregator.

stealthrabbi avatar stealthrabbi commented on August 28, 2024

I wonder if you're basing this off of an older version of spotbugs? Itd efinitely makes the files in build\reports\spotbugs\main.xml \ test.xml

from report-aggregator.

simon-gs avatar simon-gs commented on August 28, 2024

I have same issue with aggregation as @stealthrabbi. What @stealthrabbi mentioned about default report location and name is correct. After reading your code, I understand the plugin is expecting spotbugsXml.xm in subfolders of rootDirectory. So I renamed my main.xml to spotbugsXml.xm and put it in multiple level of its sub folders. None works. File SpotBugsAggregated.xml was generated in rootDirectory by Gradle task 'aggregateSpotBugsFiles'. But its content is like below that has no real data
===generated file SpotBugsAggregated.xml =====

My build.gradle file sitting in rootDirectory is like below (only spotbugs related content is listed)

==== partial of build.gradle related to spotbugs =======
plugins {
id 'com.simonscholz.reports' version '0.0.1'
id 'com.github.spotbugs' version '4.5.0'
}

subprojects {
//spotbugs
apply plugin: 'com.github.spotbugs'

//Spotbugs
spotbugsMain {
	reports {
		xml {
			enabled = true
		}
	}
}

spotbugs {
	maxHeapSize = "1g"
       toolVersion = '4.1.4'
       ignoreFailures = true
       effort = "max"
}

dependencies {
          spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'

}

}

I feel like it might be the issue with xml file. So I attached a short version of my spotbugsXml.xml. It has all the ingredients but with less data. (Have to rename to spotbugsXml.txt for upload).
spotbugsXml.txt

from report-aggregator.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.