Skip to content

Commit

Permalink
Lints are now quietly suppressed during apply, you have to do `chec…
Browse files Browse the repository at this point in the history
…k` to see them.
  • Loading branch information
nedtwigg committed Jan 14, 2022
1 parent 85fbe71 commit e8e5df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2021 DiffPlug
* Copyright 2016-2022 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -135,7 +135,7 @@ void testWithIndentation() throws IOException {
" }",
"}");
setFile("src/main/kotlin/basic.kt").toResource("kotlin/ktlint/basic.dirty");
BuildResult result = gradleRunner().withArguments("spotlessApply").buildAndFail();
BuildResult result = gradleRunner().withArguments("spotlessCheck", "--stacktrace").buildAndFail();
assertThat(result.getOutput()).contains("Unexpected indentation (4) (it should be 6)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void integration_default_diktat() throws IOException {
" }",
"}");
setFile("configuration.gradle.kts").toResource("kotlin/diktat/basic.dirty");
BuildResult result = gradleRunner().withArguments("spotlessApply").buildAndFail();
BuildResult result = gradleRunner().withArguments("spotlessCheck").buildAndFail();
assertThat(result.getOutput()).contains("[AVOID_NESTED_FUNCTIONS] try to avoid using nested functions");
}

Expand Down

0 comments on commit e8e5df5

Please sign in to comment.