Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -29,491 +29,6 @@ Gemspec/RequiredRubyVersion:
|
|||
- 'plugins/uservoice/foodsoft_uservoice.gemspec'
|
||||
- 'plugins/wiki/foodsoft_wiki.gemspec'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: outdent, indent
|
||||
Layout/AccessModifierIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/finance/financial_links_controller.rb'
|
||||
- 'app/models/invite.rb'
|
||||
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
||||
|
||||
# Offense count: 13
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: with_first_argument, with_fixed_indentation
|
||||
Layout/ArgumentAlignment:
|
||||
Exclude:
|
||||
- 'app/controllers/finance/balancing_controller.rb'
|
||||
- 'app/controllers/foodcoop/workgroups_controller.rb'
|
||||
- 'app/helpers/deliveries_helper.rb'
|
||||
- 'app/helpers/stockit_helper.rb'
|
||||
- 'db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb'
|
||||
- 'plugins/discourse/app/controllers/discourse_login_controller.rb'
|
||||
- 'plugins/discourse/app/controllers/discourse_sso_controller.rb'
|
||||
- 'plugins/messages/lib/foodsoft_messages/user_link.rb'
|
||||
- 'plugins/polls/app/controllers/polls_controller.rb'
|
||||
- 'spec/models/user_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: with_first_element, with_fixed_indentation
|
||||
Layout/ArrayAlignment:
|
||||
Exclude:
|
||||
- 'lib/render_pdf.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleAlignWith.
|
||||
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
||||
Layout/BlockAlignment:
|
||||
Exclude:
|
||||
- 'db/migrate/008_create_orders.rb'
|
||||
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
||||
- 'spec/api/v1/user/group_order_articles_spec.rb'
|
||||
|
||||
# Offense count: 86
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
||||
# SupportedStyles: case, end
|
||||
Layout/CaseIndentation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
Layout/ClosingParenthesisIndentation:
|
||||
Exclude:
|
||||
- 'app/helpers/stockit_helper.rb'
|
||||
- 'app/models/group_order_article.rb'
|
||||
- 'app/models/shared_article.rb'
|
||||
- 'db/seeds/minimal.seeds.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Layout/CommentIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/concerns/auth_api.rb'
|
||||
- 'app/controllers/finance/financial_transactions_controller.rb'
|
||||
- 'app/documents/order_fax.rb'
|
||||
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
||||
|
||||
# Offense count: 51
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: leading, trailing
|
||||
Layout/DotPosition:
|
||||
Exclude:
|
||||
- 'app/controllers/api/v1/user/group_order_articles_controller.rb'
|
||||
- 'app/controllers/stockit_controller.rb'
|
||||
- 'app/documents/order_fax.rb'
|
||||
- 'app/models/order.rb'
|
||||
- 'app/models/stock_article.rb'
|
||||
- 'app/models/task.rb'
|
||||
- 'lib/order_pdf.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/group_orders_controller.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/ordergroups_controller.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
Layout/ElseAlignment:
|
||||
Exclude:
|
||||
- 'app/helpers/group_orders_helper.rb'
|
||||
|
||||
# Offense count: 70
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLineAfterGuardClause:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 38
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLineAfterMagicComment:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 15
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
||||
Layout/EmptyLineBetweenDefs:
|
||||
Exclude:
|
||||
- 'app/helpers/finance/invoices_helper.rb'
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'app/models/group_order.rb'
|
||||
- 'app/models/ordergroup.rb'
|
||||
- 'app/models/task.rb'
|
||||
- 'db/migrate/20181201000400_create_supplier_categories.rb'
|
||||
- 'db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb'
|
||||
- 'db/migrate/20181204070000_create_stock_events.rb'
|
||||
- 'lib/api/errors.rb'
|
||||
- 'lib/foodsoft/expansion_variables.rb'
|
||||
- 'lib/token_verifier.rb'
|
||||
- 'plugins/wiki/app/helpers/pages_helper.rb'
|
||||
- 'spec/support/shared_database.rb'
|
||||
|
||||
# Offense count: 55
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLines:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: around, only_before
|
||||
Layout/EmptyLinesAroundAccessModifier:
|
||||
Exclude:
|
||||
- 'db/migrate/20130622095040_move_weekly_tasks.rb'
|
||||
|
||||
# Offense count: 85
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, no_empty_lines
|
||||
Layout/EmptyLinesAroundBlockBody:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 147
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
||||
Layout/EmptyLinesAroundClassBody:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
||||
Exclude:
|
||||
- 'app/controllers/articles_controller.rb'
|
||||
- 'app/controllers/finance/balancing_controller.rb'
|
||||
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'db/migrate/002_create_groups.rb'
|
||||
|
||||
# Offense count: 37
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
||||
Layout/EmptyLinesAroundModuleBody:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
||||
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
||||
Layout/EndAlignment:
|
||||
Exclude:
|
||||
- 'app/controllers/articles_controller.rb'
|
||||
- 'app/controllers/concerns/auth.rb'
|
||||
- 'app/controllers/concerns/send_order_pdf.rb'
|
||||
- 'app/controllers/finance/financial_transactions_controller.rb'
|
||||
- 'app/controllers/home_controller.rb'
|
||||
- 'app/controllers/orders_controller.rb'
|
||||
- 'app/helpers/group_orders_helper.rb'
|
||||
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
||||
|
||||
# Offense count: 57
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||
Layout/ExtraSpacing:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
||||
Layout/FirstArgumentIndentation:
|
||||
Exclude:
|
||||
- 'app/models/group_order_article.rb'
|
||||
- 'app/models/shared_article.rb'
|
||||
- 'db/seeds/minimal.seeds.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/articles_controller.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/ordergroups_controller.rb'
|
||||
|
||||
# Offense count: 8
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
||||
Layout/FirstArrayElementIndentation:
|
||||
Exclude:
|
||||
- 'db/seeds/small.en.seeds.rb'
|
||||
- 'db/seeds/small.nl.seeds.rb'
|
||||
- 'lib/financial_transactions_csv.rb'
|
||||
- 'lib/order_csv.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||
Layout/FirstHashElementIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/finance/financial_transactions_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/models/group_order.rb'
|
||||
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
||||
- 'lib/bank_account_information_importer.rb'
|
||||
|
||||
# Offense count: 83
|
||||
# Cop supports --auto-correct.
|
||||
# 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:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: normal, indented_internal_methods
|
||||
Layout/IndentationConsistency:
|
||||
Exclude:
|
||||
- 'db/migrate/003_create_suppliers.rb'
|
||||
- 'db/migrate/007_create_article_prices.rb'
|
||||
- 'db/migrate/008_create_orders.rb'
|
||||
- 'db/migrate/010_user_password_reset.rb'
|
||||
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IndentationWidth, EnforcedStyle.
|
||||
# SupportedStyles: spaces, tabs
|
||||
Layout/IndentationStyle:
|
||||
Exclude:
|
||||
- 'db/migrate/010_user_password_reset.rb'
|
||||
|
||||
# Offense count: 12
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Width, IgnoredPatterns.
|
||||
Layout/IndentationWidth:
|
||||
Exclude:
|
||||
- 'app/helpers/admin/configs_helper.rb'
|
||||
- 'app/helpers/group_orders_helper.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'db/migrate/003_create_suppliers.rb'
|
||||
- 'db/migrate/007_create_article_prices.rb'
|
||||
- 'db/migrate/008_create_orders.rb'
|
||||
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
||||
- 'lib/tasks/multicoops.rake'
|
||||
- 'spec/api/v1/user/group_order_articles_spec.rb'
|
||||
- 'spec/spec_helper.rb'
|
||||
|
||||
# Offense count: 39
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
||||
Layout/LeadingCommentSpace:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
Layout/LeadingEmptyLines:
|
||||
Exclude:
|
||||
- 'db/migrate/20090120184410_road_to_version_three.rb'
|
||||
- 'db/seeds/seed_helper.rb'
|
||||
- 'lib/order_txt.rb'
|
||||
- 'spec/support/integration.rb'
|
||||
- 'spec/support/session_helper.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: symmetrical, new_line, same_line
|
||||
Layout/MultilineMethodCallBraceLayout:
|
||||
Exclude:
|
||||
- 'app/helpers/stockit_helper.rb'
|
||||
|
||||
# Offense count: 42
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/stockit_controller.rb'
|
||||
- 'app/models/order.rb'
|
||||
- 'app/models/ordergroup.rb'
|
||||
- 'app/models/stock_article.rb'
|
||||
- 'app/models/task.rb'
|
||||
- 'lib/foodsoft/expansion_variables.rb'
|
||||
- 'lib/order_pdf.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/group_orders_controller.rb'
|
||||
- 'plugins/current_orders/app/controllers/current_orders/ordergroups_controller.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
- 'spec/api/v1/user/group_order_articles_spec.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: aligned, indented
|
||||
Layout/MultilineOperationIndentation:
|
||||
Exclude:
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'app/inputs/date_picker_time_input.rb'
|
||||
- 'app/models/ordergroup.rb'
|
||||
- 'app/models/task.rb'
|
||||
- 'lib/apple_bar.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Layout/RescueEnsureAlignment:
|
||||
Exclude:
|
||||
- 'app/controllers/suppliers_controller.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceAfterColon:
|
||||
Exclude:
|
||||
- 'app/controllers/styles_controller.rb'
|
||||
- 'spec/integration/articles_spec.rb'
|
||||
- 'spec/integration/balancing_spec.rb'
|
||||
- 'spec/integration/order_spec.rb'
|
||||
- 'spec/integration/receive_spec.rb'
|
||||
- 'spec/integration/supplier_spec.rb'
|
||||
- 'spec/models/order_article_spec.rb'
|
||||
- 'spec/models/ordergroup_spec.rb'
|
||||
|
||||
# Offense count: 110
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceAfterComma:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 8
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleInsidePipes.
|
||||
# SupportedStylesInsidePipes: space, no_space
|
||||
Layout/SpaceAroundBlockParameters:
|
||||
Exclude:
|
||||
- 'app/models/group_order_article.rb'
|
||||
- 'db/migrate/008_create_orders.rb'
|
||||
|
||||
# Offense count: 50
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: space, no_space
|
||||
Layout/SpaceAroundEqualsInParameterDefault:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 109
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||
# SupportedStylesForExponentOperator: space, no_space
|
||||
Layout/SpaceAroundOperators:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 73
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||
# SupportedStyles: space, no_space
|
||||
# SupportedStylesForEmptyBraces: space, no_space
|
||||
Layout/SpaceBeforeBlockBraces:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceBeforeComma:
|
||||
Exclude:
|
||||
- 'db/migrate/016_add_shared_lists_connection.rb'
|
||||
- 'lib/render_pdf.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceBeforeComment:
|
||||
Exclude:
|
||||
- 'plugins/wiki/lib/foodsoft_wiki/wiki_parser.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment.
|
||||
Layout/SpaceBeforeFirstArg:
|
||||
Exclude:
|
||||
- 'app/controllers/application_controller.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: require_no_space, require_space
|
||||
Layout/SpaceInLambdaLiteral:
|
||||
Exclude:
|
||||
- 'plugins/messages/app/models/message.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
||||
# SupportedStyles: space, no_space, compact
|
||||
# SupportedStylesForEmptyBrackets: space, no_space
|
||||
Layout/SpaceInsideArrayLiteralBrackets:
|
||||
Exclude:
|
||||
- 'app/helpers/orders_helper.rb'
|
||||
- 'config/application.rb'
|
||||
- 'config/environments/production.rb'
|
||||
- 'db/migrate/20130718183100_create_settings.rb'
|
||||
|
||||
# Offense count: 148
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
||||
# SupportedStyles: space, no_space
|
||||
# SupportedStylesForEmptyBraces: space, no_space
|
||||
Layout/SpaceInsideBlockBraces:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 374
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||
# SupportedStyles: space, no_space, compact
|
||||
# SupportedStylesForEmptyBraces: space, no_space
|
||||
Layout/SpaceInsideHashLiteralBraces:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: space, no_space
|
||||
Layout/SpaceInsideParens:
|
||||
Exclude:
|
||||
- 'app/helpers/group_orders_helper.rb'
|
||||
- 'db/migrate/006_create_articles.rb'
|
||||
- 'spec/api/v1/user/group_order_articles_spec.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceInsidePercentLiteralDelimiters:
|
||||
Exclude:
|
||||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
||||
# SupportedStyles: space, no_space
|
||||
# SupportedStylesForEmptyBrackets: space, no_space
|
||||
Layout/SpaceInsideReferenceBrackets:
|
||||
Exclude:
|
||||
- 'lib/bank_account_information_importer.rb'
|
||||
- 'lib/foodsoft_config.rb'
|
||||
- 'spec/api/v1/user/ordergroup_spec.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: final_newline, final_blank_line
|
||||
Layout/TrailingEmptyLines:
|
||||
Exclude:
|
||||
- 'app/models/ordergroup.rb'
|
||||
- 'config/initializers/bullet.rb'
|
||||
- 'config/initializers/new_rails_defaults.rb'
|
||||
- 'db/migrate/20130718183101_migrate_user_settings.rb'
|
||||
- 'lib/apple_bar.rb'
|
||||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
- 'spec/support/faker.rb'
|
||||
|
||||
# Offense count: 111
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowInHeredoc.
|
||||
Layout/TrailingWhitespace:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 8
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
Exclude:
|
||||
|
|
@ -529,13 +44,12 @@ Lint/AmbiguousOperator:
|
|||
- 'app/mailers/mailer.rb'
|
||||
- 'spec/models/order_article_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Lint/AmbiguousRegexpLiteral:
|
||||
Exclude:
|
||||
- 'app/models/article_category.rb'
|
||||
- 'lib/foodsoft/expansion_variables.rb'
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 40
|
||||
# Configuration parameters: AllowSafeAssignment.
|
||||
|
|
@ -626,7 +140,7 @@ Lint/ParenthesesAsGroupedExpression:
|
|||
- 'spec/lib/token_verifier_spec.rb'
|
||||
- 'spec/models/order_article_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Offense count: 1
|
||||
Lint/ReturnInVoidContext:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
|
@ -721,12 +235,11 @@ Lint/UnusedMethodArgument:
|
|||
- 'lib/render_pdf.rb'
|
||||
- 'plugins/wiki/lib/foodsoft_wiki/mailer.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
||||
Lint/UselessAccessModifier:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
- 'lib/token_verifier.rb'
|
||||
- 'plugins/messages/app/models/messagegroup.rb'
|
||||
|
||||
|
|
@ -746,6 +259,12 @@ Lint/UselessAssignment:
|
|||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
- 'spec/lib/foodsoft_config_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
||||
Lint/Void:
|
||||
Exclude:
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 158
|
||||
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
||||
Metrics/AbcSize:
|
||||
|
|
@ -1082,7 +601,7 @@ RSpec/MultipleMemoizedHelpers:
|
|||
RSpec/NestedGroups:
|
||||
Max: 6
|
||||
|
||||
# Offense count: 32
|
||||
# Offense count: 31
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: not_to, to_not
|
||||
|
|
@ -1092,7 +611,6 @@ RSpec/NotToNot:
|
|||
- 'spec/api/v1/user/group_order_articles_spec.rb'
|
||||
- 'spec/integration/balancing_spec.rb'
|
||||
- 'spec/integration/login_spec.rb'
|
||||
- 'spec/integration/order_spec.rb'
|
||||
- 'spec/integration/receive_spec.rb'
|
||||
- 'spec/integration/session_spec.rb'
|
||||
- 'spec/lib/token_verifier_spec.rb'
|
||||
|
|
@ -1520,14 +1038,13 @@ Security/YAMLLoad:
|
|||
- 'lib/foodsoft_config.rb'
|
||||
- 'spec/api/v1/swagger_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: prefer_alias, prefer_alias_method
|
||||
Style/Alias:
|
||||
Exclude:
|
||||
- 'config/initializers/session_store.rb'
|
||||
- 'lib/foodsoft_config.rb'
|
||||
- 'plugins/discourse/lib/foodsoft_discourse/redirect_to_login.rb'
|
||||
- 'plugins/printer/lib/foodsoft_printer/order_printer_jobs.rb'
|
||||
|
||||
|
|
@ -1685,7 +1202,7 @@ Style/DefWithParentheses:
|
|||
Exclude:
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 306
|
||||
# Offense count: 307
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
|
|
@ -1735,11 +1252,6 @@ Style/EmptyMethod:
|
|||
- 'db/migrate/20140318173000_delete_empty_group_order_articles.rb'
|
||||
- 'lib/bank_account_connector.rb'
|
||||
|
||||
# Offense count: 40
|
||||
# Cop supports --auto-correct.
|
||||
Style/Encoding:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 21
|
||||
# Cop supports --auto-correct.
|
||||
Style/ExpandPathArguments:
|
||||
|
|
@ -1809,7 +1321,7 @@ Style/GlobalStdStream:
|
|||
- 'lib/tasks/foodsoft.rake'
|
||||
- 'lib/tasks/foodsoft_setup.rake'
|
||||
|
||||
# Offense count: 63
|
||||
# Offense count: 62
|
||||
# Configuration parameters: MinBodyLength.
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
|
|
@ -1822,7 +1334,7 @@ Style/HashAsLastArrayItem:
|
|||
Exclude:
|
||||
- 'app/models/order.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowSplatArgument.
|
||||
Style/HashConversion:
|
||||
|
|
@ -1831,7 +1343,6 @@ Style/HashConversion:
|
|||
- 'app/models/article.rb'
|
||||
- 'app/models/order.rb'
|
||||
- 'lib/bank_account_information_importer.rb'
|
||||
- 'lib/foodsoft_config.rb'
|
||||
- 'plugins/wiki/app/controllers/pages_controller.rb'
|
||||
- 'spec/api/v1/user/ordergroup_spec.rb'
|
||||
|
||||
|
|
@ -2201,7 +1712,7 @@ Style/RedundantRegexpEscape:
|
|||
- 'plugins/documents/app/controllers/documents_controller.rb'
|
||||
- 'plugins/wiki/app/models/page.rb'
|
||||
|
||||
# Offense count: 18
|
||||
# Offense count: 15
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowMultipleReturnValues.
|
||||
Style/RedundantReturn:
|
||||
|
|
@ -2216,7 +1727,6 @@ Style/RedundantReturn:
|
|||
- 'app/models/periodic_task_group.rb'
|
||||
- 'app/models/supplier.rb'
|
||||
- 'lib/bank_transaction_reference.rb'
|
||||
- 'lib/foodsoft_config.rb'
|
||||
|
||||
# Offense count: 85
|
||||
# Cop supports --auto-correct.
|
||||
|
|
@ -2435,9 +1945,9 @@ Style/ZeroLengthPredicate:
|
|||
- 'plugins/current_orders/app/documents/multiple_orders_by_articles.rb'
|
||||
- 'plugins/current_orders/app/documents/multiple_orders_by_groups.rb'
|
||||
|
||||
# Offense count: 436
|
||||
# Offense count: 447
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||
# URISchemes: http, https
|
||||
Layout/LineLength:
|
||||
Max: 414
|
||||
Max: 420
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue