Skip to content

Commit 8ff55f2

Browse files
committed
refactor: old Ruby code for Ruby 3.4
Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
1 parent ae3ec60 commit 8ff55f2

66 files changed

Lines changed: 945 additions & 684 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.rubocop.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ plugins:
66
- rubocop-rspec
77

88
AllCops:
9-
NewCops: disable
9+
NewCops: enable
1010
TargetRubyVersion: 3.4
1111
Exclude:
12-
- 'lib/template/*.spec'
12+
- "lib/template/*.spec"
13+
- "vendor/**/*"
14+
15+
# Added to enforce the frozen_string_literal: true header you just added
16+
Style/FrozenStringLiteralComment:
17+
Enabled: true
18+
EnforcedStyle: always
1319

1420
Layout/LineLength:
1521
Max: 140
@@ -32,5 +38,14 @@ Metrics/PerceivedComplexity:
3238
Style/StringLiterals:
3339
EnforcedStyle: double_quotes
3440

41+
# Allowing double quotes for all strings is your current style,
42+
# but this ensures it stays consistent.
43+
Style/StringLiteralsInInterpolation:
44+
EnforcedStyle: double_quotes
45+
3546
Style/MultilineBlockChain:
3647
Enabled: false
48+
49+
# RSpec specific tweaks for your Aruba tests
50+
RSpec/MultipleExpectations:
51+
Max: 10

0 commit comments

Comments
 (0)