.rubocop_todo.yml in ykutils-0.1.7 vs .rubocop_todo.yml in ykutils-0.1.8

- old
+ new

@@ -1,253 +1,59 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2022-09-07 09:47:32 UTC using RuboCop version 1.36.0. +# on 2024-01-08 03:25:27 UTC using RuboCop version 1.59.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: 1 -# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. -Lint/DuplicateBranch: - Exclude: - - 'lib/ykutils/stext.rb' - -# Offense count: 6 -# Configuration parameters: AllowComments. -Lint/EmptyWhen: - Exclude: - - 'lib/ykutils/lines.rb' - - 'lib/ykutils/stext.rb' - -# Offense count: 1 -Lint/MissingSuper: - Exclude: - - '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' - -# Offense count: 1 -# Configuration parameters: AllowComments, AllowNil. -Lint/SuppressedException: - Exclude: - - 'lib/ykutils/pathop.rb' - -# Offense count: 22 -Lint/UselessAssignment: - Exclude: - - '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' - - 'lib/ykutils/yamlop.rb' - -# Offense count: 2 -# This cop supports unsafe autocorrection (--autocorrect-all). -Lint/UselessMethodDefinition: - Exclude: - - 'lib/ykutils/hasharray.rb' - - 'lib/ykutils/stext.rb' - -# Offense count: 15 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. +# Offense count: 13 +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 43 # Offense count: 2 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: - Max: 41 + Max: 40 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Max: 183 + Max: 181 -# Offense count: 6 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 5 +# Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 21 -# Offense count: 43 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 41 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: - Max: 85 + Max: 87 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: - Max: 337 + Max: 336 # Offense count: 3 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 6 -# Offense count: 5 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 4 +# Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 18 -# Offense count: 13 -Naming/AccessorMethodName: - Exclude: - - 'lib/ykutils/debugutils.rb' - - 'lib/ykutils/lines.rb' - - 'lib/ykutils/nkfutil.rb' - - 'lib/ykutils/retcodex.rb' - - 'lib/ykutils/stext.rb' - -# Offense count: 1 -# Configuration parameters: EnforcedStyleForLeadingUnderscores. -# SupportedStylesForLeadingUnderscores: disallowed, required, optional -Naming/MemoizedInstanceVariableName: - Exclude: - - 'lib/ykutils/hasharray.rb' - -# Offense count: 2 -# Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns. -# SupportedStyles: snake_case, camelCase -Naming/MethodName: - Exclude: - - 'lib/ykutils/treemanagera.rb' - -# Offense count: 9 -# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -# AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to -Naming/MethodParameterName: - Exclude: - - 'lib/ykutils/debugutils.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/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/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, AllowOnSelfClass. -Style/CaseEquality: - Exclude: - - 'lib/ykutils/lsutils.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/CaseLikeIf: - Exclude: - - 'lib/ykutils/lines.rb' - -# Offense count: 21 -Style/ClassVars: - Exclude: - - 'lib/ykutils/debugutils.rb' - - 'lib/ykutils/nkfutil.rb' - - 'lib/ykutils/nkfutil19.rb' - - 'lib/ykutils/osutil.rb' - -# 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, AllowComments. -# SupportedStyles: empty, nil, both -Style/EmptyElse: - Exclude: - - 'lib/ykutils/stringutils.rb' - # Offense count: 26 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: @@ -255,174 +61,6 @@ # Offense count: 2 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - - 'lib/ykutils/nkfutil.rb' - -# Offense count: 6 -# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. -Style/GuardClause: - Exclude: - - '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, AllowedMethods, AllowedPatterns, IgnoredMethods. -# SupportedStyles: predicate, comparison -Style/NumericPredicate: - Exclude: - - 'spec/**/*' - - 'lib/ykutils/specfileop.rb' - - 'lib/ykutils/stext.rb' - - 'lib/ykutils/yamlop.rb' - -# Offense count: 5 -# Configuration parameters: AllowedMethods. -# AllowedMethods: respond_to_missing? -Style/OptionalBooleanParameter: - Exclude: - - 'lib/ykutils/debugutils.rb' - - '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/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/fileoputils.rb' - -# 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, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments. -# AllowedMethods: respond_to, define_method -Style/SymbolProc: - Exclude: - - 'lib/ykutils/stext.rb' - - 'lib/ykutils/yamlop.rb' - -# Offense count: 4 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/ZeroLengthPredicate: - Exclude: - - 'lib/ykutils/specfileop.rb' - - 'lib/ykutils/stext.rb' +# - 'lib/ykutils/nkfutil.rb'