-
Notifications
You must be signed in to change notification settings - Fork 356
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
Excessively large generated report files #378
Comments
Thanks for your report. One note: Starting with 1.3 the -k option uses glob patterns so it's likely not excluding what you expect. For a folder use
as we only enumerate files not folders. See https://en.m.wikipedia.org/wiki/Glob_(programming) for info on Glob patterns. It shouldn't be outputting both an html and a JSON from a single run, which I will investigate. Thank you for providing the source your using. I will try a run against the sample project you provided as well. |
I ran ApplicationInspector 1.3.3 (latest, 17 is a beta sorry for the confusion. I've taken that version down.) against your project and I don't see anything in the output that appears to have incorrectly matched. I also checked the code and it was intentional that the .json is produced alongside the .html, for the default run arguments so that you could "link" to it from the HTML. I'm opting to remove that so it will only produce the HTML report by default, as each may be large. I think the difference in behavior you are seeing is that by default 1.2.89 would only return 1 (ish) matches for a single tag. Later versions include all matches which is why the report is larger. One way to get a smaller report is - if you don't need the exact locations that the matches occurred - you can now use the |
#379 will close this to cover the JSON and HTML dual report issue. The rest of the things you reported appear to be working as expected. |
I've also added an argument that works will with Running Adding If you do want the individual matches. you can also reduce the size of the output file by reducing the amount of context lines gathered for each match. i.e. set |
1.3.4 was just released and fixes a bug with the |
Thank you for your quick answer and fix. I will check out the latest version soon. |
Hi @gfs ! Thanks again for your support. I just conducted a few tests with the latest 1.4.2 release. (A) Using
|
This is a bug.
This is also a bug. I have a fix for this. #383.
That's expected. Its no longer gathering that data so there's nothing to show.
C doesn't sound like a bug. |
Thank you for your answer! Sorry, I meant (A) and (B), not (A) and (C). |
Describe the bug
Since you updated to .NET 5, the generated report files (JSON & HTML) became very very large.
To Reproduce
Steps to reproduce the behavior:
dotnet ApplicationInspector.CLI.dll analyze -s "/folder/to/OrchardCore" -v Info -x high -c high,medium -k lib,.vs,.git,.idea
Expected behavior
With AppInspector 1.2.89 (version I keep using) the same files had a size of around 3 MB.
Desktop
The text was updated successfully, but these errors were encountered: