Keep server.rb focused on configuration, session setup, and shared helpers. Extract route definitions into registered Sinatra extension modules. Exclude the registered methods from AbcSize/MethodLength metrics — large registered methods are the idiomatic Sinatra pattern.
43 lines
702 B
YAML
43 lines
702 B
YAML
AllCops:
|
|
TargetRubyVersion: 3.3
|
|
NewCops: enable
|
|
SuggestExtensions: false
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/Documentation:
|
|
Exclude:
|
|
- "test/**/*"
|
|
- "exe/**/*"
|
|
|
|
Layout/LineLength:
|
|
Max: 100
|
|
|
|
Metrics/AbcSize:
|
|
Max: 30
|
|
Exclude:
|
|
- "lib/volumen/admin_routes.rb"
|
|
- "lib/volumen/api_routes.rb"
|
|
|
|
Metrics/MethodLength:
|
|
Max: 25
|
|
Exclude:
|
|
- "lib/volumen/admin_routes.rb"
|
|
- "lib/volumen/api_routes.rb"
|
|
|
|
Metrics/ClassLength:
|
|
Max: 400
|
|
|
|
Metrics/ModuleLength:
|
|
Exclude:
|
|
- "lib/volumen/admin_routes.rb"
|
|
|
|
Metrics/BlockLength:
|
|
Exclude:
|
|
- "test/**/*"
|
|
- "volumen.gemspec"
|