# This configuration was generated by # `rubocop --auto-gen-config` # on 2022-10-06 15:40:29 UTC using RuboCop version 1.18.4. # 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 # Configuration parameters: EnforcedStyle, Include, AllowedGems. # SupportedStyles: required, forbidden # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/GemVersion: Exclude: - 'Gemfile' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'Gemfile' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'command.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'command.gemspec' # Offense count: 2 # Cop supports --auto-correct. Layout/ElseAlignment: Exclude: - 'lib/command/errors.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: Exclude: - 'command.gemspec' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. Layout/EmptyLineBetweenDefs: Exclude: - 'lib/command.rb' - 'lib/command/result.rb' - 'lib/command/ruby-2-specific.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - 'lib/command/ruby-2-specific.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowAliasSyntax, AllowedMethods. # AllowedMethods: alias_method, public, protected, private Layout/EmptyLinesAroundAttributeAccessor: Exclude: - 'lib/command.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith, Severity. # SupportedStylesAlignWith: keyword, variable, start_of_line Layout/EndAlignment: Exclude: - 'lib/command/errors.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'lib/command/errors.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedTypes: block, case, class, if, kwbegin, module # SupportedStyles: same_line, new_line Layout/MultilineAssignmentLayout: Exclude: - 'lib/command/errors.rb' - 'lib/command/result.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'lib/command/errors.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/SingleLineBlockChain: Exclude: - 'spec/command_spec.rb' # Offense count: 11 # Cop supports --auto-correct. Layout/SpaceAfterComma: Exclude: - 'spec/command_spec.rb' - 'spec/factories/addition_command.rb' - 'spec/factories/multiplication_command.rb' - 'spec/factories/subcommand_command.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/SpaceBeforeComma: Exclude: - 'lib/command/spec_helpers/command_matchers.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - 'spec/command/errors_spec.rb' # Offense count: 1 # Cop supports --auto-correct. Lint/NonDeterministicRequireOrder: Exclude: - 'spec/spec_helper.rb' # Offense count: 1 Lint/UnreachableCode: Exclude: - 'spec/command_spec.rb' # Offense count: 2 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 57 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. # IgnoredMethods: refine Metrics/BlockLength: Max: 28 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. Metrics/MethodLength: Max: 33 # Offense count: 1 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 10 # Offense count: 3 # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms. # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS Naming/FileName: Exclude: - 'lib/command/ruby-2-7-specific.rb' - 'lib/command/ruby-2-specific.rb' - 'lib/command/ruby-3-specific.rb' # Offense count: 2 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'lib/command.rb' - 'lib/command/result.rb' # Offense count: 7 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to Naming/MethodParameterName: Exclude: - 'spec/factories/addition_command.rb' - 'spec/factories/multiplication_command.rb' - 'spec/factories/subcommand_command.rb' # Offense count: 5 # Configuration parameters: Prefixes. # Prefixes: when, with, without RSpec/ContextWording: Exclude: - 'spec/command/result_spec.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: SkipBlocks, EnforcedStyle. # SupportedStyles: described_class, explicit RSpec/DescribedClass: Exclude: - 'spec/command/errors_spec.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: CustomTransform, IgnoredWords. RSpec/ExampleWording: Exclude: - 'spec/command_spec.rb' # Offense count: 5 # Configuration parameters: EnforcedStyle. # SupportedStyles: allow, expect RSpec/MessageExpectation: Exclude: - 'spec/command/errors_spec.rb' - 'spec/command/result_spec.rb' - 'spec/command_spec.rb' # Offense count: 7 # Configuration parameters: EnforcedStyle. # SupportedStyles: have_received, receive RSpec/MessageSpies: Exclude: - 'spec/command/errors_spec.rb' - 'spec/command/result_spec.rb' - 'spec/command_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers. # SupportedStyles: inflected, explicit RSpec/PredicateMatcher: Exclude: - 'spec/command_spec.rb' # Offense count: 2 RSpec/RepeatedExample: Exclude: - 'spec/command/errors_spec.rb' # Offense count: 2 RSpec/StubbedMock: Exclude: - 'spec/command/errors_spec.rb' # Offense count: 1 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: Exclude: - 'spec/command/errors_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/command/errors.rb' # Offense count: 2 # Cop supports --auto-correct. Style/BlockComments: Exclude: - 'lib/command/spec_helpers/command_matchers.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'lib/command/spec_helpers/mock_command_helper.rb' - 'spec/command_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'spec/factories/callback_command.rb' - 'spec/factories/sub_command.rb' # Offense count: 1 # Cop supports --auto-correct. Style/Encoding: Exclude: - 'command.gemspec' # Offense count: 2 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'command.gemspec' - 'spec/spec_helper.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - 'lib/command/errors.rb' # Offense count: 2 # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: EnforcedStyle: unannotated # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 1 # Cop supports --auto-correct. Style/HashTransformValues: Exclude: - 'lib/command/spec_helpers/mock_command_helper.rb' # Offense count: 47 # Cop supports --auto-correct. # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle. # SupportedStyles: require_parentheses, omit_parentheses Style/MethodCallWithArgsParentheses: Exclude: - 'lib/command.rb' - 'lib/command/chainable.rb' - 'lib/command/ruby-2-7-specific.rb' - 'lib/command/ruby-2-specific.rb' - 'lib/command/ruby-3-specific.rb' - 'lib/command/spec_helpers/command_matchers.rb' - 'lib/command/spec_helpers/mock_command_helper.rb' - 'spec/command/errors_spec.rb' - 'spec/command/result_spec.rb' - 'spec/command_spec.rb' - 'spec/factories/callback_command.rb' - 'spec/factories/sub_command.rb' - 'spec/factories/subcommand_command.rb' - 'spec/spec_helper.rb' # Offense count: 2 Style/MethodCalledOnDoEndBlock: Exclude: - 'lib/command/spec_helpers/mock_command_helper.rb' - 'spec/command_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Exclude: - 'lib/command/version.rb' # Offense count: 3 # Cop supports --auto-correct. Style/RedundantFileExtensionInRequire: Exclude: - 'lib/command.rb' # Offense count: 1 # Cop supports --auto-correct. Style/RedundantSelf: Exclude: - 'lib/command/errors.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'command.gemspec' # Offense count: 3 Style/Send: Exclude: - 'lib/command/ruby-2-7-specific.rb' - 'lib/command/ruby-2-specific.rb' - 'lib/command/ruby-3-specific.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: only_raise, only_fail, semantic Style/SignalException: Exclude: - 'lib/command.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowIfMethodIsEmpty. Style/SingleLineMethods: Exclude: - 'lib/command/result.rb' - 'spec/command/result_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Mode. Style/StringConcatenation: Exclude: - 'lib/command/i18n.rb' # Offense count: 96 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowMethodsWithArguments, IgnoredMethods. # IgnoredMethods: respond_to, define_method Style/SymbolProc: Exclude: - 'lib/command.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 162