86 lines
1.6 KiB
YAML
86 lines
1.6 KiB
YAML
build:
|
|
maxIssues: 0
|
|
weights:
|
|
complexity: 2
|
|
formatting: 1
|
|
LongParameterList: 1
|
|
comments: 1
|
|
|
|
potential-bugs:
|
|
active: true
|
|
DuplicateCaseInWhenExpression:
|
|
active: true
|
|
EqualsWithHashCodeExist:
|
|
active: true
|
|
ExplicitGarbageCollectionCall:
|
|
active: true
|
|
LateinitUsage:
|
|
active: false
|
|
UnsafeCallOnNullableType:
|
|
active: false
|
|
UnsafeCast:
|
|
active: false
|
|
|
|
performance:
|
|
active: true
|
|
ForEachOnRange:
|
|
active: true
|
|
SpreadOperator:
|
|
active: true
|
|
|
|
exceptions:
|
|
active: true
|
|
TooGenericExceptionCaught:
|
|
allowedExceptionNameRegex: '_|(all|ignore|expected).*'
|
|
|
|
empty-blocks:
|
|
active: true
|
|
|
|
complexity:
|
|
active: true
|
|
TooManyFunctions:
|
|
thresholdInFiles: 20
|
|
thresholdInClasses: 20
|
|
thresholdInInterfaces: 20
|
|
LabeledExpression:
|
|
active: false
|
|
|
|
|
|
formatting:
|
|
autoCorrect: true
|
|
active: false
|
|
|
|
style:
|
|
active: true
|
|
NewLineAtEndOfFile:
|
|
active: true
|
|
ForbiddenComment:
|
|
active: true
|
|
values: 'FIXME:,STOPSHIP:'
|
|
WildcardImport:
|
|
active: true
|
|
MaxLineLength:
|
|
active: true
|
|
maxLineLength: 120
|
|
excludePackageStatements: false
|
|
excludeImportStatements: false
|
|
MagicNumber:
|
|
# 100 common in percentage, 1000 in milliseconds
|
|
ignoreNumbers: ['-1', '0', '1', '2', '100', '1000']
|
|
ignoreEnums: true
|
|
ignorePropertyDeclaration: true
|
|
UnnecessaryAbstractClass:
|
|
active: false
|
|
ReturnCount:
|
|
max: 3
|
|
|
|
comments:
|
|
active: true
|
|
UndocumentedPublicClass:
|
|
active: false
|
|
searchInNestedClass: true
|
|
searchInInnerClass: true
|
|
searchInInnerInterface: true
|
|
UndocumentedPublicFunction:
|
|
active: false
|