Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
9fb18095
Commit
9fb18095
authored
Feb 04, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detekt.yml
parent
39530a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
287 additions
and
0 deletions
+287
-0
detekt.yml
detekt.yml
+287
-0
No files found.
detekt.yml
0 → 100644
View file @
9fb18095
# https://github.com/arturbosch/detekt/blob/801994bd60cc759b181649356cea045b8125301b/detekt-cli/src/main/resources/default-detekt-config.yml
comments
:
active
:
false
complexity
:
active
:
true
ComplexCondition
:
active
:
true
threshold
:
3
ComplexInterface
:
active
:
true
threshold
:
10
includeStaticDeclarations
:
false
ComplexMethod
:
active
:
true
threshold
:
10
LabeledExpression
:
active
:
true
LargeClass
:
active
:
true
threshold
:
150
LongMethod
:
active
:
true
threshold
:
20
LongParameterList
:
active
:
true
threshold
:
5
ignoreDefaultParameters
:
true
MethodOverloading
:
active
:
true
threshold
:
5
NestedBlockDepth
:
active
:
true
threshold
:
3
StringLiteralDuplication
:
active
:
true
threshold
:
2
ignoreAnnotation
:
true
excludeStringsWithLessThan5Characters
:
true
ignoreStringsRegex
:
'
$^'
TooManyFunctions
:
active
:
true
thresholdInFiles
:
10
thresholdInClasses
:
10
thresholdInInterfaces
:
10
thresholdInObjects
:
10
thresholdInEnums
:
10
empty-blocks
:
active
:
true
EmptyCatchBlock
:
active
:
false
EmptyClassBlock
:
active
:
true
EmptyDefaultConstructor
:
active
:
true
EmptyDoWhileBlock
:
active
:
true
EmptyElseBlock
:
active
:
true
EmptyFinallyBlock
:
active
:
true
EmptyForBlock
:
active
:
true
EmptyFunctionBlock
:
active
:
true
EmptyIfBlock
:
active
:
true
EmptyInitBlock
:
active
:
true
EmptyKtFile
:
active
:
true
EmptySecondaryConstructor
:
active
:
true
EmptyWhenBlock
:
active
:
true
EmptyWhileBlock
:
active
:
true
exceptions
:
active
:
true
ExceptionRaisedInUnexpectedLocation
:
active
:
true
methodNames
:
'
toString,hashCode,equals,finalize'
InstanceOfCheckForException
:
active
:
true
NotImplementedDeclaration
:
active
:
true
PrintStackTrace
:
active
:
false
RethrowCaughtException
:
active
:
true
ReturnFromFinally
:
active
:
true
SwallowedException
:
active
:
true
ThrowingExceptionFromFinally
:
active
:
true
ThrowingExceptionInMain
:
active
:
true
ThrowingExceptionsWithoutMessageOrCause
:
active
:
true
exceptions
:
'
IllegalArgumentException,IllegalStateException,IOException'
ThrowingNewInstanceOfSameException
:
active
:
true
TooGenericExceptionCaught
:
active
:
true
exceptions
:
-
ArrayIndexOutOfBoundsException
-
Error
-
Exception
-
IllegalMonitorStateException
-
NullPointerException
-
IndexOutOfBoundsException
-
RuntimeException
-
Throwable
TooGenericExceptionThrown
:
active
:
true
exceptions
:
-
Error
-
Exception
-
NullPointerException
-
Throwable
-
RuntimeException
naming
:
active
:
true
ClassNaming
:
active
:
true
classPattern
:
'
[A-Z$][a-zA-Z0-9$]*'
EnumNaming
:
active
:
true
enumEntryPattern
:
'
^[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName
:
active
:
true
forbiddenName
:
'
'
FunctionMaxLength
:
active
:
true
maximumFunctionNameLength
:
30
FunctionMinLength
:
active
:
true
minimumFunctionNameLength
:
3
FunctionNaming
:
active
:
true
functionPattern
:
'
^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
MatchingDeclarationName
:
active
:
true
MemberNameEqualsClassName
:
active
:
false
ObjectPropertyNaming
:
active
:
true
propertyPattern
:
'
[A-Za-z][_A-Za-z0-9]*'
PackageNaming
:
active
:
true
packagePattern
:
'
^[a-z]+(\.[a-z][a-z0-9]*)*$'
TopLevelPropertyNaming
:
active
:
true
constantPattern
:
'
[A-Z][_A-Z0-9]*'
propertyPattern
:
'
[a-z][A-Za-z\d]*'
privatePropertyPattern
:
'
(_)?[a-z][A-Za-z0-9]*'
VariableMaxLength
:
active
:
true
maximumVariableNameLength
:
64
VariableMinLength
:
active
:
false
VariableNaming
:
active
:
true
variablePattern
:
'
[a-z][A-Za-z0-9]*'
privateVariablePattern
:
'
(_)?[a-z][A-Za-z0-9]*'
performance
:
active
:
true
ForEachOnRange
:
active
:
true
SpreadOperator
:
active
:
true
UnnecessaryTemporaryInstantiation
:
active
:
true
potential-bugs
:
active
:
true
DuplicateCaseInWhenExpression
:
active
:
true
EqualsAlwaysReturnsTrueOrFalse
:
active
:
true
EqualsWithHashCodeExist
:
active
:
true
ExplicitGarbageCollectionCall
:
active
:
true
InvalidRange
:
active
:
true
IteratorHasNextCallsNextMethod
:
active
:
true
IteratorNotThrowingNoSuchElementException
:
active
:
true
LateinitUsage
:
active
:
false
UnconditionalJumpStatementInLoop
:
active
:
true
UnreachableCode
:
active
:
true
UnsafeCallOnNullableType
:
active
:
false
UnsafeCast
:
active
:
false
UselessPostfixExpression
:
active
:
true
WrongEqualsTypeParameter
:
active
:
true
style
:
active
:
true
CollapsibleIfStatements
:
active
:
true
DataClassContainsFunctions
:
active
:
true
conversionFunctionPrefix
:
'
to'
EqualsNullCall
:
active
:
true
ExpressionBodySyntax
:
active
:
true
ForbiddenComment
:
active
:
true
values
:
'
TODO:,FIXME:,STOPSHIP:'
ForbiddenImport
:
active
:
true
imports
:
'
'
FunctionOnlyReturningConstant
:
active
:
true
ignoreOverridableFunction
:
true
excludedFunctions
:
'
describeContents'
LoopWithTooManyJumpStatements
:
active
:
true
maxJumpCount
:
1
MagicNumber
:
active
:
false
MaxLineLength
:
active
:
true
maxLineLength
:
120
excludePackageStatements
:
false
excludeImportStatements
:
false
ModifierOrder
:
active
:
true
NestedClassesVisibility
:
active
:
true
NewLineAtEndOfFile
:
active
:
true
OptionalAbstractKeyword
:
active
:
true
OptionalReturnKeyword
:
active
:
true
OptionalUnit
:
active
:
true
OptionalWhenBraces
:
active
:
true
ProtectedMemberInFinalClass
:
active
:
true
RedundantVisibilityModifierRule
:
active
:
true
ReturnCount
:
active
:
false
SafeCast
:
active
:
true
SerialVersionUIDInSerializableClass
:
active
:
true
SpacingBetweenPackageAndImports
:
active
:
true
ThrowsCount
:
active
:
true
max
:
2
UnnecessaryAbstractClass
:
active
:
true
UnnecessaryInheritance
:
active
:
true
UnnecessaryParentheses
:
active
:
true
UntilInsteadOfRangeTo
:
active
:
true
UnusedImports
:
active
:
true
UseDataClass
:
active
:
false
UtilityClassWithPublicConstructor
:
active
:
true
WildcardImport
:
active
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment