-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable and fix Detekt naming and formatting rules (#642)
* detekt: enable and fix MatchingDeclarationName rule explain why InvalidPackageDeclaration blocked * detekt: enable ConstructorParameterNaming * detekt: enable ClassNaming * detekt: enable and fix VariableNaming * detekt: enable and fix FinalNewline enable formatting options (add required dependency) * detekt: enable and fix NoMultipleSpaces * detekt: enable and fix NoSemicolons * detekt: enable and fix NoTrailingSpaces * detekt: enable and fix NoUnusedImports * detekt: enable and fix NoWildcardImports * detekt: remove unused autoCorrect directives * detekt: explain why Indentation rule blocked and some fixes * detekt: enable NoEmptyClassBody rule * detekt: enable and fix NoConsecutiveBlankLines rule * detekt: enable and fix SpacingAroundColon rule * detekt: enable and fix SpacingAroundComma rule * detekt: enable and fix SpacingAroundCurly rule * detekt: enable and fix SpacingAroundDot rule * detekt: enable and fix SpacingAroundDoubleColon rule * detekt: enable and fix SpacingAroundKeyword rule * detekt: enable and fix SpacingAroundOperators rule * detekt: enable and fix SpacingAroundParens rule * detekt: enable and fix SpacingAroundRangeOperator rule * detekt: enable and fix SpacingBetweenDeclarationsWithAnnotations rule * detekt: enable and fix SpacingBetweenDeclarationsWithComments rule * detekt: enable and fix StringTemplate rule * detekt: enable and fix CommentSpacing rule * detekt: enable and fix ArgumentListWrapping rule * detekt: explain disabling ChainWrapping rule * detekt: enable and fix ImportOrdering rule * detekt: enable ModifierOrdering rule * detekt: enable and fix MultiLineIfElse rule * detekt: enable and fix NoBlankLineBeforeRbrace rule * detekt: enable NoLineBreakAfterElse rule * detekt: enable NoLineBreakBeforeAssignment rule * detekt: enable and fix ParameterListWrapping rule * detekt: finish with formatting for now * detekt * pr fixes * fix dependencies resolution
- Loading branch information
Showing
385 changed files
with
1,229 additions
and
1,198 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ts/android-test/keep-for-testing/src/main/kotlin/com/avito/android/test/KeepForTesting.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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ class SentryErrorsReporter( | |
override fun reportError(error: Throwable) { | ||
sentry.sendException(error) | ||
} | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ package com.avito.android.runner | |
|
||
interface Context { | ||
val errorsReporter: ErrorsReporter | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ package com.avito.android.runner | |
|
||
interface ErrorsReporter { | ||
fun reportError(error: Throwable) | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ class InstrumentationDelegate( | |
fun beforeOnStart() { | ||
systemDialogsManager.closeSystemDialogs() | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ class LogErrorsReporter( | |
override fun reportError(error: Throwable) { | ||
Log.e(tag, "ERROR", error) | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.