Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to CFLint XML (was: Building a mechanism to pass timestamps and additional counters into FIndbugs XML) #278

Closed
TheRealAgentK opened this issue Jun 1, 2017 · 5 comments
Assignees

Comments

@TheRealAgentK
Copy link
Collaborator

BugCollection timestamp/analysisTimestamp should have proper values, not only 0 - in XSLT 2 this can be done built-in, XSLT 1 needs EXSLT. Need to have a closer look into that.

@TheRealAgentK
Copy link
Collaborator Author

EXSLT is pretty much a dead road.

The ideal option, if we wanted to have creating timestamps as part of the XSLT process, would be to switch to XSLT 2 --- which I can only find Saxxon-HE to support, but it's not under BSD but Mozilla license. Not sure if/how much of an issue that'd present, @ryaneberly.

Alternatively we could just build a bunch of more things into CFLints "native" XML output, such as the timestamp and other info (see discussion around #276). I think that'd be the preferable option.

@ryaneberly
Copy link
Contributor

ryaneberly commented Jun 3, 2017 via email

@TheRealAgentK
Copy link
Collaborator Author

Todos:

Timestamps

In counts section:

total_size
total_classes

Probably will also change total_bugs (which I could do easily via XSLT) over to a new counter in the CFLint XML.

@TheRealAgentK TheRealAgentK changed the title Building a mechanism to pass timestamps into XSLT for FIndbugs XML Additions to CFLint XML (was: Building a mechanism to pass timestamps and additional counters into FIndbugs XML) Jun 6, 2017
ryaneberly added a commit that referenced this issue Jun 21, 2017
@ryaneberly
Copy link
Contributor

@TheRealAgentK, I added simple stat tracking at the file level.

        if (verbose) {
            display("Total files scanned: " + cflint.getStats().getFileCount());
            display("Total size: " + cflint.getStats().getTotalSize());
        }

TheRealAgentK added a commit to TheRealAgentK/CFLint that referenced this issue Jun 25, 2017
…lfiles and totalsize to CFLint output XML (in <counts>)
TheRealAgentK added a commit that referenced this issue Jun 25, 2017
Work on #278, Improving Findbugs XML output with stats counts and timestamp
@TheRealAgentK
Copy link
Collaborator Author

Done with this.

Implications for the CFLint issues XML:


<issues> has a new timestamp attribute
<counts> has new totalfiles and totalsize attributes

Findbugs structure has not changed compared to my first batch of changes (that are already in master), just populated the fields I previously added with meaningful information now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants