Skip to content

Commit fdcf925

Browse files
committed
Modernize project for Ruby 3.4 and harden security
- Patched shell injection vulnerabilities in Tar, Unzip, and Bash facades - Use `Dir.glob` instead of slower `Find.find` - Added `frozen_string_literal` headers and fixed Ruby 3.4 deprecations - Improved RPM spec templates with nil-safety and modern packaging standards - Cleaned up entire test suite and fixed some RuboCop offenses - Enabled all RuboCop cops and recreated the TODO filename - Extended the test cases (e.g. for unzip dependency in spec file) - Fixed #10 Signed-off-by: Dominik Gedon <dominik.gedon@suse.com>
1 parent 930a32f commit fdcf925

67 files changed

Lines changed: 1078 additions & 697 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: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
inherit_from: .rubocop_todo.yml
22

33
plugins:
4+
- rubocop-performance
45
- rubocop-rake
56
- rubocop-rspec
67

78
AllCops:
8-
NewCops: disable
9+
NewCops: enable
910
TargetRubyVersion: 3.4
1011
Exclude:
11-
- 'lib/template/*.spec'
12+
- "lib/template/*.spec"
13+
- "vendor/**/*"
14+
- "tmp/**/*"
15+
16+
Style/FrozenStringLiteralComment:
17+
Enabled: true
18+
EnforcedStyle: always
1219

1320
Layout/LineLength:
1421
Max: 140
@@ -31,5 +38,11 @@ Metrics/PerceivedComplexity:
3138
Style/StringLiterals:
3239
EnforcedStyle: double_quotes
3340

41+
Style/StringLiteralsInInterpolation:
42+
EnforcedStyle: double_quotes
43+
3444
Style/MultilineBlockChain:
3545
Enabled: false
46+
47+
RSpec/MultipleExpectations:
48+
Max: 10

0 commit comments

Comments
 (0)