зеркало из https://github.com/mozilla/glean.git
38 строки
776 B
YAML
38 строки
776 B
YAML
style:
|
|
# We want to allow "TODO" in comments
|
|
ForbiddenComment:
|
|
active: false
|
|
# Allow for generated code
|
|
WildcardImport:
|
|
excludeImports:
|
|
- mozilla.telemetry.glean.internal.*
|
|
# Multiple returns are ok
|
|
ReturnCount:
|
|
active: false
|
|
|
|
# Go ahead and jump (Jump!)
|
|
# Go ahead and jump
|
|
#
|
|
# break/continue in loops are ok.
|
|
LoopWithTooManyJumpStatements:
|
|
active: false
|
|
|
|
build:
|
|
maxIssues: 0
|
|
|
|
complexity:
|
|
LongMethod:
|
|
active: true
|
|
threshold: 60
|
|
|
|
# We need to relax naming of enums and classes a bit,
|
|
# as they are generated by the glean_parser for metric types, such as events.
|
|
naming:
|
|
active: true
|
|
ClassNaming:
|
|
active: true
|
|
classPattern: '[a-zA-Z0-9$]+'
|
|
EnumNaming:
|
|
active: true
|
|
enumEntryPattern: '[a-zA-Z0-9$]+'
|