refactor: split Server into api_routes and admin_routes modules

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.
This commit is contained in:
2026-06-25 21:35:07 +02:00
parent 140b16b55a
commit b2b8156648
4 changed files with 200 additions and 173 deletions
+10
View File
@@ -19,13 +19,23 @@ Layout/LineLength:
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/**/*"