You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the same pom.xml as above, change the <htmlOutput> entry to true. Run the same analysis. The .xml file that is present has incorrect data for the FindBugsSummary, in that:
total_classes is now 0
total_size is now 0
referenced_classes is now 0
<FindBugsSummarynum_packages="1"total_classes="0"priority_3="1"total_size="0"clock_seconds="2.40"referenced_classes="0"vm_version="17.0.13+11-LTS"total_bugs="1"java_version="17.0.13"gc_seconds="0.01"alloc_mbytes="512.00"cpu_seconds="13.78"peak_mbytes="301.76"timestamp="Thu, 16 Jan 2025 21:23:46 +0000">
<FileStatspath="some/path/badstuff/HeresAClass.java"size="0"bugHash="cb16f806906e6989c3e8fb922aef1152"bugCount="1"/>
<FindBugsProfile/>
</FindBugsSummary>
In addition:
The <FileStats> attribute size for the class shows 0, whereas previously it showed "9"
The <PackageStats> section under the <FindBugsSummary> is missing
The <FindBugsProfile> is empty.
Furthermore, running the spotbugs -textui with appropriate parameters from the command line (i.e., not using mvn) generates correct .xml and html.
Expectation:
Turning on htmlOutput should not change the FindBugsSummary entries. It should not remove child sections.
Current Situation:
Setting the <htmlOutput> to true generates different information in the .xml file.
The text was updated successfully, but these errors were encountered:
I apologize if I am misunderstanding how these can be used together.
Start with the following settings in a pom.xml
In the resulting xml file in the "spotbugs-gen/", the
FindBugsSummary
will have the correct total_classes (1) and total_size (9):Using the same pom.xml as above, change the
<htmlOutput>
entry to true. Run the same analysis. The .xml file that is present has incorrect data for theFindBugsSummary
, in that:In addition:
<FileStats>
attributesize
for the class shows 0, whereas previously it showed "9"<PackageStats>
section under the<FindBugsSummary>
is missing<FindBugsProfile>
is empty.Furthermore, running the spotbugs -textui with appropriate parameters from the command line (i.e., not using mvn) generates correct .xml and html.
Expectation:
Turning on htmlOutput should not change the FindBugsSummary entries. It should not remove child sections.
Current Situation:
Setting the
<htmlOutput>
to true generates different information in the .xml file.The text was updated successfully, but these errors were encountered: