config/upstream.yml in cookstyle-7.25.9 vs config/upstream.yml in cookstyle-7.25.10

- old
+ new

@@ -148,10 +148,11 @@ rubocop-rails: [rails] rubocop-rspec: [rspec, rspec-rails] rubocop-minitest: [minitest] rubocop-sequel: [sequel] rubocop-rake: [rake] + rubocop-graphql: [graphql] #################### Bundler ############################### Bundler/DuplicatedGem: Description: 'Checks for duplicate gem entries in Gemfile.' @@ -256,10 +257,19 @@ # This can be overridden by setting this parameter to true. ConsiderPunctuation: false Include: - '**/*.gemspec' +Gemspec/RequireMFA: + Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.' + Enabled: pending + VersionAdded: '1.23' + Reference: + - https://guides.rubygems.org/mfa-requirement-opt-in/ + Include: + - '**/*.gemspec' + Gemspec/RequiredRubyVersion: Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.' Enabled: true VersionAdded: '0.52' VersionChanged: '1.22' @@ -509,17 +519,17 @@ Layout/EmptyLineBetweenDefs: Description: 'Use empty lines between class/module/method defs.' StyleGuide: '#empty-lines-between-methods' Enabled: true VersionAdded: '0.49' - VersionChanged: '1.7' + VersionChanged: '1.23' EmptyLineBetweenMethodDefs: true EmptyLineBetweenClassDefs: true EmptyLineBetweenModuleDefs: true - # If `true`, this parameter means that single line method definitions don't - # need an empty line between them. - AllowAdjacentOneLineDefs: false + # `AllowAdjacentOneLineDefs` means that single line method definitions don't + # need an empty line between them. `true` by default. + AllowAdjacentOneLineDefs: true # Can be array to specify minimum and maximum number of empty lines, e.g. [1, 2] NumberOfEmptyLines: 1 Layout/EmptyLines: Description: "Don't use several empty lines in a row." @@ -2306,10 +2316,15 @@ Enabled: true VersionAdded: '0.90' Safe: false AllowComments: true +Lint/UselessRuby2Keywords: + Description: 'Finds unnecessary uses of `ruby2_keywords`.' + Enabled: pending + VersionAdded: '1.23' + Lint/UselessSetterCall: Description: 'Checks for useless setter call to a local variable.' Enabled: true SafeAutoCorrect: false VersionAdded: '0.13' @@ -2499,10 +2514,11 @@ Naming/FileName: Description: 'Use snake_case for source file names.' StyleGuide: '#snake-case-files' Enabled: true VersionAdded: '0.50' + VersionChanged: '1.23' # Camel case file names listed in `AllCops:Include` and all file names listed # in `AllCops:Exclude` are excluded by default. Add extra excludes here. Exclude: [] # When `true`, requires that each source file should define a class or module # with a name which matches the file name (converted to ... case). @@ -2511,10 +2527,17 @@ ExpectMatchingDefinition: false # When `false`, changes the behavior of ExpectMatchingDefinition to match only # whether each source file's class or module name matches the file name -- # not whether the nested module hierarchy matches the subdirectory path. CheckDefinitionPathHierarchy: true + # paths that are considered root directories, for example "lib" in most ruby projects + # or "app/models" in rails projects + CheckDefinitionPathHierarchyRoots: + - lib + - spec + - test + - src # If non-`nil`, expect all source file names to match the following regex. # Only the file name itself is matched, not the entire file path. # Use anchors as necessary if you want to match the entire name rather than # just a part of it. Regex: ~ @@ -4213,9 +4236,19 @@ StyleGuide: '#ternary-operator' Enabled: true AlwaysCorrectToMultiline: false VersionAdded: '0.9' VersionChanged: '0.90' + +Style/OpenStructUse: + Description: >- + Avoid using OpenStruct. As of Ruby 3.0, use is officially discouraged due to performance, + version compatibility, and potential security issues. + Reference: + - https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats + + Enabled: pending + VersionAdded: '1.23' Style/OptionHash: Description: "Don't use option hashes when you can use keyword arguments." Enabled: false VersionAdded: '0.33'