Skip to content

Commit

Permalink
Update Lint baselines after ag/25440819
Browse files Browse the repository at this point in the history
Bug: 309649408
Change-Id: Iafc53ab34a9ff8678f59c643b4288d73d15aae12
  • Loading branch information
eugen-yakovets committed Dec 1, 2023
1 parent 60674d7 commit 8d7fb1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kotlin_library(
srcs = glob([
"convert-tool/app/src/main/kotlin/com/google/android/gradle_recipe/converter/**/*.kt",
]),
lint_baseline = "lint_baseline.xml",
deps = [
"@maven//:com.github.rising3.semver",
"@maven//:com.google.guava.guava",
Expand Down
15 changes: 15 additions & 0 deletions 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 8.3.0-dev" type="baseline" client="" dependencies="true" name="" variant="all" version="8.3.0-dev">

<issue
id="NoNioFilesCopy"
message="Do not use `java.nio.file.Files.copy(Path, Path)`. Instead, use `FileUtils.copyFile(Path, Path)` or Kotlin&apos;s `File#copyTo(File)`"
errorLine1=" Files.copy(sourceFile, destinationFile, StandardCopyOption.REPLACE_EXISTING)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="convert-tool/app/src/main/kotlin/com/google/android/gradle_recipe/converter/converters/RecipeConverter.kt"
line="198"
column="39"/>
</issue>

</issues>

0 comments on commit 8d7fb1b

Please sign in to comment.