mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
7106b0f1b9
* TM-74 Converting ParallelTestGroup * TM-74 private fields, getters, distributedTesting refactoring * TM-74 More conversions * TM-74 reinstating ListTests groovy class * TM-74 extracting enum and clas from ListTests * TM-74 switching to java ListTests * TM-74 null check * TM-74 new access modifiers * TM-74 minor changes * TM-74 scrapping the conversions of ListTests to java * TM-74 reverting build.gradle * TM-74 formatting main gradle * TM-74 removing the commented out code. It has been linked in the jira * TM-74 adding list tests back for investigation * TM-74 collecting after every operation * TM-74 collecting after every operation * TM-74 more debugging * TM-74 more debugging with lifecycle now * TM-74 debugging on the existing groovy file * TM-74 with stream output * TM-74 switching back to java * TM-74 reverting java code, fixing cast in distributed testing file? * TM-74 nailing down the line causing the problem * TM-74 casting * TM-74 changing types * TM-74 stacktrace at pod lvl * TM-74 stacktrace at pod lvl * TM-74 fix issue with immutable list * TM-74 reverting changes now that fix is in place * TM-74 switching to generic task * TM-74 turning off debugging * TM-74 allocating by method
196 lines
4.7 KiB
YAML
196 lines
4.7 KiB
YAML
build:
|
|
maxIssues: 0
|
|
weights:
|
|
# complexity: 2
|
|
# LongParameterList: 1
|
|
# style: 1
|
|
# comments: 1
|
|
|
|
complexity:
|
|
active: true
|
|
ComplexCondition:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
threshold: 4
|
|
ComplexMethod:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
threshold: 10
|
|
ignoreSingleWhenExpression: true
|
|
LargeClass:
|
|
active: true
|
|
excludes: "**/test/**,**/integration-test/**,**/integration-test-slow/**,**/*Test.kt,**/*Tests.kt,**/buildSrc/**"
|
|
threshold: 600
|
|
LongMethod:
|
|
active: true
|
|
excludes: "**/test/**,**/integration-test/**,**/integration-test-slow/**,**/*Test.kt,**/*Tests.kt,**/buildSrc/**"
|
|
threshold: 120
|
|
LongParameterList:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
threshold: 6
|
|
ignoreDefaultParameters: false
|
|
NestedBlockDepth:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
threshold: 4
|
|
TooManyFunctions:
|
|
active: true
|
|
excludes: "**/test/**,**/integration-test/**,**/integration-test-slow/**,**/*Test.kt,**/*Tests.kt,**/buildSrc/**"
|
|
thresholdInFiles: 15
|
|
thresholdInClasses: 15
|
|
thresholdInInterfaces: 15
|
|
thresholdInObjects: 15
|
|
thresholdInEnums: 15
|
|
|
|
empty-blocks:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
EmptyCatchBlock:
|
|
active: true
|
|
allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
|
|
EmptyClassBlock:
|
|
active: true
|
|
EmptyDefaultConstructor:
|
|
active: true
|
|
EmptyDoWhileBlock:
|
|
active: true
|
|
EmptyElseBlock:
|
|
active: true
|
|
EmptyFinallyBlock:
|
|
active: true
|
|
EmptyForBlock:
|
|
active: true
|
|
EmptyIfBlock:
|
|
active: true
|
|
EmptyInitBlock:
|
|
active: true
|
|
EmptyKtFile:
|
|
active: true
|
|
EmptySecondaryConstructor:
|
|
active: true
|
|
EmptyWhenBlock:
|
|
active: true
|
|
EmptyWhileBlock:
|
|
active: true
|
|
|
|
exceptions:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
TooGenericExceptionCaught:
|
|
active: true
|
|
exceptionNames:
|
|
- ArrayIndexOutOfBoundsException
|
|
- Error
|
|
- Exception
|
|
- IllegalMonitorStateException
|
|
- NullPointerException
|
|
- IndexOutOfBoundsException
|
|
- RuntimeException
|
|
- Throwable
|
|
TooGenericExceptionThrown:
|
|
active: true
|
|
exceptionNames:
|
|
- Error
|
|
- Exception
|
|
- Throwable
|
|
- RuntimeException
|
|
|
|
naming:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
ClassNaming:
|
|
active: true
|
|
classPattern: '[A-Z$][a-zA-Z0-9$]*'
|
|
EnumNaming:
|
|
active: true
|
|
enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
|
|
FunctionNaming:
|
|
active: true
|
|
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
|
|
excludeClassPattern: '$^'
|
|
ignoreOverridden: true
|
|
MatchingDeclarationName:
|
|
active: true
|
|
ObjectPropertyNaming:
|
|
active: true
|
|
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
|
|
PackageNaming:
|
|
active: true
|
|
packagePattern: '^[a-z]+(\.[a-z][A-Za-z0-9]*)*$'
|
|
TopLevelPropertyNaming:
|
|
active: true
|
|
constantPattern: '[A-Z][_A-Z0-9]*'
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
|
VariableNaming:
|
|
active: true
|
|
variablePattern: '[a-z][A-Za-z0-9]*'
|
|
privateVariablePattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
|
|
excludeClassPattern: '$^'
|
|
ignoreOverridden: true
|
|
|
|
performance:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
ForEachOnRange:
|
|
active: true
|
|
SpreadOperator:
|
|
active: true
|
|
UnnecessaryTemporaryInstantiation:
|
|
active: true
|
|
|
|
potential-bugs:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
DuplicateCaseInWhenExpression:
|
|
active: true
|
|
EqualsWithHashCodeExist:
|
|
active: true
|
|
ExplicitGarbageCollectionCall:
|
|
active: true
|
|
UnreachableCode:
|
|
active: true
|
|
|
|
style:
|
|
active: true
|
|
ForbiddenComment:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
values: 'TODO:,FIXME:,STOPSHIP:'
|
|
MagicNumber:
|
|
active: true
|
|
excludes: "**/test/**,**/integration-test/**,**/integration-test-slow/**,**/*Test.kt,**/*Tests.kt,**/buildSrc/**"
|
|
ignoreNumbers: '-1,0,1,2'
|
|
ignoreHashCodeFunction: true
|
|
ignorePropertyDeclaration: false
|
|
ignoreConstantDeclaration: true
|
|
ignoreCompanionObjectPropertyDeclaration: true
|
|
ignoreAnnotation: false
|
|
ignoreNamedArgument: true
|
|
ignoreEnums: true
|
|
MaxLineLength:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
maxLineLength: 140
|
|
excludePackageStatements: true
|
|
excludeImportStatements: true
|
|
ModifierOrder:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
OptionalAbstractKeyword:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
SafeCast:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
ThrowsCount:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
max: 2
|
|
WildcardImport:
|
|
active: true
|
|
excludes: "**/buildSrc/**"
|
|
excludeImports: 'java.util.*,kotlinx.android.synthetic.*' |