Skip to content

Commit

Permalink
add baseline file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnation87 committed Nov 1, 2022
1 parent 7ebcad9 commit 9ae6bf4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions linta-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ java {
lint {
checkAllWarnings = true
warningsAsErrors = true
baseline = file("lint-baseline.xml")
}

dependencies {
Expand Down
15 changes: 15 additions & 0 deletions linta-android/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.3.0" type="baseline" client="gradle" dependencies="false" name="AGP (7.3.0)" variant="all" version="7.3.0">

<issue
id="LintImplTextFormat"
message="Single sentence error messages should not end with a period"
errorLine1=" message = &quot;Hardcoded colors should be declared in a color resource.&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/swvl/lint/checks/HardcodedColorXmlDetector.kt"
line="42"
column="28"/>
</issue>

</issues>

0 comments on commit 9ae6bf4

Please sign in to comment.