2021-03-01 13:41:50 +01:00
|
|
|
# This configuration was generated by
|
|
|
|
# `rubocop --auto-gen-config`
|
2023-05-12 13:01:12 +02:00
|
|
|
# on 2023-05-26 14:15:44 UTC using RuboCop version 1.50.2.
|
2021-03-01 13:41:50 +01:00
|
|
|
# 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.
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
|
|
|
|
# SupportedStyles: Gemfile, gems.rb, gemspec
|
|
|
|
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
|
|
|
Gemspec/DevelopmentDependencies:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'plugins/messages/foodsoft_messages.gemspec'
|
|
|
|
- 'plugins/wiki/foodsoft_wiki.gemspec'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 9
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: Severity, Include.
|
2021-03-01 13:41:50 +01:00
|
|
|
# Include: **/*.gemspec
|
|
|
|
Gemspec/RequiredRubyVersion:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- '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'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 12
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
|
|
Layout/ArgumentAlignment:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/articles_controller.rb'
|
|
|
|
- 'app/models/ordergroup.rb'
|
|
|
|
- 'config/initializers/currency_display.rb'
|
|
|
|
- 'db/migrate/001_create_users.rb'
|
|
|
|
- 'db/migrate/002_create_groups.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'plugins/current_orders/app/helpers/current_orders_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
|
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
|
|
Layout/BlockAlignment:
|
2022-02-16 17:28:51 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Layout/BlockEndNewline:
|
|
|
|
Exclude:
|
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Layout/ClosingParenthesisIndentation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/concerns/auth.rb'
|
2022-02-16 17:28:51 +01:00
|
|
|
|
2021-03-01 15:27:26 +01:00
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
Layout/EmptyLineAfterGuardClause:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
|
|
|
- 'db/migrate/20230106144438_add_service_name_to_active_storage_blobs.active_storage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20230106144438_add_service_name_to_active_storage_blobs.active_storage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
|
|
Layout/ExtraSpacing:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/021_remove_table_article_prices.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2023-05-12 13:01:12 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
|
|
Layout/FirstArgumentIndentation:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/concerns/auth.rb'
|
|
|
|
|
|
|
|
# Offense count: 12
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
# SupportedColonStyles: key, separator, table
|
|
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
|
|
Layout/HashAlignment:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/admin/ordergroups_controller.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'app/documents/order_fax.rb'
|
|
|
|
- 'db/migrate/001_create_users.rb'
|
|
|
|
- 'db/migrate/002_create_groups.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'db/migrate/20190101000000_create_active_storage_tables.active_storage.rb'
|
|
|
|
- 'spec/lib/bank_transaction_reference_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: normal, indented_internal_methods
|
|
|
|
Layout/IndentationConsistency:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
|
|
|
- 'db/migrate/20230106144438_add_service_name_to_active_storage_blobs.active_storage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: Width, AllowedPatterns.
|
|
|
|
Layout/IndentationWidth:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
|
|
Layout/MultilineMethodCallBraceLayout:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/concerns/auth.rb'
|
|
|
|
|
|
|
|
# Offense count: 15
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowInHeredoc.
|
|
|
|
Layout/TrailingWhitespace:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/admin/ordergroups_controller.rb'
|
|
|
|
- 'app/controllers/articles_controller.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'app/documents/order_fax.rb'
|
|
|
|
- 'app/models/ordergroup.rb'
|
|
|
|
- 'config/initializers/currency_display.rb'
|
|
|
|
- 'db/migrate/001_create_users.rb'
|
|
|
|
- 'db/migrate/002_create_groups.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'db/migrate/20190101000000_create_active_storage_tables.active_storage.rb'
|
|
|
|
- 'db/migrate/20230106144438_add_service_name_to_active_storage_blobs.active_storage.rb'
|
|
|
|
- 'plugins/current_orders/app/helpers/current_orders_helper.rb'
|
|
|
|
- 'spec/lib/bank_transaction_reference_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 41
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
|
|
Lint/AssignmentInCondition:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Lint/BooleanSymbol:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/delivery.rb'
|
|
|
|
|
|
|
|
# Offense count: 4
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
|
|
|
Lint/DuplicateBranch:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/concerns/auth_api.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
Lint/DuplicateMethods:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/invoice.rb'
|
|
|
|
- 'plugins/messages/app/models/message.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
|
|
Lint/EmptyBlock:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/factories/group_order_article.rb'
|
|
|
|
- 'spec/factories/group_order_article_quantity.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/EnsureReturn:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/finance/bank_accounts_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/IneffectiveAccessModifier:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_mail_receiver.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/Loop:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/concerns/mark_as_deleted_with_name.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/bank_transaction_reference.rb'
|
|
|
|
- 'app/lib/foodsoft_mail_receiver.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/NonDeterministicRequireOrder:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/spec_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2021-03-01 15:27:26 +01:00
|
|
|
# Offense count: 1
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/ReturnInVoidContext:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: IgnoreImplicitReferences.
|
|
|
|
Lint/ShadowedArgument:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/deliveries_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 6
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/ShadowingOuterLocalVariable:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/documents/order_matrix.rb'
|
|
|
|
- 'app/helpers/group_orders_helper.rb'
|
|
|
|
- 'app/models/group_order.rb'
|
|
|
|
- 'app/models/group_order_article.rb'
|
|
|
|
- 'plugins/discourse/app/controllers/discourse_login_controller.rb'
|
|
|
|
- 'plugins/polls/app/controllers/polls_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: AllowComments, AllowNil.
|
2021-03-01 13:41:50 +01:00
|
|
|
Lint/SuppressedException:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
- 'lib/tasks/rspec.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: AllowKeywordBlockArguments.
|
|
|
|
Lint/UnderscorePrefixedVariableName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/order_article.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 14
|
|
|
|
Lint/UselessAssignment:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/admin/ordergroups_controller.rb'
|
|
|
|
- 'app/helpers/admin/configs_helper.rb'
|
|
|
|
- 'app/inputs/date_picker_time_input.rb'
|
|
|
|
- 'app/models/order_article.rb'
|
|
|
|
- 'db/migrate/003_create_suppliers.rb'
|
|
|
|
- 'db/migrate/004_create_article_meta.rb'
|
|
|
|
- 'db/migrate/005_create_financial_transactions.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb'
|
|
|
|
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
|
|
|
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
|
|
|
- 'spec/lib/foodsoft_config_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2021-03-01 15:27:26 +01:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
|
|
Lint/Void:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
2021-03-01 15:27:26 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 161
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
2021-03-01 13:41:50 +01:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 143
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 13
|
|
|
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
2022-10-08 16:03:19 +02:00
|
|
|
# AllowedMethods: refine
|
2021-03-01 13:41:50 +01:00
|
|
|
Metrics/BlockLength:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 66
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: CountBlocks.
|
|
|
|
Metrics/BlockNesting:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 4
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 19
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: CountComments, CountAsOne.
|
|
|
|
Metrics/ClassLength:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 294
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 51
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
Metrics/CyclomaticComplexity:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 20
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 164
|
|
|
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
Metrics/MethodLength:
|
|
|
|
Max: 112
|
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
# Configuration parameters: CountComments, CountAsOne.
|
|
|
|
Metrics/ModuleLength:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 191
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
|
|
Metrics/ParameterLists:
|
|
|
|
Max: 6
|
|
|
|
|
|
|
|
# Offense count: 36
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
Metrics/PerceivedComplexity:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 21
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
Naming/AccessorMethodName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/admin/configs_controller.rb'
|
|
|
|
- 'app/lib/bank_account_connector.rb'
|
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
- 'spec/integration/config_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
|
|
Naming/BlockParameterName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/008_create_orders.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'plugins/messages/app/models/message.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 16
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
2023-05-12 13:01:12 +02:00
|
|
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
2021-03-01 13:41:50 +01:00
|
|
|
Naming/MethodParameterName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/api/v1/base_controller.rb'
|
|
|
|
- 'app/controllers/api/v1/user/group_order_articles_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/orders_helper.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'spec/integration/config_spec.rb'
|
|
|
|
- 'spec/integration/receive_spec.rb'
|
|
|
|
- 'spec/models/order_article_spec.rb'
|
|
|
|
- 'spec/support/shared_database.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 11
|
|
|
|
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
|
|
|
# NamePrefix: is_, has_, have_
|
|
|
|
# ForbiddenPrefixes: is_, has_, have_
|
|
|
|
# AllowedMethods: is_a?
|
|
|
|
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
|
|
Naming/PredicateName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/financial_transaction_class.rb'
|
|
|
|
- 'app/models/financial_transaction_type.rb'
|
|
|
|
- 'app/models/order.rb'
|
|
|
|
- 'app/models/periodic_task_group.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'app/models/task.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/serializers/order_serializer.rb'
|
|
|
|
- 'plugins/messages/app/models/message.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 17
|
2022-10-08 16:03:19 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: snake_case, camelCase
|
|
|
|
Naming/VariableName:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/concerns/auth.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2022-10-08 16:03:19 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
2023-05-12 13:01:12 +02:00
|
|
|
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
2021-03-01 13:41:50 +01:00
|
|
|
Naming/VariableNumber:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/documents/order_matrix.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
RSpec/BeforeAfterAll:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/lib/foodsoft_mail_receiver_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 10
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnabledMethods.
|
|
|
|
RSpec/Capybara/FeatureMethods:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/articles_spec.rb'
|
|
|
|
- 'spec/integration/balancing_spec.rb'
|
|
|
|
- 'spec/integration/config_spec.rb'
|
|
|
|
- 'spec/integration/home_spec.rb'
|
|
|
|
- 'spec/integration/login_spec.rb'
|
|
|
|
- 'spec/integration/order_spec.rb'
|
|
|
|
- 'spec/integration/product_distribution_example_spec.rb'
|
|
|
|
- 'spec/integration/receive_spec.rb'
|
|
|
|
- 'spec/integration/session_spec.rb'
|
|
|
|
- 'spec/integration/supplier_spec.rb'
|
2022-10-08 16:03:19 +02:00
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
RSpec/Capybara/SpecificMatcher:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/login_spec.rb'
|
|
|
|
- 'spec/integration/session_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 12
|
2022-10-08 16:03:19 +02:00
|
|
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# Prefixes: when, with, without
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/order_article_spec.rb'
|
|
|
|
- 'spec/models/supplier_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 7
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: IgnoredMetadata.
|
|
|
|
RSpec/DescribeClass:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/balancing_spec.rb'
|
|
|
|
- 'spec/integration/config_spec.rb'
|
|
|
|
- 'spec/integration/home_spec.rb'
|
|
|
|
- 'spec/integration/product_distribution_example_spec.rb'
|
|
|
|
- 'spec/integration/receive_spec.rb'
|
|
|
|
- 'spec/integration/session_spec.rb'
|
|
|
|
- 'spec/integration/supplier_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 128
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
|
|
|
# SupportedStyles: described_class, explicit
|
|
|
|
RSpec/DescribedClass:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/order_spec.rb'
|
|
|
|
- 'spec/lib/bank_transaction_reference_spec.rb'
|
|
|
|
- 'spec/lib/foodsoft_config_spec.rb'
|
|
|
|
- 'spec/lib/foodsoft_mail_receiver_spec.rb'
|
|
|
|
- 'spec/lib/token_verifier_spec.rb'
|
|
|
|
- 'spec/models/group_order_article_spec.rb'
|
|
|
|
- 'spec/models/order_article_spec.rb'
|
|
|
|
- 'spec/models/order_spec.rb'
|
|
|
|
- 'spec/models/ordergroup_spec.rb'
|
|
|
|
- 'spec/models/user_spec.rb'
|
2022-10-08 16:03:19 +02:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 14
|
2023-05-12 11:11:48 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
RSpec/EmptyExampleGroup:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/requests/api/v1/article_categories_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/configs_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/financial_transaction_classes_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/financial_transaction_types_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/financial_transactions_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/navigations_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/order_articles_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/orders_controller_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/user/group_order_articles_spec.rb'
|
|
|
|
- 'spec/requests/api/v1/user/users_spec.rb'
|
2023-05-12 11:11:48 +02:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 69
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: CountAsOne.
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/ExampleLength:
|
2022-02-16 17:28:51 +01:00
|
|
|
Max: 81
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 3
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
|
|
|
# Include: **/*_spec*rb*, **/spec/**/*
|
|
|
|
RSpec/FilePath:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/articles_spec.rb'
|
|
|
|
- 'spec/integration/login_spec.rb'
|
|
|
|
- 'spec/lib/bank_account_information_importer_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Configuration parameters: AssignmentOnly.
|
|
|
|
RSpec/InstanceVariable:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/lib/foodsoft_mail_receiver_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 3
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/IteratedExpectation:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/order_spec.rb'
|
|
|
|
- 'spec/models/supplier_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 3
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/LetSetup:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/bank_transaction_spec.rb'
|
|
|
|
- 'spec/models/group_order_article_spec.rb'
|
|
|
|
- 'spec/models/supplier_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
RSpec/MissingExampleGroupArgument:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/group_order_article_spec.rb'
|
|
|
|
- 'spec/models/group_order_spec.rb'
|
|
|
|
- 'spec/models/user_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 103
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/MultipleExpectations:
|
|
|
|
Max: 22
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 36
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: AllowSubject.
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 15
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 8
|
2022-10-08 16:03:19 +02:00
|
|
|
# Configuration parameters: AllowedGroups.
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/NestedGroups:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 4
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 8
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
RSpec/PredicateMatcher:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/article_spec.rb'
|
|
|
|
- 'spec/models/user_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
RSpec/RepeatedDescription:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/lib/bank_account_information_importer_spec.rb'
|
|
|
|
- 'spec/lib/bank_transaction_reference_spec.rb'
|
|
|
|
- 'spec/lib/foodsoft_mail_receiver_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
RSpec/RepeatedExample:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/lib/bank_transaction_reference_spec.rb'
|
|
|
|
- 'spec/lib/foodsoft_mail_receiver_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 5
|
2021-03-01 13:41:50 +01:00
|
|
|
RSpec/ScatteredSetup:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/integration/balancing_spec.rb'
|
|
|
|
- 'spec/integration/login_spec.rb'
|
2023-05-12 11:11:48 +02:00
|
|
|
|
2021-03-01 13:41:50 +01:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
|
|
RSpec/VerifiedDoubles:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/support/api_oauth.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/ApplicationMailer:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/mailers/mailer.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 20
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/ApplicationRecord:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/supplier_category.rb'
|
|
|
|
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
|
|
|
- 'db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb'
|
|
|
|
- 'db/migrate/20181201000301_change_ordergroup_default_in_financial_transaction.rb'
|
|
|
|
- 'db/migrate/20181201000302_change_stock_supplier_to_null_in_order.rb'
|
|
|
|
- 'db/migrate/20181201000305_ensure_article_for_article_price.rb'
|
|
|
|
- 'db/migrate/20181201000400_create_supplier_categories.rb'
|
|
|
|
- 'db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb'
|
|
|
|
- 'db/migrate/20181204070000_create_stock_events.rb'
|
|
|
|
- 'plugins/messages/app/models/message_recipient.rb'
|
|
|
|
- 'plugins/polls/app/models/poll.rb'
|
|
|
|
- 'plugins/polls/app/models/poll_choice.rb'
|
|
|
|
- 'plugins/polls/app/models/poll_vote.rb'
|
|
|
|
- 'plugins/printer/app/models/printer_job.rb'
|
|
|
|
- 'plugins/printer/app/models/printer_job_update.rb'
|
|
|
|
|
|
|
|
# Offense count: 35
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/CreateTableWithTimestamps:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: EnforcedStyle, AllowToTime.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: strict, flexible
|
|
|
|
Rails/Date:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/deliveries_controller.rb'
|
|
|
|
- 'app/documents/order_fax.rb'
|
|
|
|
- 'app/models/periodic_task_group.rb'
|
|
|
|
- 'spec/integration/order_spec.rb'
|
|
|
|
- 'spec/models/order_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 68
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
2023-05-12 13:01:12 +02:00
|
|
|
# Whitelist: find_by_sql, find_by_token_for
|
|
|
|
# AllowedMethods: find_by_sql, find_by_token_for
|
|
|
|
# AllowedReceivers: Gem::Specification, page
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/DynamicFindBy:
|
|
|
|
Enabled: false
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: slashes, arguments
|
|
|
|
Rails/FilePath:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/application.rb'
|
|
|
|
- 'config/initializers/secret_token.rb'
|
|
|
|
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 26
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/article.rb'
|
|
|
|
- 'app/models/article_category.rb'
|
|
|
|
- 'app/models/article_price.rb'
|
|
|
|
- 'app/models/financial_link.rb'
|
|
|
|
- 'app/models/financial_transaction.rb'
|
|
|
|
- 'app/models/group_order.rb'
|
|
|
|
- 'app/models/order.rb'
|
|
|
|
- 'app/models/ordergroup.rb'
|
|
|
|
- 'app/models/shared_supplier.rb'
|
|
|
|
- 'app/models/stock_article.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'app/models/supplier_category.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/workgroup.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 14
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/helpers/**/*.rb
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/admin/configs_helper.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/orders_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 22
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: IgnoreScopes, Include.
|
2021-03-01 13:41:50 +01:00
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/article.rb'
|
|
|
|
- 'app/models/bank_transaction.rb'
|
|
|
|
- 'app/models/financial_transaction.rb'
|
|
|
|
- 'app/models/group_order.rb'
|
|
|
|
- 'app/models/invoice.rb'
|
|
|
|
- 'app/models/mail_delivery_status.rb'
|
|
|
|
- 'app/models/order.rb'
|
|
|
|
- 'app/models/shared_article.rb'
|
|
|
|
- 'app/models/shared_supplier.rb'
|
|
|
|
- 'app/models/stock_change.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'app/models/task.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/workgroup.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: Include.
|
2022-10-08 16:03:19 +02:00
|
|
|
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/group_orders_controller.rb'
|
|
|
|
- 'app/controllers/suppliers_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/NegateInclude:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 34
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
|
|
|
Rails/Output:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/initializers/resque.rb'
|
|
|
|
- 'config/initializers/secret_token.rb'
|
|
|
|
- 'db/migrate/001_create_users.rb'
|
|
|
|
- 'db/migrate/002_create_groups.rb'
|
|
|
|
- 'db/migrate/003_create_suppliers.rb'
|
|
|
|
- 'db/migrate/004_create_article_meta.rb'
|
|
|
|
- 'db/migrate/005_create_financial_transactions.rb'
|
|
|
|
- 'db/migrate/006_create_articles.rb'
|
|
|
|
- 'db/migrate/007_create_article_prices.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'db/migrate/021_remove_table_article_prices.rb'
|
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
|
|
|
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 28
|
|
|
|
Rails/OutputSafety:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/admin/configs_helper.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/deliveries_helper.rb'
|
|
|
|
- 'app/helpers/orders_helper.rb'
|
|
|
|
- 'app/helpers/tasks_helper.rb'
|
|
|
|
- 'plugins/messages/app/helpers/messages_helper.rb'
|
|
|
|
- 'plugins/wiki/app/helpers/pages_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/Presence:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/021_remove_table_article_prices.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 6
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
|
|
|
- 'lib/tasks/resque.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 14
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-02-16 17:28:51 +01:00
|
|
|
Rails/RedundantPresenceValidationOnBelongsTo:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/article.rb'
|
|
|
|
- 'app/models/bank_transaction.rb'
|
|
|
|
- 'app/models/delivery.rb'
|
|
|
|
- 'app/models/financial_transaction.rb'
|
|
|
|
- 'app/models/financial_transaction_type.rb'
|
|
|
|
- 'app/models/group_order.rb'
|
|
|
|
- 'app/models/group_order_article.rb'
|
|
|
|
- 'app/models/group_order_article_quantity.rb'
|
|
|
|
- 'app/models/invite.rb'
|
|
|
|
- 'app/models/invoice.rb'
|
|
|
|
- 'app/models/order_article.rb'
|
|
|
|
- 'app/models/order_comment.rb'
|
|
|
|
- 'app/models/stock_change.rb'
|
2022-02-16 17:28:51 +01:00
|
|
|
|
2021-03-01 13:41:50 +01:00
|
|
|
# Offense count: 1
|
2023-05-12 13:01:12 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Rails/RootPathnameMethods:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 64
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: ForbiddenMethods, AllowedMethods.
|
|
|
|
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/SquishedSQLHeredocs:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/finance/financial_links_controller.rb'
|
|
|
|
- 'app/models/financial_link.rb'
|
|
|
|
- 'db/migrate/20181201000305_ensure_article_for_article_price.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 42
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: strict, flexible
|
|
|
|
Rails/TimeZone:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-05-27 21:57:06 +02:00
|
|
|
# Offense count: 1
|
|
|
|
Rails/TransactionExitStatement:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/bank_transaction.rb'
|
2022-05-27 21:57:06 +02:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 8
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/UniqueValidationWithoutIndex:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/bank_account.rb'
|
|
|
|
- 'app/models/financial_transaction_class.rb'
|
|
|
|
- 'app/models/financial_transaction_type.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'app/models/supplier_category.rb'
|
|
|
|
- 'app/models/user.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: Environments.
|
|
|
|
# Environments: development, test, production
|
|
|
|
Rails/UnknownEnv:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/initializers/gaffe.rb'
|
|
|
|
- 'config/initializers/secret_token.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/WhereEquals:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/finance/invoices_controller.rb'
|
|
|
|
- 'app/models/financial_transaction.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: exists, where
|
|
|
|
Rails/WhereExists:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/concerns/mark_as_deleted_with_name.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Rails/WhereNot:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20140921104907_remove_stale_memberships.rb'
|
|
|
|
- 'db/migrate/20210205090257_introduce_received_state_in_orders.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Security/YAMLLoad:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/finance/bank_accounts_controller.rb'
|
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
|
|
|
- 'db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2021-03-01 15:27:26 +01:00
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, conditionals
|
|
|
|
Style/AndOr:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/initializers/extensions.rb'
|
|
|
|
- 'plugins/documents/app/controllers/documents_controller.rb'
|
|
|
|
- 'spec/support/coverage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 10
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
2021-03-01 13:41:50 +01:00
|
|
|
# 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
|
2022-10-08 16:03:19 +02:00
|
|
|
# AllowedMethods: lambda, proc, it
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/BlockDelimiters:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
|
|
|
- 'spec/factories/user.rb'
|
|
|
|
- 'spec/support/coverage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/CaseEquality:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-10-08 16:03:19 +02:00
|
|
|
# Offense count: 55
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: nested, compact
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/ClassVars:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/lib/foodsoft_mail_receiver.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 12
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/CommentedKeyword:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/deliveries_controller.rb'
|
|
|
|
- 'app/controllers/finance/balancing_controller.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'app/controllers/stock_takings_controller.rb'
|
|
|
|
- 'app/controllers/stockit_controller.rb'
|
|
|
|
- 'config/routes.rb'
|
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 337
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: AllowedConstants.
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: allowed_in_returns, forbidden
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/tasks_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 6
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: compact, expanded
|
|
|
|
Style/EmptyMethod:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/024_add_deposit_defaults.rb'
|
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
|
|
|
- 'db/migrate/20090907120012_add_missing_indexes.rb'
|
|
|
|
- 'db/migrate/20130702113610_update_group_order_totals.rb'
|
|
|
|
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
|
|
|
- 'db/migrate/20140318173000_delete_empty_group_order_articles.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
|
|
|
|
Style/FloatDivision:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/ordergroup.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 18
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: each, for
|
|
|
|
Style/For:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/admin/configs_controller.rb'
|
|
|
|
- 'app/models/delivery.rb'
|
|
|
|
- 'app/models/group_order.rb'
|
|
|
|
- 'app/models/order.rb'
|
|
|
|
- 'app/models/stock_taking.rb'
|
|
|
|
- 'app/models/supplier.rb'
|
|
|
|
- 'db/migrate/005_create_financial_transactions.rb'
|
|
|
|
- 'lib/tasks/foodsoft.rake'
|
|
|
|
- 'plugins/messages/app/mail_receivers/messages_mail_receiver.rb'
|
|
|
|
- 'plugins/wiki/app/views/pages/all.rss.builder'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 6
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: annotated, template, unannotated
|
|
|
|
Style/FormatStringToken:
|
|
|
|
EnforcedStyle: unannotated
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 511
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, always_true, never
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/GlobalStdStream:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/environments/production.rb'
|
|
|
|
- 'lib/tasks/foodsoft.rake'
|
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-10-08 16:03:19 +02:00
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/GuardClause:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20230106144438_add_service_name_to_active_storage_blobs.active_storage.rb'
|
|
|
|
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/HashExcept:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'spec/models/article_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 8
|
|
|
|
# Configuration parameters: MinBranchesCount.
|
|
|
|
Style/HashLikeCase:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/articles_controller.rb'
|
|
|
|
- 'app/controllers/finance/bank_transactions_controller.rb'
|
|
|
|
- 'app/controllers/finance/financial_transactions_controller.rb'
|
|
|
|
- 'app/controllers/home_controller.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'app/helpers/finance/balancing_helper.rb'
|
|
|
|
- 'plugins/documents/app/controllers/documents_controller.rb'
|
|
|
|
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 375
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
2022-10-08 16:03:19 +02:00
|
|
|
# SupportedShorthandSyntax: always, never, either, consistent
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/HashSyntax:
|
|
|
|
Enabled: false
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/IfUnlessModifier:
|
2023-05-12 13:01:12 +02:00
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: nonzero?
|
|
|
|
Style/IfWithBooleanLiteralBranches:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/order_article.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
|
|
Style/InverseMethods:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/deliveries_helper.rb'
|
|
|
|
- 'spec/support/coverage.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 5
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/LineEndConcatenation:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20130702113610_update_group_order_totals.rb'
|
|
|
|
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2023-05-12 13:01:12 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/MapToHash:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/article.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/MixinUsage:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 2
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/MultilineBlockChain:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/group_orders_helper.rb'
|
|
|
|
- 'app/models/order.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 7
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/MultilineIfModifier:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/admin/ordergroups_controller.rb'
|
|
|
|
- 'app/controllers/articles_controller.rb'
|
|
|
|
- 'app/controllers/orders_controller.rb'
|
|
|
|
- 'app/documents/order_fax.rb'
|
|
|
|
- 'app/lib/foodsoft_config.rb'
|
|
|
|
- 'app/models/ordergroup.rb'
|
|
|
|
- 'config/initializers/currency_display.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 24
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: literals, strict
|
|
|
|
Style/MutableConstant:
|
|
|
|
Enabled: false
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
Style/Next:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/NumericLiterals:
|
2023-05-12 13:01:12 +02:00
|
|
|
MinDigits: 6
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 60
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: predicate, comparison
|
|
|
|
Style/NumericPredicate:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: respond_to_missing?
|
|
|
|
Style/OptionalBooleanParameter:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/orders_helper.rb'
|
|
|
|
- 'app/models/order_article.rb'
|
|
|
|
- 'lib/tasks/foodsoft_setup.rake'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 2
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: short, verbose
|
|
|
|
Style/PreferredHashMethods:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/admin/configs_helper.rb'
|
|
|
|
- 'app/helpers/articles_helper.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/RandomWithOffset:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/007_create_article_prices.rb'
|
|
|
|
- 'db/migrate/008_create_orders.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: Methods.
|
|
|
|
Style/RedundantArgument:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/articles_controller.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: SafeForConstants.
|
|
|
|
Style/RedundantFetchBlock:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'config/puma.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/RedundantInterpolation:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
|
|
|
- 'spec/i18n_spec.rb'
|
|
|
|
- 'spec/models/user_spec.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
Style/RedundantParentheses:
|
2021-03-01 13:41:50 +01:00
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/021_remove_table_article_prices.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2022-02-16 17:28:51 +01:00
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/RedundantSort:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/models/article_category.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 8
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
2021-03-01 13:41:50 +01:00
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
|
|
Style/SafeNavigation:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/concerns/auth_api.rb'
|
|
|
|
- 'app/controllers/group_order_articles_controller.rb'
|
|
|
|
- 'app/models/article_category.rb'
|
|
|
|
- 'app/models/financial_transaction.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'plugins/printer/app/controllers/printer_controller.rb'
|
|
|
|
- 'spec/factories/order.rb'
|
2022-02-16 17:28:51 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
|
|
Style/Semicolon:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 4
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/SlicingWithRange:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/helpers/admin/configs_helper.rb'
|
|
|
|
- 'config/initializers/session_store.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 9
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: RequireEnglish.
|
2022-10-08 16:03:19 +02:00
|
|
|
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
EnforcedStyle: use_perl_names
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 34
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-02-16 17:28:51 +01:00
|
|
|
# Configuration parameters: Mode.
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/StringConcatenation:
|
|
|
|
Enabled: false
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 140
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-01 13:41:50 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 19
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: .
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/SymbolArray:
|
2023-05-12 13:01:12 +02:00
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 5
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 20
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
|
|
# AllowedMethods: define_method, mail, respond_to
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/SymbolProc:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- 'app/controllers/pickups_controller.rb'
|
|
|
|
- 'app/helpers/orders_helper.rb'
|
|
|
|
- 'app/models/delivery.rb'
|
|
|
|
- 'app/models/financial_transaction_class.rb'
|
|
|
|
- 'app/models/financial_transaction_type.rb'
|
|
|
|
- 'app/models/group_order_article.rb'
|
|
|
|
- 'app/models/order.rb'
|
|
|
|
- 'app/models/order_article.rb'
|
|
|
|
- 'app/models/stock_article.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'db/migrate/20090731132547_add_stats_to_groups.rb'
|
|
|
|
- 'spec/factories/order.rb'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 1
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: WordRegex.
|
2021-03-01 13:41:50 +01:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2023-05-12 13:01:12 +02:00
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 4
|
2021-03-01 13:41:50 +01:00
|
|
|
|
|
|
|
# Offense count: 3
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-01 13:41:50 +01:00
|
|
|
Style/ZeroLengthPredicate:
|
|
|
|
Exclude:
|
2023-05-12 13:01:12 +02:00
|
|
|
- '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'
|
2021-03-01 13:41:50 +01:00
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
# Offense count: 282
|
2022-10-08 16:03:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2023-05-12 13:01:12 +02:00
|
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
2021-03-01 13:41:50 +01:00
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
2023-05-12 13:01:12 +02:00
|
|
|
Max: 320
|