diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 93f64e17..e17082c2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,19 +1,11 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-06-21 07:47:32 UTC using RuboCop version 1.50.2. +# on 2023-12-12 12:48:14 UTC using RuboCop version 1.57.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 2 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: AllowSafeAssignment. -Lint/AssignmentInCondition: - Exclude: - - 'Gemfile' - - 'facts/Gemfile' - # Offense count: 1 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. Lint/DuplicateBranch: @@ -27,6 +19,7 @@ Lint/SuppressedException: - 'Rakefile' # Offense count: 3 +# This cop supports unsafe autocorrection (--autocorrect-all). Lint/UselessAssignment: Exclude: - 'spec/facts_spec.rb' @@ -56,7 +49,7 @@ Performance/StringInclude: # Prefixes: when, with, without RSpec/ContextWording: Exclude: - - 'spec/facterdb_spec.rb' + - 'spec/facter_db_spec.rb' # Offense count: 1 # Configuration parameters: IgnoredMetadata. @@ -75,26 +68,13 @@ RSpec/DescribeClass: # SupportedStyles: described_class, explicit RSpec/DescribedClass: Exclude: - - 'spec/facterdb_spec.rb' + - 'spec/facter_db_spec.rb' # Offense count: 3 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 9 -# Offense count: 1 -# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. -# Include: **/*_spec*rb*, **/spec/**/* -RSpec/FilePath: - Exclude: - - 'spec/facterdb_spec.rb' - -# Offense count: 4 -# Configuration parameters: Max. -RSpec/IndexedLet: - Exclude: - - 'spec/facterdb_spec.rb' - # Offense count: 4 RSpec/MultipleExpectations: Max: 7 @@ -115,7 +95,7 @@ RSpec/NestedGroups: # SupportedStyles: inflected, explicit RSpec/PredicateMatcher: Exclude: - - 'spec/facterdb_spec.rb' + - 'spec/facter_db_spec.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). @@ -150,7 +130,7 @@ Style/FrozenStringLiteralComment: - 'lib/facterdb/bin.rb' - 'lib/facterdb/version.rb' - 'rakelib/rhel_alts.rake' - - 'spec/facterdb_spec.rb' + - 'spec/facter_db_spec.rb' - 'spec/facts_spec.rb' - 'spec/spec_helper.rb' diff --git a/facterdb.gemspec b/facterdb.gemspec index a455e3c7..0baf75f0 100644 --- a/facterdb.gemspec +++ b/facterdb.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake' s.add_development_dependency 'rspec' - s.add_development_dependency 'voxpupuli-rubocop', '~> 2.0.0' + s.add_development_dependency 'voxpupuli-rubocop', '~> 2.1.0' s.add_runtime_dependency 'facter', '< 5.0.0' s.add_runtime_dependency 'jgrep' end diff --git a/spec/facterdb_spec.rb b/spec/facter_db_spec.rb similarity index 100% rename from spec/facterdb_spec.rb rename to spec/facter_db_spec.rb