diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 7b5469e97..89b549019 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2024-03-12 17:49:37 UTC using RuboCop version 1.62.1. +# on 2024-05-10 13:25:58 UTC using RuboCop version 1.62.1. # 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 @@ -156,7 +156,7 @@ RSpec/Eq: Exclude: - 'spec/beaker/logger_spec.rb' -# Offense count: 241 +# Offense count: 240 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 44 @@ -214,7 +214,7 @@ RSpec/MultipleDescribes: RSpec/MultipleMemoizedHelpers: Max: 18 -# Offense count: 502 +# Offense count: 499 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples. # SupportedStyles: always, named_only RSpec/NamedSubject: @@ -231,12 +231,6 @@ RSpec/NoExpectationExample: - 'spec/beaker/logger_spec.rb' - 'spec/beaker/options/subcommand_options_parser_spec.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -RSpec/Rails/MinitestAssertions: - Exclude: - - 'spec/beaker/dsl/structure_spec.rb' - # Offense count: 60 # This cop supports unsafe autocorrection (--autocorrect-all). RSpec/ReceiveMessages: @@ -284,7 +278,7 @@ RSpec/SpecFilePathFormat: - 'spec/beaker/host/windows/user_spec.rb' - 'spec/beaker/host_prebuilt_steps_spec.rb' -# Offense count: 178 +# Offense count: 177 RSpec/SubjectStub: Exclude: - 'spec/beaker/dsl/assertions_spec.rb' @@ -314,6 +308,12 @@ RSpec/UnspecifiedException: RSpec/VerifiedDoubles: Enabled: false +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +RSpecRails/MinitestAssertions: + Exclude: + - 'spec/beaker/dsl/structure_spec.rb' + # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Rake/Desc: @@ -336,7 +336,7 @@ Security/Open: Exclude: - 'lib/beaker/dsl/helpers/web_helpers.rb' -# Offense count: 106 +# Offense count: 105 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https diff --git a/lib/beaker/platform.rb b/lib/beaker/platform.rb index ff57bb18e..4d4388f83 100644 --- a/lib/beaker/platform.rb +++ b/lib/beaker/platform.rb @@ -3,9 +3,7 @@ module Beaker # all String methods while adding several platform-specific use cases. class Platform < String # Supported platforms - # rubocop:disable Layout/LineLength PLATFORMS = /^(alpine|amazon|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|opensuse|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|netscaler)\-.+\-.+$/ - # rubocop:enable Layout/LineLength # Platform version numbers vs. codenames conversion hash PLATFORM_VERSION_CODES = { :debian => { "forky" => "14",