# This configuration was generated by # `rubocop --auto-gen-config` # on 2022-06-20 10:09:15 UTC using RuboCop version 1.30.1. # 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: 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 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: 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: 21 Lint/UselessAssignment: Exclude: - 'lib/ykutils/fileoputils2.rb' - 'lib/ykutils/filepermision.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: 1 # Configuration parameters: CheckForMethodsWithNoSideEffects. Lint/Void: Exclude: - 'lib/ykutils/stext.rb' # Offense count: 14 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 43 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 185 # Offense count: 6 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 21 # Offense count: 42 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. Metrics/MethodLength: Max: 85 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: Max: 339 # Offense count: 2 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 6 # Offense count: 5 # Configuration parameters: IgnoredMethods. 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: 8 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: 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/stext.rb' - 'lib/ykutils/stringutils.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/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/lines.rb' - 'lib/ykutils/pathop.rb' - 'lib/ykutils/specfileop.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowOnConstant. 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: 34 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: empty, nil, both Style/EmptyElse: Exclude: - 'lib/ykutils/stringutils.rb' # Offense count: 22 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # 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/fileoputils2.rb' - 'lib/ykutils/lines.rb' - 'lib/ykutils/nkfutil.rb' - 'lib/ykutils/stext.rb' - 'lib/ykutils/yamlop.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: InverseMethods, InverseBlocks. Style/InverseMethods: Exclude: - 'lib/ykutils/specfileop.rb' # Offense count: 6 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle, 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: 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/stext.rb' - 'lib/ykutils/treemanager.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). Style/SlicingWithRange: Exclude: - 'lib/ykutils/fileoputils2.rb' # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Mode. Style/StringConcatenation: Exclude: - 'lib/ykutils/stext.rb' - 'lib/ykutils/stringutils.rb' - 'lib/ykutils/yamlop.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: AllowMethodsWithArguments, IgnoredMethods, AllowComments. # IgnoredMethods: 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' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 175