Skip to content

Commit

Permalink
Add baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
joshafeinberg committed Mar 3, 2020
1 parent 513a605 commit 6465c32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ task ktlint(type: JavaExec, group: LifecycleBasePlugin.VERIFICATION_GROUP) {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = 'com.pinterest.ktlint.Main'
args '*/src/**/*.kt'
args '*/src/**/*.kt', '--baseline=ktlint-baseline.xml'
}

allprojects {
Expand Down
11 changes: 11 additions & 0 deletions ktlint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<baseline version="1.0">
<file name="/ktlint/src/test/resources/TestBaselineExtraErrorFile.kt">
<error line="1" column="34" source="no-empty-class-body" />
<error line="2" column="1" source="no-blank-line-before-rbrace" />
</file>
<file name="/ktlint/src/test/resources/TestBaselineFile.kt">
<error line="1" column="24" source="no-empty-class-body" />
<error line="2" column="1" source="no-blank-line-before-rbrace" />
</file>
</baseline>

0 comments on commit 6465c32

Please sign in to comment.