Vladislav Frolov
Vladislav Frolov
- If the template string contains an expression longer than N characters, then the expression must be moved to a separate variable.
Example: ``` vall foo = (hasExplicitNotUnitReturnType || isFunWithExpressionBody && !hasExplicitUnitReturnType && hasNotExpressionBodyTypes) && !hasReturnKdoc && !isReferenceExpressionWithSameName ``` Diktat will glue two lines into one and break on warning LONG_LINE
In fixed mode, this rule changes the constant to uppercase. But does not change these constants themselves in the code, thereby making the code not working
Diktat doesn't swear at commented code ``` /* companion object : RStatics( RegistrationView::class ) { init { RegistrationView.contextType = requestStatusContext } }*/ ```
Unity project for the Welcome to the Moon board game. [Welcome-To-The-Moon-Companion](https://github.com/Cheshiriks/Welcome-To-The-Moon-Companion) is a companion app for independently completing all 8 scenarios of the board game Welcome to the Moon. ![WelcomeToTheMoon](https://github.com/Cheshiriks/Welcome-To-The-Moon-Companion/assets/50615459/fec51a08-5830-4656-9c9a-063b6c2cf209)
Unused imports with * are not removed ![image](https://user-images.githubusercontent.com/50615459/233068132-55213cee-3699-41f6-a1df-f4d977be0f40.png)
If the file contains only one Interface or enum class, then it will not have a **.kt** in the name. Maybe add this to the rule?
can we configure this rule somehow to not to trigger on frontend? _Originally posted by @kgevorkyan in https://github.com/saveourtool/save-cloud/pull/2099#discussion_r1173818369_ > We can only adjust the maximum size of the lamda itself....