.rubocop_todo.yml in ykutils-0.1.4 vs .rubocop_todo.yml in ykutils-0.1.6

- old
+ new

@@ -1,76 +1,45 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2022-06-20 10:09:15 UTC using RuboCop version 1.30.1. +# on 2022-09-07 09:47:32 UTC using RuboCop version 1.36.0. # 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: 9 -# Configuration parameters: EnforcedStyle. -# SupportedStyles: native, lf, crlf -Layout/EndOfLine: +# Offense count: 1 +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. +Lint/DuplicateBranch: Exclude: - - 'Gemfile' - - 'Rakefile' - - 'bin/console' - - 'lib/ykutils.rb' - - 'lib/ykutils/lsutils.rb' - - 'lib/ykutils/version.rb' -# - 'spec/spec_helper.rb' -# - 'spec/ykutils_spec.rb' -# - 'ykutils.gemspec' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 175 - -# Offense count: 7 -# Configuration parameters: AllowSafeAssignment. -Lint/AssignmentInCondition: - Exclude: - - 'lib/ykutils/fileoputils2.rb' - - 'lib/ykutils/lines.rb' - - 'lib/ykutils/nkfutil.rb' - - 'lib/ykutils/nkfutil19.rb' - 'lib/ykutils/stext.rb' - - 'lib/ykutils/stextx.rb' -# Offense count: 1 -Lint/DuplicateMethods: - Exclude: - - 'lib/ykutils/nkfutil19.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Lint/DuplicateRequire: - Exclude: - - 'lib/ykutils.rb' - # Offense count: 6 # Configuration parameters: AllowComments. Lint/EmptyWhen: Exclude: - 'lib/ykutils/lines.rb' - 'lib/ykutils/stext.rb' -# Offense count: 4 +# Offense count: 1 Lint/MissingSuper: Exclude: - - 'lib/ykutils/retcodex.rb' - - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlxop.rb' # Offense count: 2 Lint/NestedMethodDefinition: Exclude: - 'lib/ykutils/stextx.rb' +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +Lint/ScriptPermission: + Exclude: + - 'bin/console' + - 'bin/erubix' + - 'bin/erubix2' + - 'bin/makegrid' + # Offense count: 3 Lint/ShadowingOuterLocalVariable: Exclude: - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' @@ -79,15 +48,16 @@ # Configuration parameters: AllowComments, AllowNil. Lint/SuppressedException: Exclude: - 'lib/ykutils/pathop.rb' -# Offense count: 21 +# Offense count: 22 Lint/UselessAssignment: Exclude: - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' - 'lib/ykutils/filepermision.rb' + - 'lib/ykutils/nkfutil19.rb' - 'lib/ykutils/pathop.rb' - 'lib/ykutils/specfileop.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/stextx.rb' - 'lib/ykutils/stringutils.rb' @@ -98,48 +68,48 @@ Lint/UselessMethodDefinition: Exclude: - 'lib/ykutils/hasharray.rb' - 'lib/ykutils/stext.rb' -# Offense count: 1 -# Configuration parameters: CheckForMethodsWithNoSideEffects. -Lint/Void: - Exclude: - - 'lib/ykutils/stext.rb' - -# Offense count: 14 -# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. +# Offense count: 15 +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 43 # Offense count: 2 +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# AllowedMethods: refine +Metrics/BlockLength: + Max: 41 + +# Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Max: 185 + Max: 183 # Offense count: 6 -# Configuration parameters: IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/CyclomaticComplexity: Max: 21 -# Offense count: 42 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. +# Offense count: 43 +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/MethodLength: Max: 85 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: - Max: 339 + Max: 337 -# Offense count: 2 +# Offense count: 3 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 6 # Offense count: 5 -# Configuration parameters: IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/PerceivedComplexity: Max: 18 # Offense count: 13 Naming/AccessorMethodName: @@ -162,46 +132,69 @@ # SupportedStyles: snake_case, camelCase Naming/MethodName: Exclude: - 'lib/ykutils/treemanagera.rb' -# Offense count: 8 +# Offense count: 9 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to +# AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to Naming/MethodParameterName: Exclude: - 'lib/ykutils/debugutils.rb' - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' + - 'lib/ykutils/nginxconfigfiles.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/stringutils.rb' +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: PreferredName. +Naming/RescuedExceptionsVariableName: + Exclude: + - 'lib/ykutils/nkfutil19.rb' + # Offense count: 17 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 Naming/VariableNumber: Exclude: - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' - 'lib/ykutils/stringutils.rb' # Offense count: 12 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/ykutils/debugutils.rb' - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' - 'lib/ykutils/lines.rb' - 'lib/ykutils/pathop.rb' - 'lib/ykutils/specfileop.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' +# Offense count: 8 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, 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 +# AllowedMethods: lambda, proc, it +Style/BlockDelimiters: + Exclude: + - 'lib/ykutils/erubyx.rb' + - 'lib/ykutils/gridlist.rb' + - 'lib/ykutils/nginxconfig.rb' + - 'lib/ykutils/nginxconfigfiles.rb' + - 'spec/ykutils_spec.rb' + # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowOnConstant. +# Configuration parameters: AllowOnConstant, AllowOnSelfClass. Style/CaseEquality: Exclude: - 'lib/ykutils/lsutils.rb' # Offense count: 1 @@ -216,24 +209,46 @@ - 'lib/ykutils/debugutils.rb' - 'lib/ykutils/nkfutil.rb' - 'lib/ykutils/nkfutil19.rb' - 'lib/ykutils/osutil.rb' -# Offense count: 34 +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/CollectionCompact: + Exclude: + - 'lib/ykutils/specfileop.rb' + +# Offense count: 7 +# This cop supports safe autocorrection (--autocorrect). +Style/ColonMethodCall: + Exclude: + - 'bin/erubix' + - 'bin/makegrid' + - 'lib/ykutils/gridlist.rb' + - 'lib/ykutils/nginxconfig.rb' + - 'spec/ykutils_spec.rb' + +# Offense count: 38 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/EachWithObject: + Exclude: + - 'spec/ykutils_spec.rb' + # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. +# Configuration parameters: EnforcedStyle, AllowComments. # SupportedStyles: empty, nil, both Style/EmptyElse: Exclude: - 'lib/ykutils/stringutils.rb' -# Offense count: 22 +# Offense count: 26 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false @@ -246,26 +261,59 @@ # Offense count: 6 # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' - 'lib/ykutils/lines.rb' - 'lib/ykutils/nkfutil.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys +# SupportedShorthandSyntax: always, never, either, consistent +Style/HashSyntax: + Exclude: + - 'lib/ykutils/gridlist.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifier: + Exclude: + - 'lib/ykutils/erubyx.rb' + - 'lib/ykutils/gridlist.rb' + # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: InverseMethods, InverseBlocks. Style/InverseMethods: Exclude: - 'lib/ykutils/specfileop.rb' +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: literals, strict +Style/MutableConstant: + Exclude: + - 'lib/ykutils/gridlist.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, MinBodyLength. +# SupportedStyles: skip_modifier_ifs, always +Style/Next: + Exclude: + - 'lib/ykutils/nginxconfig.rb' + - 'lib/ykutils/nginxconfigfiles.rb' + # Offense count: 6 # This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle, IgnoredMethods. +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/ykutils/specfileop.rb' @@ -281,39 +329,94 @@ - 'lib/ykutils/lsutils.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/stextx.rb' - 'lib/ykutils/yamlop.rb' +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: PreferredDelimiters. +Style/PercentLiteralDelimiters: + Exclude: + - 'lib/ykutils/gridlist.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: Methods. +Style/RedundantArgument: + Exclude: + - 'lib/ykutils/pathop.rb' + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowComments. +Style/RedundantInitialize: + Exclude: + - 'lib/ykutils/lsutils.rb' + - 'lib/ykutils/stext.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantParentheses: + Exclude: + - 'lib/ykutils/debugutils.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: implicit, explicit +Style/RescueStandardError: + Exclude: + - 'lib/ykutils/nkfutil19.rb' + # Offense count: 6 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/treemanager.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). +Style/SelectByRegexp: + Exclude: + - 'lib/ykutils/yamlop.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). Style/SlicingWithRange: Exclude: - - 'lib/ykutils/fileoputils2.rb' + - 'lib/ykutils/fileoputils.rb' -# Offense count: 3 +# Offense count: 4 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Mode. Style/StringConcatenation: Exclude: + - 'lib/ykutils.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/stringutils.rb' - 'lib/ykutils/yamlop.rb' +# Offense count: 7 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. +# SupportedStyles: single_quotes, double_quotes +Style/StringLiterals: + Exclude: + - 'bin/erubix2' + - 'lib/ykutils.rb' + - 'lib/ykutils/erubyx.rb' + - 'lib/ykutils/gridlist.rb' + - 'lib/ykutils/nginxconfigfiles.rb' + # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods, AllowComments. -# IgnoredMethods: respond_to, define_method +# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments. +# AllowedMethods: respond_to, define_method Style/SymbolProc: Exclude: - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' @@ -321,12 +424,5 @@ # This cop supports unsafe autocorrection (--autocorrect-all). Style/ZeroLengthPredicate: Exclude: - 'lib/ykutils/specfileop.rb' - 'lib/ykutils/stext.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 175