Skip to content

Commit

Permalink
rubocop manual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed May 24, 2023
1 parent e320ff6 commit 05dd408
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Layout/LineLength:
Exclude:
- 'test/**/*'

Lint/FloatComparison:
Exclude:
- 'test/**/*'

Metrics/MethodLength:
Max: 13
Exclude:
Expand All @@ -28,3 +32,9 @@ Style/HashSyntax:

Style/SymbolArray:
EnforcedStyle: brackets

Naming/MethodParameterName:
Enabled: false

Gemspec/RequireMFA:
Enabled: false
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
source 'https://rubygems.org'

gemspec

group :development do
gem 'rake'
gem 'rubocop'
gem 'test-unit'
end
2 changes: 1 addition & 1 deletion lib/openscap/xccdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module OpenSCAP
module Xccdf
NUMERIC = :float

class Item
class Item # rubocop:disable Lint/EmptyClass
end
end
end
4 changes: 1 addition & 3 deletions openscap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GEMSPEC = Gem::Specification.new do |gem|
gem.name = 'openscap'
gem.version = OpenSCAP::VERSION
gem.platform = Gem::Platform::RUBY
gem.required_ruby_version = '>= 3.2.2'

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

gem.add_development_dependency 'test-unit'
gem.add_development_dependency :rake
gem.add_development_dependency :rubocop
gem.add_runtime_dependency 'ffi', '~> 1.15.5'

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

0 comments on commit 05dd408

Please sign in to comment.