[DO-110] created groovy linter config and action workflow for linter (!23)

- created groovy linter config and action workflow for linter

Co-authored-by: Denis Patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/23
Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.tech>
Co-authored-by: Yaroslav Bondarenko <yaroslav.bondarenko@avroid.tech>
Co-committed-by: Yaroslav Bondarenko <yaroslav.bondarenko@avroid.tech>
This commit is contained in:
Yaroslav Bondarenko
2024-04-22 19:29:39 +03:00
committed by Denis Patrakeev
parent b85939500d
commit 120e62956f
2 changed files with 59 additions and 0 deletions

20
.groovylintrc.json Normal file
View File

@@ -0,0 +1,20 @@
{
"extends": "recommended",
"rules": {
"convention.CompileStatic": "off",
"convention.NoDef": "off",
"groovyism.ExplicitCallToEqualsMethod": "off",
"groovyism.GStringExpressionWithinString": "off",
"naming.VariableName": {
"ignoreVariableNames": "_"
},
"naming.FactoryMethodName": "off",
"unnecessary.UnnecessaryGetter": "off",
"size.NestedBlockDepth": {
"maxNestedBlockDepth": 10
},
"unused.UnusedVariable": {
"ignoreVariableNames": "_"
}
}
}