Closed nulls closed 10 months ago
DiktatSmokeTestBase
indentation rule - example 1
disable chapters
fix can cause long line
regression - should correctly handle tags with empty lines
smoke test #1
smoke test #2
smoke test #5
smoke test with gradle script plugin
IndentationRuleFixTest
indentation rule - example 1
KdocCommentsFixTest
check fix without class kdoc
KdocMethodsFixTest
@param tag should be added to existing KDoc
KdocMethods rule should reformat code (full example)
@throws tag should be added to existing KDoc
BracesRuleFixTest
should add braces to do-while loops with empty body
should add braces to if-else statements - 1
FileStructureRuleTest
check by #4 should trigger
LineLengthFixTest
shouldn't fix
should fix short long right value
should fix complex long binary expressions
fix long Dot Qualified Expression
should fix annotation
should fix long string template while some fix is already done
should fix long binary expression
should fix long right value
should fix long comment
should not fix long comment which located on the line length limit
should fix long function
LocalVariablesWarnTest
need to allow declaring vars outside of loops
local variables defined in outer scope and used in several scopes
local variables defined in outer scope and used only in nested scope
need to allow declaring vars outside collection methods
should check variables initialized with constructor with no parameters
NewlinesRuleWarnTest
long argument list should be split into several lines
IndentationRuleFixTest
indentation rule - example 1
SmartCastRuleWarnTest
smart cast in when bad
ExtensionFunctionsSameNameWarnTest
should trigger on classes in other files
RulesConfigValidationTest
should throw error on invalid configuration section
VariablesWithAssignmentsSearchTest
testing proper variables search with lambda
VariablesWithUsagesSearchTest
testing proper variables search in class with the property in the end
testing proper variables search in companion object
testing proper variables search in function with a class nested in a function
testing proper variables search in companion object with less priority then property
All tests marked as
@Disabled("https://github.com/saveourtool/diktat/issues/1737")
Some of them can fail is due to multiply runs, another -- due to modification of AST tree (limitation of kotlin 1.9):
Possible solutions: https://github.com/pinterest/ktlint/pull/2044