-
Notifications
You must be signed in to change notification settings - Fork 84
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
Various smaller issues with output #323
Comments
All except 4 are taken care of. Good catch |
Cool, will give it a quick test and then then fix number 4 from the list, too. |
I fixed number 4. There's an issue in TestFiles though. In JSON, totalfiles and totalsize will always be 0 each. That is because those values get incremented in CFLint.scan(...) which doesn't seem to be used in the TestFiles setup. I'd be happy to accept that those tests will always report 0/0. I regenerated all the expected test files, and then realised that it has changed the file paths
I'm pretty sure that should work across Win/Mac/Linux, but it'd be good if you could test that @ryaneberly . |
Yes, the expected file is representative of the system it was generated on,
but the tests will pass regardless of the system.
…On Sun, Jul 2, 2017 at 12:16 AM, Kai Koenig ***@***.***> wrote:
Closed #323 <#323>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#323 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFtZu8yDdp4oErE5kfE3f_m_phuvRJDhks5sJxmRgaJpZM4OLNY4>
.
|
I agree with @KamasamaK's comment on #331. The original JSON format is: The current format in dev is:
I think we need to redefine it as:
|
@ryaneberly I agree with your proposed format. That organization makes much more sense. It's technically a bigger change, but will be easier to re-integrate as will be likely since both changes are breaking. 😀 |
Yes, I agree with that too, much better format - I'll change it tomorrow. |
Note to self: Change user manual after this change. |
#323 - Changing JSON structure and changing expected test results
I think format is fine now - need someone to have a quick look at three of the tests that behave weird. Let me know what you think, if it's all ok I'll change the user guide. |
@TheRealAgentK, Thanks. I'll look tonight |
The structure looks good now. A few comments about the format:
|
1/2 - Happy to do that, will name them totalLines and totalFiles in JSON and XML and internally |
@TheRealAgentK Regarding 3, it's up to you guys which name you prefer. Since |
@KamasamaK |
That's actually a good point. |
If @KamasamaK doesn't mind I'll rename summary to counts in JSON, then at least XML doesn't break and it's consistent for now. |
…alLines in JSON output). Also changed CFLintStats internal naming. This is OK for CFLint XML changes because it was an attribute added only for 1.2 (no breaking functionality)
The text was updated successfully, but these errors were encountered: