agama/service/.rubocop.yml
2026-05-07 13:08:56 +01:00

38 lines
869 B
YAML

# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# vendor is not controlled by us and y2dir is often modified old yast code that
# we do not want to rewrite now
AllCops:
Exclude:
- vendor/**/*
- lib/agama/dbus/y2dir/**/*
- agama-yast.gemspec
- package/*.spec
# a D-Bus method definition may take up more line length than usual
Layout/LineLength:
IgnoredPatterns:
- dbus_method
# a D-Bus interface definition may take up more lines than a regular method
Metrics/BlockLength:
IgnoredMethods:
- dbus_interface
# assignment in method calls is used to document some params
Lint/UselessAssignment:
Enabled: false
# be less strict
Metrics/AbcSize:
Max: 33
Metrics/ParameterLists:
Max: 6
Exclude:
- lib/agama/software/repository.rb
Metrics/ClassLength:
Max: 300