Skip to content

Commit d01eee8

Browse files
committed
rubocop manual fixes
1 parent a81ba80 commit d01eee8

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Layout/LineLength:
1818
Exclude:
1919
- 'test/**/*'
2020

21+
Lint/FloatComparison:
22+
Exclude:
23+
- 'test/**/*'
24+
2125
Metrics/MethodLength:
2226
Max: 13
2327
Exclude:
@@ -28,3 +32,9 @@ Style/HashSyntax:
2832

2933
Style/SymbolArray:
3034
EnforcedStyle: brackets
35+
36+
Naming/MethodParameterName:
37+
Enabled: false
38+
39+
Gemspec/RequireMFA:
40+
Enabled: false

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
source 'https://rubygems.org'
44

55
gemspec
6+
7+
group :development do
8+
gem 'rake'
9+
gem 'rubocop'
10+
gem 'test-unit'
11+
end

lib/openscap/xccdf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module OpenSCAP
66
module Xccdf
77
NUMERIC = :float
88

9-
class Item
9+
class Item # rubocop:disable Lint/EmptyClass
1010
end
1111
end
1212
end

openscap.gemspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GEMSPEC = Gem::Specification.new do |gem|
77
gem.name = 'openscap'
88
gem.version = OpenSCAP::VERSION
99
gem.platform = Gem::Platform::RUBY
10+
gem.required_ruby_version = '>= 3.2.2'
1011

1112
gem.author = 'Simon Lukasik'
1213
gem.email = '[email protected]'
@@ -17,9 +18,6 @@ GEMSPEC = Gem::Specification.new do |gem|
1718
gem.description = "A FFI wrapper around the OpenSCAP library.
1819
Currently it provides only subset of libopenscap functionality."
1920

20-
gem.add_development_dependency 'test-unit'
21-
gem.add_development_dependency :rake
22-
gem.add_development_dependency :rubocop
2321
gem.add_runtime_dependency 'ffi', '~> 1.15.5'
2422

2523
gem.files = Dir['{lib,test}/**/*'] + ['COPYING', 'README.md', 'Rakefile']

0 commit comments

Comments
 (0)