From 05dd4087509a6d8033dcac4d96c9c5815b166f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Wed, 24 May 2023 14:06:40 +0200 Subject: [PATCH] rubocop manual fixes --- .rubocop.yml | 10 ++++++++++ Gemfile | 6 ++++++ lib/openscap/xccdf.rb | 2 +- openscap.gemspec | 4 +--- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 584a55e..97954c4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -18,6 +18,10 @@ Layout/LineLength: Exclude: - 'test/**/*' +Lint/FloatComparison: + Exclude: + - 'test/**/*' + Metrics/MethodLength: Max: 13 Exclude: @@ -28,3 +32,9 @@ Style/HashSyntax: Style/SymbolArray: EnforcedStyle: brackets + +Naming/MethodParameterName: + Enabled: false + +Gemspec/RequireMFA: + Enabled: false diff --git a/Gemfile b/Gemfile index 7f4f5e9..e2eb384 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,9 @@ source 'https://rubygems.org' gemspec + +group :development do + gem 'rake' + gem 'rubocop' + gem 'test-unit' +end diff --git a/lib/openscap/xccdf.rb b/lib/openscap/xccdf.rb index 7b907a6..e8c0033 100644 --- a/lib/openscap/xccdf.rb +++ b/lib/openscap/xccdf.rb @@ -6,7 +6,7 @@ module OpenSCAP module Xccdf NUMERIC = :float - class Item + class Item # rubocop:disable Lint/EmptyClass end end end diff --git a/openscap.gemspec b/openscap.gemspec index 5e05478..a782026 100644 --- a/openscap.gemspec +++ b/openscap.gemspec @@ -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 = 'isimluk@fedoraproject.org' @@ -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']