diff options
author | 2021-04-05 18:38:05 -0700 | |
---|---|---|
committer | 2021-04-05 18:38:05 -0700 | |
commit | ee4a8b7070e9294beaae3fc6edb9c15f33edd08a (patch) | |
tree | f05e37afcd6b381745a676d7bec84e4eb09fc04e /java/lint.go | |
parent | 7fef94f57b6cd6d8ba713bd1ba2609ffe049e1dd (diff) |
Make lint HTML output deterministic
Remove a date from the lint HTML output to make it deterministic.
Bug: 183509050
Test: m out/soong/.intermediates/packages/apps/DocumentsUI/DocumentsUI/android_common/lint/lint-report.html
Change-Id: I796c0b571780814b657b9427a17c248668053983
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/lint.go b/java/lint.go index 475e8dc7c..a91278a90 100644 --- a/java/lint.go +++ b/java/lint.go @@ -392,6 +392,9 @@ func (l *linter) lint(ctx android.ModuleContext) { rule.Command().Text("rm -rf").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String()) + // The HTML output contains a date, remove it to make the output deterministic. + rule.Command().Text(`sed -i.tmp -e 's|Check performed at .*\(</nav>\)|\1|'`).Output(html) + rule.Build("lint", "lint") l.outputs = lintOutputs{ |