You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classExample {
companionobject {
privateval keywordsWithSpaceAfter =TokenSet.create(
// these keywords are followed by {ELSE_KEYWORD, TRY_KEYWORD, DO_KEYWORD, FINALLY_KEYWORD, INIT_KEYWORD,
// these keywords are followed by (FOR_KEYWORD, IF_KEYWORD, WHILE_KEYWORD, CATCH_KEYWORD,
// these keywords can be followed by either { or (WHEN_KEYWORD
)
val operatorsWithNoWhitespace =TokenSet.create(DOT, RANGE, COLONCOLON, SAFE_ACCESS, EXCLEXCL)
// this is the number of parent nodes needed to check if this node is lambda from argument listprivateconstval numParentsForLambda =3
}
}
is autocorrected into
classExample {
companionobject {
val operatorsWithNoWhitespace =TokenSet.create(DOT, RANGE, COLONCOLON, SAFE_ACCESS, EXCLEXCL)// this is the number of parent nodes needed to check if this node is lambda// from argument listprivateconstvalNUM_PARENTS_FOR_LAMBDA=3privateval keywordsWithSpaceAfter =TokenSet.create(
// these keywords are followed by {ELSE_KEYWORD, TRY_KEYWORD, DO_KEYWORD, FINALLY_KEYWORD, INIT_KEYWORD,
// these keywords are followed by (FOR_KEYWORD, IF_KEYWORD, WHILE_KEYWORD, CATCH_KEYWORD,
// these keywords can be followed by either { or (WHEN_KEYWORD
)
}
}
and it has a whole lot of problems:
comment is getting split and it's parts are shuffled
blank lines are left
comments are incorrectly formatted after move
Environment information
diktat version: 0.1.3
The text was updated successfully, but these errors were encountered:
Describe the bug
is autocorrected into
and it has a whole lot of problems:
Environment information
The text was updated successfully, but these errors were encountered: