-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
The Detekt HTML Report should include date, version number, website link (Feature Request) #2416
Comments
Good idea! |
A URL link to the website has multiple purposes:
|
Thanks for stating that! The following class and the corresponding test cases should be adapted. |
I can try. I could submit a pull request of an initial change. But I won't be able to check out the whole project or test the change, or write a unit test for it. Someone else will have to test it and tidy it up, but I don't mind helping to refine it, if given guidance. Let me know if that's acceptable to you. |
That's acceptable. Please go ahead! Thanks for your time and help! 👍 |
I agree with all of them too, but: would the date mess up the gradle cache? |
I would add |
* Add date, detekt-version + link to HtmlReport These tags are added to the beginning of the HtmlReport. Closes #2416 * Format date in HtmlReport Example: 2020-03-20 12:11:36 UTC * Add test for 'generated with' header to HtmlReport * Delete created file in unit test on exit * Move generated with info to the bottom of the HtmlReport
Expected Behavior
The "detekt report" HTML file should contain the following:
"Generated on: Saturday, 7 March 2020, 14:45, UTC"
Current Behavior
The HTML report does not contain any of these 3 items.
Context
When 1 or more HTML reports are viewed in a web browser, the user cannot tell when the report was generated, or which detekt version was used. This makes it difficult to compare reports. Other code analysis Lint tools, like SpotBugs, will display some of these things.
The text was updated successfully, but these errors were encountered: