-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WRONG_INDENTATION
: add more tests for extendedIndentAfterOperators
(
#1401) * `WRONG_INDENTATION`: add more tests for `extendedIndentAfterOperators` ### What's done: * Tests for expressions wrapped on an operator have been added. * Both cases (when `extendedIndentAfterOperators` is `true` and `false`) are tested. * Both binary operators and functions are tested. * Test resources extracted into a separate class so that DeteKT remains quiet. * Related: #1340
- Loading branch information
1 parent
0351f52
commit 5f77cad
Showing
9 changed files
with
1,099 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.cqfn.diktat.ruleset.chapter3.spaces | ||
|
||
import org.junit.platform.suite.api.SelectClasses | ||
import org.junit.platform.suite.api.Suite | ||
|
||
@Suite | ||
@SelectClasses( | ||
IndentationRuleWarnTest::class, | ||
IndentationRuleFixTest::class) | ||
class IndentationRuleTest |
Oops, something went wrong.