Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class HedvigLintConventionPlugin : Plugin<Project> {
}

private fun Lint.configure(lintXmlFile: File, lintBaselineFile: File) {
baseline = lintBaselineFile
// Lint aborts the build whenever it has to create a baseline, even when it found nothing to put in
// one, and the baseline it leaves behind then suppresses real errors on the next run. A module opts
// in by committing the file: create it empty, then fill it with `updateLintBaseline`.
baseline = lintBaselineFile.takeIf(File::exists)
lintConfig = lintXmlFile
xmlReport = true
}
6 changes: 6 additions & 0 deletions hedvig-lint/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
config entry for a check absent from a given module isn't flagged. -->
<issue id="UnknownIssueId" severity="ignore" />

<!-- Renovate (renovate.json) owns dependency freshness, so lint's version-staleness notices are
duplicate signal. They also resolve against the shared root gradle/libs.versions.toml rather
than the module being linted, so they report identically no matter which module runs lint. -->
<issue id="GradleDependency" severity="ignore" />
<issue id="NewerVersionAvailable" severity="ignore" />

<issue id="ButtonCase" severity="ignore" />
<issue id="TypographyDashes" severity="ignore" />
<issue id="TypographyEllipsis" severity="ignore" />
Expand Down
Loading