Showing 734 of 734 total issues
File rubocop.rb
has 780 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'English' # fileutils is autoloaded by pathname,# but must be explicitly loaded here for inclusion in `$LOADED_FEATURES`.require 'fileutils'
Class Base
has 65 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Base # rubocop:disable Metrics/ClassLength extend RuboCop::AST::Sexp extend NodePattern::Macros extend ExcludeLimit include RuboCop::AST::Sexp
File options.rb
has 532 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'optparse'require_relative 'arguments_env'require_relative 'arguments_file' module RuboCop
File conditional_assignment.rb
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module RuboCop module Cop module Style # Helper module to provide common methods to classes needed for the # ConditionalAssignment Cop.
Class Config
has 44 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Config include PathUtil include FileFinder extend SimpleForwardable
Class Runner
has 43 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Runner # rubocop:disable Metrics/ClassLength # An exception indicating that the inspection loop got stuck correcting # offenses back and forth. class InfiniteCorrectionLoop < StandardError attr_reader :offenses
Class SpaceAroundKeyword
has 43 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class SpaceAroundKeyword < Base extend AutoCorrector MSG_BEFORE = 'Space before keyword `%<range>s` is missing.' MSG_AFTER = 'Space after keyword `%<range>s` is missing.'
Class Registry
has 40 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Registry include Enumerable def self.all global.without_department(:Test).cops
Class BlockDelimiters
has 39 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class BlockDelimiters < Base include ConfigurableEnforcedStyle include AllowedMethods include AllowedPattern include RangeHelp
Class LineLength
has 38 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class LineLength < Base # rubocop:disable Metrics/ClassLength include CheckLineBreakable include AllowedPattern include RangeHelp include LineLengthHelp
File runner.rb
has 372 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'parallel' module RuboCop # This class handles the processing of files, which includes dealing with # formatters and letting cops inspect the files.
Class MethodCallWithArgsParentheses
has 37 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class MethodCallWithArgsParentheses # Style omit_parentheses # rubocop:disable Metrics/ModuleLength, Metrics/CyclomaticComplexity module OmitParentheses include RangeHelp
Class IndentationWidth
has 35 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class IndentationWidth < Base # rubocop:disable Metrics/ClassLength include EndKeywordAlignment include Alignment include CheckAssignment include AllowedPattern
Class RedundantCopDisableDirective
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class RedundantCopDisableDirective < Base # rubocop:todo Metrics/ClassLength include RangeHelp extend AutoCorrector COP_NAME = 'Lint/RedundantCopDisableDirective'
Method find_offense_message
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
Open
def find_offense_message(begin_node, node) return 'a keyword' if keyword_with_redundant_parentheses?(node) return 'a literal' if node.literal? && disallowed_literal?(begin_node, node) return 'a variable' if node.variable? return 'a constant' if node.const_type?
- Read upRead up
Class RedundantParentheses
has 31 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class RedundantParentheses < Base # rubocop:disable Metrics/ClassLength include Parentheses extend AutoCorrector ALLOWED_NODE_TYPES = %i[or send splat kwsplat].freeze
Class VariableForce
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class VariableForce < Force # rubocop:disable Metrics/ClassLength VARIABLE_ASSIGNMENT_TYPE = :lvasgn REGEXP_NAMED_CAPTURE_TYPE = :match_with_lvasgn PATTERN_MATCH_VARIABLE_TYPE = :match_var VARIABLE_ASSIGNMENT_TYPES = [
Class DisabledConfigFormatter
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class DisabledConfigFormatter < BaseFormatter include PathUtil HEADING = <<~COMMENTS # This configuration was generated by
Class CopsDocumentationGenerator
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class CopsDocumentationGenerator # rubocop:disable Metrics/ClassLength include ::RuboCop::Cop::Documentation CopData = Struct.new( :cop, :description, :example_objects, :safety_objects, :see_objects, :config, keyword_init: true )
File arguments_forwarding.rb
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module RuboCop module Cop module Style # In Ruby 2.7, arguments forwarding has been added. #