1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-26 05:37:53 +02:00

Add revive config for proper linting

* Add revive config for proper linting

* Turn off rule for exported functions and structs need comments
This commit is contained in:
Florian Geckeler 2020-02-26 09:44:18 +01:00 committed by GitHub
parent 2014a8b4ae
commit bef0dfc3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
config.toml Normal file
View File

@ -0,0 +1,30 @@
ignoreGeneratedHeader = false
severity = "warning"
confidence = 0.8
errorCode = 0
warningCode = 0
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.error-naming]
#[rule.exported]
[rule.if-return]
[rule.increment-decrement]
[rule.var-naming]
[rule.var-declaration]
[rule.package-comments]
[rule.range]
[rule.receiver-naming]
[rule.time-naming]
[rule.unexported-return]
[rule.indent-error-flow]
[rule.errorf]
[rule.empty-block]
[rule.superfluous-else]
[rule.unused-parameter]
[rule.unreachable-code]
[rule.redefines-builtin-id]