Bundle update rubocop
This commit is contained in:
parent
bca29bea70
commit
ae99619bf5
2 changed files with 146 additions and 88 deletions
|
@ -1,6 +1,6 @@
|
|||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2021-03-01 12:00:00 UTC using RuboCop version 1.11.0.
|
||||
# on 2022-02-05 12:00:00 UTC using RuboCop version 1.25.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
|
||||
|
@ -14,6 +14,22 @@ Bundler/OrderedGems:
|
|||
Exclude:
|
||||
- 'Gemfile'
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: **/*.gemspec
|
||||
Gemspec/RequireMFA:
|
||||
Exclude:
|
||||
- 'plugins/current_orders/foodsoft_current_orders.gemspec'
|
||||
- 'plugins/discourse/foodsoft_discourse.gemspec'
|
||||
- 'plugins/documents/foodsoft_documents.gemspec'
|
||||
- 'plugins/links/foodsoft_links.gemspec'
|
||||
- 'plugins/messages/foodsoft_messages.gemspec'
|
||||
- 'plugins/polls/foodsoft_polls.gemspec'
|
||||
- 'plugins/printer/foodsoft_printer.gemspec'
|
||||
- 'plugins/uservoice/foodsoft_uservoice.gemspec'
|
||||
- 'plugins/wiki/foodsoft_wiki.gemspec'
|
||||
|
||||
# Offense count: 9
|
||||
# Configuration parameters: Include.
|
||||
# Include: **/*.gemspec
|
||||
|
@ -30,6 +46,7 @@ Gemspec/RequiredRubyVersion:
|
|||
- 'plugins/wiki/foodsoft_wiki.gemspec'
|
||||
|
||||
# Offense count: 8
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
Exclude:
|
||||
- 'lib/foodsoft/expansion_variables.rb'
|
||||
|
@ -44,6 +61,15 @@ Lint/AmbiguousOperator:
|
|||
- 'app/mailers/mailer.rb'
|
||||
- 'spec/models/order_article_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Lint/AmbiguousOperatorPrecedence:
|
||||
Exclude:
|
||||
- 'app/models/concerns/price_calculation.rb'
|
||||
- 'db/seeds/seed_helper.rb'
|
||||
- 'plugins/messages/app/mail_receivers/messages_mail_receiver.rb'
|
||||
- 'plugins/wiki/app/helpers/pages_helper.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Lint/AmbiguousRegexpLiteral:
|
||||
|
@ -109,13 +135,13 @@ Lint/IneffectiveAccessModifier:
|
|||
- 'lib/token_verifier.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Lint/InterpolationCheck:
|
||||
Exclude:
|
||||
- 'db/migrate/007_create_article_prices.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Lint/Loop:
|
||||
Exclude:
|
||||
- 'app/models/concerns/mark_as_deleted_with_name.rb'
|
||||
|
@ -127,7 +153,7 @@ Lint/MixedRegexpCaptureTypes:
|
|||
- 'lib/foodsoft_mail_receiver.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Lint/NonDeterministicRequireOrder:
|
||||
Exclude:
|
||||
- 'spec/spec_helper.rb'
|
||||
|
@ -186,7 +212,7 @@ Lint/ShadowingOuterLocalVariable:
|
|||
- 'spec/integration/config_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: AllowComments.
|
||||
# Configuration parameters: AllowComments, AllowNil.
|
||||
Lint/SuppressedException:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
@ -265,12 +291,12 @@ Lint/Void:
|
|||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 158
|
||||
# Offense count: 160
|
||||
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
||||
Metrics/AbcSize:
|
||||
Max: 143
|
||||
|
||||
# Offense count: 72
|
||||
# Offense count: 73
|
||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||
# IgnoredMethods: refine
|
||||
Metrics/BlockLength:
|
||||
|
@ -291,7 +317,7 @@ Metrics/ClassLength:
|
|||
Metrics/CyclomaticComplexity:
|
||||
Max: 22
|
||||
|
||||
# Offense count: 155
|
||||
# Offense count: 158
|
||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||
Metrics/MethodLength:
|
||||
Max: 112
|
||||
|
@ -496,9 +522,9 @@ RSpec/EmptyLineAfterHook:
|
|||
- 'spec/support/api_oauth.rb'
|
||||
|
||||
# Offense count: 59
|
||||
# Configuration parameters: Max.
|
||||
# Configuration parameters: CountAsOne.
|
||||
RSpec/ExampleLength:
|
||||
Enabled: false
|
||||
Max: 81
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
|
@ -517,6 +543,13 @@ RSpec/FactoryBot/FactoryClassName:
|
|||
- 'spec/factories/doorkeeper.rb'
|
||||
- 'spec/factories/supplier.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
RSpec/FactoryBot/SyntaxMethods:
|
||||
Exclude:
|
||||
- 'spec/integration/articles_spec.rb'
|
||||
- 'spec/models/article_spec.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
||||
# Include: **/*_spec*rb*, **/spec/**/*
|
||||
|
@ -676,6 +709,14 @@ Rails/ActiveRecordCallbacksOrder:
|
|||
- 'app/models/order.rb'
|
||||
- 'app/models/stock_change.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: db/migrate/*.rb
|
||||
Rails/AddColumnIndex:
|
||||
Exclude:
|
||||
- 'db/migrate/20171002000000_create_financial_links.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Rails/ApplicationMailer:
|
||||
|
@ -709,17 +750,10 @@ Rails/Blank:
|
|||
Exclude:
|
||||
- 'app/controllers/api/v1/base_controller.rb'
|
||||
|
||||
# Offense count: 34
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Rails/ContentTag:
|
||||
Exclude:
|
||||
- 'app/helpers/admin/configs_helper.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'app/helpers/tasks_helper.rb'
|
||||
- 'app/inputs/delta_input.rb'
|
||||
- 'plugins/current_orders/app/helpers/current_orders_helper.rb'
|
||||
- 'plugins/messages/app/helpers/messages_helper.rb'
|
||||
- 'plugins/wiki/app/helpers/pages_helper.rb'
|
||||
|
||||
# Offense count: 33
|
||||
|
@ -728,20 +762,19 @@ Rails/ContentTag:
|
|||
Rails/CreateTableWithTimestamps:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 6
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# Offense count: 5
|
||||
# Configuration parameters: EnforcedStyle, AllowToTime.
|
||||
# SupportedStyles: strict, flexible
|
||||
Rails/Date:
|
||||
Exclude:
|
||||
- 'app/controllers/deliveries_controller.rb'
|
||||
- 'app/documents/order_fax.rb'
|
||||
- 'app/models/periodic_task_group.rb'
|
||||
- 'lib/foodsoft_date_util.rb'
|
||||
- 'spec/integration/order_spec.rb'
|
||||
- 'spec/models/order_spec.rb'
|
||||
|
||||
# Offense count: 67
|
||||
# Cop supports --auto-correct.
|
||||
# Offense count: 66
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
||||
# Whitelist: find_by_sql
|
||||
# AllowedMethods: find_by_sql
|
||||
|
@ -749,6 +782,12 @@ Rails/Date:
|
|||
Rails/DynamicFindBy:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Rails/EagerEvaluationLogMessage:
|
||||
Exclude:
|
||||
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
|
@ -770,16 +809,6 @@ Rails/FilePath:
|
|||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
- 'spec/api/v1/swagger_spec.rb'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/FindBy:
|
||||
Exclude:
|
||||
- 'app/models/order.rb'
|
||||
- 'app/models/supplier.rb'
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include, IgnoredMethods.
|
||||
|
@ -793,7 +822,7 @@ Rails/FindEach:
|
|||
- 'app/models/periodic_task_group.rb'
|
||||
- 'app/models/task.rb'
|
||||
|
||||
# Offense count: 20
|
||||
# Offense count: 26
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/HasManyOrHasOneDependent:
|
||||
|
@ -843,7 +872,7 @@ Rails/IndexBy:
|
|||
- 'spec/api/v1/user/ordergroup_spec.rb'
|
||||
|
||||
# Offense count: 23
|
||||
# Configuration parameters: Include.
|
||||
# Configuration parameters: IgnoreScopes, Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/InverseOf:
|
||||
Exclude:
|
||||
|
@ -877,7 +906,7 @@ Rails/LinkToBlank:
|
|||
- 'app/helpers/application_helper.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Rails/NegateInclude:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
|
@ -885,6 +914,7 @@ Rails/NegateInclude:
|
|||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
|
||||
# Offense count: 34
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
||||
Rails/Output:
|
||||
|
@ -939,8 +969,8 @@ Rails/Presence:
|
|||
Rails/Present:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: Include.
|
||||
# Include: **/Rakefile, **/*.rake
|
||||
Rails/RakeEnvironment:
|
||||
|
@ -955,6 +985,12 @@ Rails/RedundantForeignKey:
|
|||
- 'app/models/financial_transaction.rb'
|
||||
- 'plugins/messages/app/models/message.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Rails/RedundantPresenceValidationOnBelongsTo:
|
||||
Exclude:
|
||||
- 'app/models/financial_transaction_type.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: ConvertTry.
|
||||
|
@ -999,7 +1035,7 @@ Rails/UnknownEnv:
|
|||
- 'config/initializers/gaffe.rb'
|
||||
- 'config/initializers/secret_token.rb'
|
||||
|
||||
# Offense count: 64
|
||||
# Offense count: 68
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
|
@ -1059,14 +1095,6 @@ Style/AndOr:
|
|||
- 'plugins/documents/app/controllers/documents_controller.rb'
|
||||
- 'spec/support/coverage.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: AllowedChars.
|
||||
# AllowedChars: ©
|
||||
Style/AsciiComments:
|
||||
Exclude:
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'app/inputs/delta_input.rb'
|
||||
|
||||
# Offense count: 19
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
||||
|
@ -1095,7 +1123,7 @@ Style/CaseEquality:
|
|||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/CaseLikeIf:
|
||||
Exclude:
|
||||
- 'app/helpers/admin/configs_helper.rb'
|
||||
|
@ -1144,7 +1172,7 @@ Style/ColonMethodCall:
|
|||
- 'plugins/discourse/app/controllers/discourse_controller.rb'
|
||||
- 'plugins/messages/app/mail_receivers/messages_mail_receiver.rb'
|
||||
|
||||
# Offense count: 6
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
||||
# SupportedStyles: backticks, percent_x, mixed
|
||||
|
@ -1154,7 +1182,7 @@ Style/CommandLiteral:
|
|||
|
||||
# Offense count: 10
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Keywords.
|
||||
# Configuration parameters: Keywords, RequireColon.
|
||||
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
||||
Style/CommentAnnotation:
|
||||
Exclude:
|
||||
|
@ -1202,7 +1230,8 @@ Style/DefWithParentheses:
|
|||
Exclude:
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 307
|
||||
# Offense count: 314
|
||||
# Configuration parameters: AllowedConstants.
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
|
@ -1226,7 +1255,7 @@ Style/EmptyElse:
|
|||
- 'app/models/user.rb'
|
||||
- 'lib/token_verifier.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/EmptyLiteral:
|
||||
Exclude:
|
||||
|
@ -1267,8 +1296,17 @@ Style/ExplicitBlockArgument:
|
|||
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Style/FileWrite:
|
||||
Exclude:
|
||||
- 'config/initializers/secret_token.rb'
|
||||
- 'lib/order_txt.rb'
|
||||
- 'lib/render_csv.rb'
|
||||
- 'lib/render_pdf.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
|
||||
Style/FloatDivision:
|
||||
|
@ -1306,7 +1344,7 @@ Style/FormatString:
|
|||
Style/FormatStringToken:
|
||||
EnforcedStyle: unannotated
|
||||
|
||||
# Offense count: 482
|
||||
# Offense count: 490
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: always, always_true, never
|
||||
|
@ -1321,7 +1359,7 @@ Style/GlobalStdStream:
|
|||
- 'lib/tasks/foodsoft.rake'
|
||||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
|
||||
# Offense count: 62
|
||||
# Offense count: 61
|
||||
# Configuration parameters: MinBodyLength.
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
|
@ -1359,10 +1397,11 @@ Style/HashLikeCase:
|
|||
- 'plugins/documents/app/controllers/documents_controller.rb'
|
||||
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
||||
|
||||
# Offense count: 3900
|
||||
# Offense count: 3904
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
||||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
||||
# SupportedShorthandSyntax: always, never, either
|
||||
Style/HashSyntax:
|
||||
Enabled: false
|
||||
|
||||
|
@ -1376,7 +1415,7 @@ Style/IfInsideElse:
|
|||
- 'lib/apple_bar.rb'
|
||||
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
||||
|
||||
# Offense count: 59
|
||||
# Offense count: 60
|
||||
# Cop supports --auto-correct.
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
|
@ -1391,13 +1430,13 @@ Style/IfWithBooleanLiteralBranches:
|
|||
- 'app/models/task.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/InfiniteLoop:
|
||||
Exclude:
|
||||
- 'lib/order_pdf.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: InverseMethods, InverseBlocks.
|
||||
Style/InverseMethods:
|
||||
Exclude:
|
||||
|
@ -1422,6 +1461,12 @@ Style/LineEndConcatenation:
|
|||
- 'db/migrate/20130702113610_update_group_order_totals.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/MapToHash:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
|
@ -1476,6 +1521,7 @@ Style/MultilineWhenThen:
|
|||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowMethodComparison.
|
||||
Style/MultipleComparison:
|
||||
Exclude:
|
||||
- 'app/models/order.rb'
|
||||
|
@ -1515,7 +1561,7 @@ Style/NestedParenthesizedCalls:
|
|||
- 'app/models/user.rb'
|
||||
- 'spec/models/order_article_spec.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
||||
# SupportedStyles: skip_modifier_ifs, always
|
||||
|
@ -1524,7 +1570,6 @@ Style/Next:
|
|||
- 'app/controllers/finance/financial_transactions_controller.rb'
|
||||
- 'app/controllers/orders_controller.rb'
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'app/workers/user_notifier.rb'
|
||||
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
||||
- 'lib/tasks/foodsoft.rake'
|
||||
|
||||
|
@ -1552,12 +1597,12 @@ Style/Not:
|
|||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Strict.
|
||||
# Configuration parameters: Strict, AllowedNumbers.
|
||||
Style/NumericLiterals:
|
||||
MinDigits: 7
|
||||
|
||||
# Offense count: 60
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
||||
# SupportedStyles: predicate, comparison
|
||||
Style/NumericPredicate:
|
||||
|
@ -1615,7 +1660,7 @@ Style/PerlBackrefs:
|
|||
- 'plugins/wiki/app/helpers/pages_helper.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: short, verbose
|
||||
Style/PreferredHashMethods:
|
||||
|
@ -1652,7 +1697,7 @@ Style/RandomWithOffset:
|
|||
- 'db/seeds/seed_helper.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: Methods.
|
||||
Style/RedundantArgument:
|
||||
Exclude:
|
||||
|
@ -1675,7 +1720,7 @@ Style/RedundantConditional:
|
|||
- 'app/models/task.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: SafeForConstants.
|
||||
Style/RedundantFetchBlock:
|
||||
Exclude:
|
||||
|
@ -1728,13 +1773,19 @@ Style/RedundantReturn:
|
|||
- 'app/models/supplier.rb'
|
||||
- 'lib/bank_transaction_reference.rb'
|
||||
|
||||
# Offense count: 85
|
||||
# Offense count: 82
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantSelf:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantSelfAssignmentBranch:
|
||||
Exclude:
|
||||
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/RedundantSort:
|
||||
Exclude:
|
||||
- 'app/models/article_category.rb'
|
||||
|
@ -1784,13 +1835,19 @@ Style/SafeNavigation:
|
|||
- 'plugins/printer/app/controllers/printer_controller.rb'
|
||||
- 'spec/factories/order.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/SelectByRegexp:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/SelfAssignment:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# Offense count: 16
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowAsExpressionSeparator.
|
||||
Style/Semicolon:
|
||||
|
@ -1807,7 +1864,7 @@ Style/Semicolon:
|
|||
- 'spec/models/order_article_spec.rb'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/SlicingWithRange:
|
||||
Exclude:
|
||||
- 'app/helpers/admin/configs_helper.rb'
|
||||
|
@ -1824,24 +1881,25 @@ Style/SoleNestedConditional:
|
|||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: .
|
||||
# Configuration parameters: RequireEnglish.
|
||||
# SupportedStyles: use_perl_names, use_english_names
|
||||
Style/SpecialGlobalVars:
|
||||
EnforcedStyle: use_perl_names
|
||||
|
||||
# Offense count: 32
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: Mode.
|
||||
Style/StringConcatenation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1796
|
||||
# Offense count: 1799
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
||||
# SupportedStyles: single_quotes, double_quotes
|
||||
Style/StringLiterals:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 79
|
||||
# Offense count: 80
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: MinSize.
|
||||
# SupportedStyles: percent, brackets
|
||||
|
@ -1849,7 +1907,7 @@ Style/SymbolArray:
|
|||
EnforcedStyle: brackets
|
||||
|
||||
# Offense count: 19
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
|
||||
# IgnoredMethods: respond_to, define_method
|
||||
Style/SymbolProc:
|
||||
|
@ -1938,16 +1996,16 @@ Style/WordArray:
|
|||
- 'spec/support/faker.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Cop supports --auto-correct-all.
|
||||
Style/ZeroLengthPredicate:
|
||||
Exclude:
|
||||
- 'app/models/group_order_article.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
|
||||
# Offense count: 447
|
||||
# Offense count: 448
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||
# URISchemes: http, https
|
||||
Layout/LineLength:
|
||||
Max: 420
|
||||
|
|
20
Gemfile.lock
20
Gemfile.lock
|
@ -312,8 +312,8 @@ GEM
|
|||
nokogiri (1.12.5)
|
||||
mini_portile2 (~> 2.6.1)
|
||||
racc (~> 1.4)
|
||||
parallel (1.20.1)
|
||||
parser (3.0.0.0)
|
||||
parallel (1.21.0)
|
||||
parser (3.1.0.0)
|
||||
ast (~> 2.4.1)
|
||||
pdf-core (0.9.0)
|
||||
polyglot (0.3.5)
|
||||
|
@ -377,7 +377,7 @@ GEM
|
|||
method_source
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.19.0, < 2.0)
|
||||
rainbow (3.0.0)
|
||||
rainbow (3.1.1)
|
||||
rake (13.0.3)
|
||||
ransack (2.4.2)
|
||||
activerecord (>= 5.2.4)
|
||||
|
@ -396,7 +396,7 @@ GEM
|
|||
redis-namespace (1.8.1)
|
||||
redis (>= 3.0.4)
|
||||
ref (2.0.0)
|
||||
regexp_parser (2.0.3)
|
||||
regexp_parser (2.2.1)
|
||||
responders (3.0.1)
|
||||
actionpack (>= 5.0)
|
||||
railties (>= 5.0)
|
||||
|
@ -437,17 +437,17 @@ GEM
|
|||
rspec-rerun (1.1.0)
|
||||
rspec (~> 3.0)
|
||||
rspec-support (3.10.2)
|
||||
rubocop (1.11.0)
|
||||
rubocop (1.25.1)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.0.0.0)
|
||||
parser (>= 3.1.0.0)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.8, < 3.0)
|
||||
rexml
|
||||
rubocop-ast (>= 1.2.0, < 2.0)
|
||||
rubocop-ast (>= 1.15.1, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 3.0)
|
||||
rubocop-ast (1.4.1)
|
||||
parser (>= 2.7.1.5)
|
||||
rubocop-ast (1.15.2)
|
||||
parser (>= 3.0.1.1)
|
||||
rubocop-rails (2.9.1)
|
||||
activesupport (>= 4.2.0)
|
||||
rack (>= 1.1)
|
||||
|
@ -537,7 +537,7 @@ GEM
|
|||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.7.7)
|
||||
unicode-display_width (2.0.0)
|
||||
unicode-display_width (2.1.0)
|
||||
uniform_notifier (1.13.2)
|
||||
vegas (0.1.11)
|
||||
rack (>= 1.0.0)
|
||||
|
|
Loading…
Reference in a new issue