Skip to content

Commit

Permalink
Bugfix for fi mode of AVOID_NULL_CHECK
Browse files Browse the repository at this point in the history
### What's done:
 * Added isAssignment utility function to check if a line has assignment operator ('=') using simple regex
 * Added a check for assignment operator when deciding if to put run block or not
 * Added tests
(#1293)
  • Loading branch information
sanyavertolet committed Oct 26, 2022
1 parent 00560aa commit c04695e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ abstract class DiktatSmokeTestBase : FixTestBase("test/smoke/src/main/kotlin",

companion object {
const val DEFAULT_CONFIG_PATH = "../diktat-analysis.yml"
private const val TEST_TIMEOUT_SECONDS = 20L
private const val TEST_TIMEOUT_SECONDS = 25L
val unfixedLintErrors: MutableList<LintError> = mutableListOf()

// by default using same yml config as for diktat code style check, but allow to override
Expand Down

0 comments on commit c04695e

Please sign in to comment.