.rubocop_todo.yml in arxutils_sqlite3-0.1.49 vs .rubocop_todo.yml in arxutils_sqlite3-0.1.50

- old
+ new

@@ -1,255 +1,324 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2022-09-08 00:51:12 UTC using RuboCop version 1.36.0. +# on 2022-09-15 09:40:53 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: 2 # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. +# Include: **/*.gemspec +Gemspec/OrderedDependencies: + Exclude: + #- 'arxutils_sqlite3.gemspec' + +# Offense count: 1 +# Configuration parameters: Include. +# Include: **/*.gemspec +Gemspec/RequiredRubyVersion: + Exclude: + #- 'arxutils_sqlite3.gemspec' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_element, with_fixed_indentation Layout/ArrayAlignment: Exclude: - - 'lib/arxutils_sqlite3/migrate.rb' + #- 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/BlockEndNewline: Exclude: - - 'lib/arxutils_sqlite3/migrate.rb' + #- 'lib/arxutils_sqlite3/migrate.rb' -# Offense count: 7 +# Offense count: 1 # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth. +# SupportedStyles: case, end +Layout/CaseIndentation: + Exclude: + #- 'lib/arxutils_sqlite3/migrate.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Layout/ClosingParenthesisIndentation: + Exclude: + #- 'lib/arxutils_sqlite3/migrate.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment. Layout/CommentIndentation: Exclude: - - 'Gemfile' - - 'bin/arxutils-cli' - - 'lib/arxutils_sqlite3/migrate.rb' + #- 'Gemfile' + #- 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowBorderComment, AllowMarginComment. +Layout/EmptyComment: + Exclude: + # - 'lib/arxutils_sqlite3/dbutil.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterMagicComment: Exclude: - - 'lib/arxutils_sqlite3.rb' + # - 'lib/arxutils_sqlite3.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. +Layout/EmptyLineBetweenDefs: + Exclude: + # - 'lib/arxutils_sqlite3/config.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). Layout/EmptyLines: Exclude: - - 'bin/arxutils-cli' + # - 'lib/arxutils_sqlite3_rake_task.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, no_empty_lines -Layout/EmptyLinesAroundBlockBody: +# Configuration parameters: AllowAliasSyntax, AllowedMethods. +# AllowedMethods: alias_method, public, protected, private +Layout/EmptyLinesAroundAttributeAccessor: Exclude: - - 'Gemfile' + # - 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only -Layout/EmptyLinesAroundClassBody: +# SupportedStyles: empty_lines, no_empty_lines +Layout/EmptyLinesAroundBlockBody: Exclude: - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'Gemfile' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundModuleBody: Exclude: - - 'lib/dbrelation.rb' + # - 'lib/dbacrecord.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleAlignWith, Severity. +# SupportedStylesAlignWith: keyword, variable, start_of_line +Layout/EndAlignment: + Exclude: + # - 'lib/arxutils_sqlite3/migrate.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. +Layout/ExtraSpacing: + Exclude: + # - 'lib/arxutils_sqlite3/config.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). Layout/HeredocIndentation: Exclude: - - 'db/migrate/050_create_currentennblist.rb' + # - 'db/migrate/050_create_currentennblist.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth, EnforcedStyle. # SupportedStyles: spaces, tabs Layout/IndentationStyle: Exclude: - - 'Gemfile' + # - 'Gemfile' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns. Layout/IndentationWidth: Exclude: - - 'Gemfile' - - 'lib/dbrelation.rb' + # - 'Gemfile' + # - 'lib/dbacrecord.rb' -# Offense count: 22 +# Offense count: 29 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. Layout/LeadingCommentSpace: Exclude: - - 'Gemfile' - - 'arxutils_sqlite3.gemspec' - - 'bin/arxutils-cli' - - 'bin/makemigrate' - - 'lib/arxutils_sqlite3/arx.rb' - - 'lib/arxutils_sqlite3/dbutil.rb' - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'Gemfile' + # - 'Rakefile' + # - 'arxutils_sqlite3.gemspec' + # - 'exe/arxutils_sqlite3' + # - 'lib/arxutils_sqlite3/arx.rb' + # - 'lib/arxutils_sqlite3/cli.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' + # - 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 142 +Layout/LeadingEmptyLines: + Exclude: + # - 'lib/arxutils_sqlite3_rake_task.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineArrayBraceLayout: Exclude: - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/MultilineBlockLayout: Exclude: - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'lib/arxutils_sqlite3/migrate.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineMethodCallBraceLayout: Exclude: - - 'bin/arxutils-cli' - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'lib/arxutils_sqlite3/migrate.rb' + # - 'lib/arxutils_sqlite3/util.rb' -# Offense count: 2 +# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceBeforeBlockBraces: Exclude: - - 'bin/arxutils-cli' + # - 'lib/arxutils_sqlite3/config.rb' -# Offense count: 7 +# Offense count: 9 # This cop supports safe autocorrection (--autocorrect). Layout/SpaceBeforeComma: Exclude: - - 'Gemfile' - - 'bin/arxutils-cli' - - 'lib/arxutils_sqlite3/arx.rb' - - 'lib/dbrelation.rb' + # - 'Gemfile' + # - 'arxutils_sqlite3.gemspec' + # - 'lib/arxutils_sqlite3/arx.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'lib/dbacrecord.rb' + # - 'spec/arxutils__sqlite3_spec.rb' -# Offense count: 2 +# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - - 'bin/arxutils-cli' + # - 'lib/arxutils_sqlite3/config.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - - 'bin/arxutils-cli' + # - 'lib/arxutils_sqlite3/config.rb' -# Offense count: 7 +# Offense count: 12 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: space, compact, no_space Layout/SpaceInsideParens: Exclude: - - 'bin/arxutils-cli' - - 'config/dbsetup.rb' + # - 'config/dbsetup.rb' + # - 'lib/arxutils_sqlite3/cli.rb' + # - 'lib/arxutils_sqlite3/config.rb' -# Offense count: 1 +# Offense count: 5 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingEmptyLines: Exclude: - - 'Gemfile' + # - 'Gemfile' + # - 'Rakefile' + # - 'lib/arxutils_sqlite3.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'lib/arxutils_sqlite3_rake_task.rb' -# Offense count: 1 +# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - - 'db/migrate/050_create_currentennblist.rb' + # - 'db/migrate/050_create_currentennblist.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'spec/arxutils__sqlite3_spec.rb' # Offense count: 1 # Configuration parameters: AllowComments, AllowEmptyLambdas. Lint/EmptyBlock: Exclude: - - 'Gemfile' + # - 'Gemfile' # Offense count: 1 Lint/NestedPercentLiteral: Exclude: - - 'lib/template/relation/db_scheme/opts.rb' + # - 'lib/template/acrecord/db_scheme/opts.rb' # Offense count: 1 -Lint/RescueException: - Exclude: - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' - -# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). Lint/ScriptPermission: Exclude: - - 'bin/arxutils-cli' - - 'bin/makemigrate' - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' + # - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' # Offense count: 1 -# Configuration parameters: AllowComments, AllowNil. -Lint/SuppressedException: +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: strict, consistent +Lint/SymbolConversion: Exclude: - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' + # - 'lib/arxutils_sqlite3/config.rb' -# Offense count: 1 +# Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' + # - 'lib/arxutils_sqlite3/cli.rb' -# Offense count: 5 +# Offense count: 13 Lint/UselessAssignment: Exclude: - - 'bin/arxutils-cli' - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' - - 'lib/arxutils_sqlite3/hier.rb' + # - 'exe/arxutils_sqlite3' + # - 'lib/arxutils_sqlite3/cli.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'lib/arxutils_sqlite3/hier.rb' + # - 'spec/arxutils__sqlite3_spec.rb' # Offense count: 4 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 27 -# Offense count: 2 +# Offense count: 3 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Max: 144 + Max: 173 +# Offense count: 1 +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +Metrics/CyclomaticComplexity: + Max: 8 + # Offense count: 12 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/MethodLength: - Max: 60 + Max: 49 # Offense count: 2 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 7 @@ -257,58 +326,73 @@ # Offense count: 1 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/PerceivedComplexity: Max: 10 -# Offense count: 9 +# Offense count: 10 +Naming/AccessorMethodName: + Exclude: + - 'lib/arxutils_sqlite3/config.rb' + +# Offense count: 11 # Configuration parameters: AllowedNames. # AllowedNames: module_parent Naming/ClassAndModuleCamelCase: Exclude: - 'lib/arxutils_sqlite3.rb' - 'lib/arxutils_sqlite3/arx.rb' + - 'lib/arxutils_sqlite3/cli.rb' + - 'lib/arxutils_sqlite3/config.rb' - 'lib/arxutils_sqlite3/dbutil.rb' - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' - - 'lib/arxutils_sqlite3/dbutil/dbmgr.rb' - 'lib/arxutils_sqlite3/hier.rb' - 'lib/arxutils_sqlite3/migrate.rb' - 'lib/arxutils_sqlite3/transactstate.rb' + - 'lib/arxutils_sqlite3/util.rb' - 'lib/arxutils_sqlite3/version.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredName. Naming/RescuedExceptionsVariableName: Exclude: - - 'bin/arxutils-cli' + - 'exe/arxutils_sqlite3' + - 'lib/arxutils_sqlite3/config.rb' - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' -# Offense count: 5 -# This cop supports safe autocorrection (--autocorrect). -Rake/Desc: +# Offense count: 1 +# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. +# SupportedStyles: snake_case, normalcase, non_integer +# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 +Naming/VariableNumber: Exclude: - - 'Rakefile' + # - 'lib/arxutils_sqlite3/config.rb' +# Offense count: 2 +# Configuration parameters: CountAsOne. +RSpec/ExampleLength: + Max: 7 + # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/BlockComments: Exclude: - - 'config/dbsetup.rb' + # - 'config/dbsetup.rb' -# Offense count: 3 +# Offense count: 4 # 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: - - 'bin/arxutils-cli' - - 'lib/arxutils_sqlite3/migrate.rb' + # - 'lib/arxutils_sqlite3/config.rb' + # - 'lib/arxutils_sqlite3/migrate.rb' -# Offense count: 6 +# Offense count: 7 # Configuration parameters: AllowedConstants. Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' @@ -316,72 +400,88 @@ - 'db/migrate/010_create_countdatetime.rb' - 'db/migrate/020_create_evnb.rb' - 'db/migrate/030_create_ennblist.rb' - 'db/migrate/040_create_invalidennblist.rb' - 'db/migrate/050_create_currentennblist.rb' + - 'lib/arxutils_sqlite3/util.rb' -# Offense count: 2 +# Offense count: 3 # This cop supports safe autocorrection (--autocorrect). Style/FileWrite: Exclude: - - 'bin/arxutils-cli' + # - 'lib/arxutils_sqlite3/config.rb' # Offense count: 5 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: EnforcedStyle: unannotated -# Offense count: 21 +# Offense count: 22 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false +# Offense count: 5 +# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. +Style/GuardClause: + Exclude: + # - 'lib/arxutils_sqlite3/config.rb' + # Offense count: 10 # 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: - - 'db/migrate/010_create_countdatetime.rb' - - 'db/migrate/020_create_evnb.rb' - - 'db/migrate/030_create_ennblist.rb' - - 'db/migrate/040_create_invalidennblist.rb' + # - 'db/migrate/010_create_countdatetime.rb' + # - 'db/migrate/020_create_evnb.rb' + # - 'db/migrate/030_create_ennblist.rb' + # - 'db/migrate/040_create_invalidennblist.rb' +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifier: + Exclude: + # - 'lib/arxutils_sqlite3/config.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: both, prefix, postfix +Style/NegatedIf: + Exclude: + # - 'lib/arxutils_sqlite3/config.rb' + # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/RedundantCondition: Exclude: - - 'bin/arxutils-cli' + # - 'exe/arxutils_sqlite3' # Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Style/RedundantFreeze: +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/RedundantInterpolation: Exclude: - - 'lib/arxutils_sqlite3.rb' + # - 'exe/arxutils_sqlite3' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Exclude: - - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' + # - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb' -# Offense count: 3 +# Offense count: 5 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: - - 'lib/dbrelation.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 142 + # - 'Rakefile' + # - 'lib/dbacrecord.rb' + # - 'spec/arxutils__sqlite3_spec.rb'