.rubocop.yml
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# Offense count: 221
Metrics/AbcSize:
Max: 312
# Offense count: 14
Metrics/BlockNesting:
Max: 5
Metrics/BlockLength:
Max: 86
Exclude:
- "test/**/*"
- "src/include/network/routines.rb"
# Offense count: 5
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 2000
# some includes are really long
Metrics/ModuleLength:
Max: 1500
# Offense count: 81
Metrics/CyclomaticComplexity:
Max: 50
# Offense count: 321
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 501
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 74
Metrics/PerceivedComplexity:
Max: 59
# To not break old API
Naming/MethodName:
Enabled: false
# very inconsistent params in old API
Naming/MethodParameterName:
Enabled: false
# very inconsistent params in old API
Naming/BlockParameterName:
Enabled: false
# Offense count: 94
Style/Documentation:
Enabled: false
# Offense count: 97
# Configuration parameters: EnforcedStyle, SupportedStyles.
Naming/VariableName:
Enabled: false
# Offense count: 1
Style/ClassVars:
Enabled: false
# Offense count: 20
# Configuration parameters: Exclude.
Naming/FileName:
Exclude:
- "src/modules/*"
# to keep API compatible
Style/TrivialAccessors:
Enabled: false
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
# to keep API compatible
Style/OptionalBooleanParameter:
Enabled: false