Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging master into 2-0-stable (one month of commits in master) #2639

Merged
merged 163 commits into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
8ecc786
Include bug severity in issue template
mkllnk Jul 30, 2018
915531a
Add section about documentation updates
mkllnk Jul 30, 2018
c4b23b6
Update Spree's fork revision in Gemfile
sauloperez Jul 27, 2018
d726b0a
Merge pull request #2509 from coopdevs/update-spree-fork-version
mkllnk Jul 30, 2018
fb93351
Show fee breakdown in line items panel if present
oeoeaio May 30, 2018
cead905
Use estimated subscription total for proxy orders if order has not be…
oeoeaio May 30, 2018
c48889f
Remove duplicate translation key
mkllnk Aug 3, 2018
d5fdda1
Fix typo translating Enterprises
mkllnk Aug 3, 2018
c839702
Streamline Product Import UX flow
Matt-Yorkley Jul 26, 2018
b736560
Inform about inaccurate subscription totals
mkllnk Aug 3, 2018
f0be8ff
Style proxy order serializer
mkllnk Aug 3, 2018
72036a4
Move admin routes from main file
kristinalim Aug 6, 2018
4d34693
Move Spree route customizations from main file
kristinalim Aug 6, 2018
b67c8cc
Improve requiring of additional routes
kristinalim Aug 6, 2018
a494fb2
Disable rubocop cop Rails/ActiveRecordAliases
kristinalim Aug 6, 2018
d77a943
Update .rubocop_todo.yml
kristinalim Aug 6, 2018
32846af
Merge pull request #2517 from kristinalim/cleanup-disable_rubocop_cop…
mkllnk Aug 6, 2018
30fad22
Remove code duplication in spec helper
mkllnk Aug 6, 2018
0edf393
Use quick login to speed up spec
mkllnk Aug 7, 2018
edb3221
Use quick login to speed up product edit spec
mkllnk Aug 7, 2018
126f312
Make spec more robust not relying on order
mkllnk Aug 7, 2018
0b39054
Speed up relationships spec
mkllnk Aug 7, 2018
e4ebeb8
Remove dead spec code
mkllnk Aug 7, 2018
f0da823
Speed up enterprise user spec
mkllnk Aug 7, 2018
121bc51
Speed up admin enterprises spec
mkllnk Aug 7, 2018
f4cd5a7
Speed up admin enterprise spec
mkllnk Aug 7, 2018
71a381e
Speed up order cycles spec
mkllnk Aug 7, 2018
9023b16
Speed up admin orders spec
mkllnk Aug 7, 2018
eb55050
Speed up admin payment method spec
mkllnk Aug 7, 2018
aa677a1
Speed up admin products spec
mkllnk Aug 7, 2018
819a173
Speed up reports spec
mkllnk Aug 7, 2018
54552f2
Speed up admin schedules spec
mkllnk Aug 7, 2018
b628ead
Speed up shipping methods spec
mkllnk Aug 7, 2018
9aff9fb
Remove empty spec
mkllnk Aug 7, 2018
03468ef
Merge pull request #2346 from oeoeaio/subs-totals
mkllnk Aug 7, 2018
f93ed0d
Merge pull request #2519 from mkllnk/more-efficient-login-in-specs
mkllnk Aug 9, 2018
33f6dc2
Merge pull request #2516 from kristinalim/cleanup-move_admin_and_spre…
mkllnk Aug 9, 2018
27ddb71
Remove unused scope `Spree::Variant.in_stock`
mkllnk Jun 27, 2018
289d0b9
Style ScopeVariantToHub
mkllnk Jun 28, 2018
b84e524
Prepare inventory report for Spree upgrade
mkllnk Jun 28, 2018
9dcbd90
Override `in_stock?` to prepare for Spree 2.0
mkllnk Jun 28, 2018
b91019a
Split translation key for enterprise manage button
kristinalim Jul 20, 2018
0b4fcf8
Change enterprise "Manage" button to "Settings"
kristinalim Jul 20, 2018
295604b
Change heading for edit enterprise page
kristinalim Jul 20, 2018
17978f5
Rename edit link in admin enterprise index
kristinalim Aug 3, 2018
6251c72
Add divider between admin enterprise index actions
kristinalim Aug 3, 2018
3b1bd53
Added basic integration with Matomo
luisramos0 Jul 21, 2018
6c306aa
Updating translations for config/locales/fr.yml
Transifex-Openfoodnetwork Aug 10, 2018
0b9061d
removed Cart route, controller, model and specs: dead code
luisramos0 Aug 11, 2018
910c1d4
Merge pull request #2536 from openfoodfoundation/transifex
mkllnk Aug 13, 2018
4f751eb
Updating translations for config/locales/nb.yml
Transifex-Openfoodnetwork Aug 13, 2018
362ed8e
Changed modals max height from 120% to 100% so that the content in th…
luisramos0 Jun 24, 2018
08c5d8f
Added new cookies policy page and added a link to it in the footer (c…
luisramos0 Jun 24, 2018
92f9cbd
Added new cookies banner (with link to cookie policy page and the acc…
luisramos0 Jun 28, 2018
d920c32
Added cookies banner toggle and privacy URL to a new section called L…
luisramos0 Jun 29, 2018
ca35c59
Moved the footer TOS URL from the content settings to the new section…
luisramos0 Jul 20, 2018
4b64369
Added GA and Matomo toggle in Legal Settings in the global settings i…
luisramos0 Jul 21, 2018
bff5581
Added functional tests for cookies related features: cookies policy p…
luisramos0 Aug 4, 2018
1c20967
Added a button to close the cookies policy page at the bottom of the …
luisramos0 Aug 4, 2018
ccd5147
Added angular templates route and controller to serve angular templat…
luisramos0 Aug 13, 2018
8681618
Fixed CodeClimate scss feedback on cookies banner and policy page css
luisramos0 Aug 13, 2018
c986253
Import required colour definitions in SCSS
mkllnk Aug 13, 2018
d76112e
Updating translations for config/locales/de_DE.yml
Transifex-Openfoodnetwork Aug 14, 2018
91e57cb
Removed Cart table, its dependency on spree orders table and removed …
luisramos0 Aug 15, 2018
c14e7ea
Allow bulk update of order cycle name
kristinalim Aug 15, 2018
28b1fc0
Remove empty SKU values if empty
Matt-Yorkley Aug 16, 2018
7dccbb5
Enable embedded shopping spec
mkllnk Aug 17, 2018
e0d1301
Merge pull request #2543 from openfoodfoundation/transifex
mkllnk Aug 17, 2018
5687937
Added httponly to cookieConsent cookie, this makes this cookie secure…
luisramos0 Aug 17, 2018
fbbbc93
Class descriptions for Product Import
Matt-Yorkley Aug 18, 2018
8272aeb
Add Stripe form and duplicate Stripe Elements in backend Angular app
stveep Jun 17, 2018
a848b91
Change name to AdminStripeElements to avoid confusion; add status bar…
stveep Jun 17, 2018
f9a221e
add to manifest, tidy up requirements, hide postcode similar to frontend
stveep Jun 24, 2018
ff7dc81
Add translations for messages and remove old placeholder translation
stveep Jun 29, 2018
b3da704
Should not hide post code on admin side as no billing address otherwise
stveep Jul 1, 2018
c0f41b6
PR changes - erb to haml, don't update en_GB translations
stveep Jul 21, 2018
286101c
PR changes: switch syntax for mapCC, remove ng-init
stveep Jul 29, 2018
8c6b8d5
Move injectors outside Stripe partial to satisfy dependencies
stveep Aug 19, 2018
17f2ba4
Add label for card field
stveep Aug 19, 2018
61f6990
fixed UX problem in the state selector in customers admin
luisramos0 Jun 1, 2018
653804d
Make cookies test more stable
luisramos0 Aug 17, 2018
39b3a96
Updating translations for config/locales/fr.yml
Transifex-Openfoodnetwork Aug 21, 2018
1bbc615
Updating translations for config/locales/fr_CA.yml
Transifex-Openfoodnetwork Aug 21, 2018
4417a8f
Merge pull request #2539 from luisramos0/delete_dead_cart
mkllnk Aug 22, 2018
ade005b
Bump fuubar from 2.2.0 to 2.3.2
dependabot-support Aug 22, 2018
8fb5625
Bump daemons from 1.2.2 to 1.2.6
dependabot-support Aug 22, 2018
a747561
Switch feature matcher style from `to_not have` to `to have_no`
greysteil Aug 22, 2018
c5b426f
Bump rack-livereload from 0.3.16 to 0.3.17
dependabot-support Aug 22, 2018
f35e24d
Bump atomic from 1.1.99 to 1.1.101
dependabot-support Aug 22, 2018
b459ed7
Bump webmock from 1.8.11 to 3.4.2
dependabot-support Aug 22, 2018
468c29b
Use new basic auth stub style
greysteil Aug 22, 2018
92e9392
Merge pull request #2561 from mkllnk/2233-enable-embedded-shopping-spec
mkllnk Aug 22, 2018
7d40e96
Merge pull request #2563 from openfoodfoundation/transifex
mkllnk Aug 23, 2018
bc192da
Merge pull request #2564 from openfoodfoundation/dependabot/bundler/f…
mkllnk Aug 23, 2018
5dd0aed
Merge pull request #2569 from openfoodfoundation/dependabot/bundler/r…
mkllnk Aug 23, 2018
0c35d1b
Merge pull request #2570 from openfoodfoundation/dependabot/bundler/a…
mkllnk Aug 23, 2018
00b8b0a
Sleep to avoid race conditions in cookie spec
mkllnk Aug 23, 2018
0312bf9
Merge pull request #2556 from luisramos0/cookies_failing_tests
mkllnk Aug 23, 2018
6caa361
Moved Spree::OrderController.populate to new CartController.
luisramos0 Aug 12, 2018
05bfc09
/controllers/spree/order_populator_decorator (with a class_eval) is n…
luisramos0 Aug 12, 2018
c7b202f
Fixed CodeClimate warnings on services/cart_services.rb
luisramos0 Aug 12, 2018
ec069b1
Converted specs to latest rspec syntax
luisramos0 Aug 13, 2018
9102975
Removed unnecessary currency from CartService constructor, using orde…
luisramos0 Aug 16, 2018
2e4a8d6
Bump angular-rails-templates from 0.2.0 to 0.3.0
dependabot-support Aug 23, 2018
358bb30
Bump stripe from 3.3.1 to 3.3.2
dependabot-support Aug 23, 2018
c4c4547
Merge pull request #2572 from greysteil/bump-webmock
mkllnk Aug 23, 2018
871e423
Merge pull request #2548 from kristinalim/feature-bulk_update_of_orde…
mkllnk Aug 24, 2018
b158c92
Configure mail TLS or SSL connection when seeding
mkllnk Aug 24, 2018
bf55190
Merge pull request #2546 from Matt-Yorkley/pi/sku_validation
mkllnk Aug 24, 2018
a37931a
Merge pull request #2542 from luisramos0/add_to_cart
mkllnk Aug 24, 2018
616b42a
Merge pull request #2555 from luisramos0/cookie_http_only
mkllnk Aug 24, 2018
666fbf5
Validate enterprise.is_primary_producer?
Matt-Yorkley Aug 16, 2018
2b057a2
Add primary_producer to index to reduce queries
Matt-Yorkley Aug 16, 2018
717f626
Refactor enterprise validation
Matt-Yorkley Aug 16, 2018
8eee8f9
Merge pull request #2557 from Matt-Yorkley/pi/class_descriptions
mkllnk Aug 24, 2018
44faa11
Merge pull request #2583 from mkllnk/seed-mail-connection-type
mkllnk Aug 26, 2018
58cbe49
Remove gem rack-livereload
mkllnk Aug 27, 2018
67802cd
Bump compass-rails from 2.0.4 to 3.1.0
dependabot-support Aug 27, 2018
61097c3
Bump immigrant from 0.1.6 to 0.3.6
dependabot-support Aug 27, 2018
c39ac26
Merge pull request #2580 from openfoodfoundation/dependabot/bundler/s…
mkllnk Aug 27, 2018
562a793
Bump active_model_serializer to 0.8.4
greysteil Aug 24, 2018
b4bea59
Merge pull request #2567 from greysteil/better-feater-matchers
mkllnk Aug 28, 2018
79f50e0
Merge pull request #2353 from luisramos0/customers_admin_country_state
mkllnk Aug 28, 2018
3d8c4c6
Bump poltergeist from 1.16.0 to 1.18.1
dependabot-support Aug 28, 2018
8dc10ff
Added new test to cookies spec to cover bug on cookies banner and fix…
luisramos0 Aug 28, 2018
53e7fcb
Imcreased cookies banner font size for med/large screens to improve r…
luisramos0 Aug 29, 2018
02b968b
Cookies policy page table has a single column now. Also made small up…
luisramos0 Aug 29, 2018
fac29eb
Merge pull request #2595 from openfoodfoundation/dependabot/bundler/i…
mkllnk Aug 29, 2018
1c61539
Merge pull request #2585 from greysteil/bump-ams
mkllnk Aug 30, 2018
8a97088
Merge pull request #2606 from openfoodfoundation/dependabot/bundler/p…
mkllnk Aug 30, 2018
664db1b
Bump pg from 0.13.2 to 0.21.0
dependabot-support Aug 30, 2018
174bc15
Merge pull request #2607 from openfoodfoundation/dependabot/bundler/p…
mkllnk Aug 30, 2018
0174b84
Remove old deactivated code
mkllnk Aug 17, 2018
a789aeb
Speed up enterprise fee spec
mkllnk Aug 17, 2018
bc1e8bf
Convert specs to RSpec 3.7.0 syntax with Transpec
mkllnk Aug 17, 2018
297ea83
Further style spec
mkllnk Aug 17, 2018
429bf13
Test creating a fee, not updating
mkllnk Aug 17, 2018
d1f7828
Fix pending spec
mkllnk Aug 17, 2018
1b88ede
Merge pull request #2420 from stveep/stripe-admin-2
mkllnk Aug 30, 2018
b4bfa3f
Merge pull request #2591 from mkllnk/remove-rack-livereload
sauloperez Aug 30, 2018
287b21b
Bump foreigner from 1.6.1 to 1.7.4
dependabot-support Aug 30, 2018
508643b
Bump eventmachine from 1.2.3 to 1.2.7
dependabot-support Aug 30, 2018
e573a3f
The main menu is now translatable and configurable using Content conf…
luisramos0 Aug 8, 2018
1b4e0cd
Made the menu config default values more user friendly
luisramos0 Aug 15, 2018
13b9eca
Fix font issue in mobile menu
mkllnk Aug 31, 2018
c30e290
Merge pull request #2594 from openfoodfoundation/dependabot/bundler/c…
mkllnk Aug 31, 2018
a9c8c03
Merge pull request #2566 from openfoodfoundation/dependabot/bundler/d…
mkllnk Aug 31, 2018
dc40374
Test order links in subscription placement emails
kristinalim Aug 29, 2018
ad8b120
Extract format for order cycle closing in emails
kristinalim Aug 29, 2018
f8244a4
Custom subscription placement email if non-user
kristinalim Aug 29, 2018
5f2c3a1
Remove order link in non-user failed payment email
kristinalim Aug 29, 2018
f844236
Remove order link in non-user order cancellation email
kristinalim Aug 29, 2018
59f8dd4
Improved cookies spec by keeping global config values as they were be…
luisramos0 Sep 1, 2018
5125777
Removed old files that were used with, now unsuported, heroku
luisramos0 Sep 2, 2018
11ab875
Merge pull request #2623 from openfoodfoundation/dependabot/bundler/e…
mkllnk Sep 3, 2018
42afd42
Merge pull request #2620 from openfoodfoundation/dependabot/bundler/f…
mkllnk Sep 3, 2018
3fadd06
Merge pull request #2613 from luisramos0/cookies_better_policy_page
mkllnk Sep 3, 2018
1b26440
Merge pull request #2624 from kristinalim/fix-no_order_link_in_subscr…
mkllnk Sep 3, 2018
129e2c9
Merge pull request #2579 from openfoodfoundation/dependabot/bundler/a…
mkllnk Sep 3, 2018
903d700
Merge pull request #2636 from luisramos0/heroku_dead_code
sauloperez Sep 3, 2018
7dbbc3e
Merge pull request #2610 from luisramos0/cookies_banner_bug
sauloperez Sep 3, 2018
0d2fa3d
Merge pull request #2611 from luisramos0/cookies_banner_font_size
mkllnk Sep 4, 2018
89d51d7
Merge branch 'master' into 2-0-stable-sept
luisramos0 Sep 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins:
channel: "rubocop-0-55"
scss-lint:
enabled: true
checks:
ImportantRule:
enabled: false
VendorPrefix:
enabled: false
duplication:
enabled: true
exclude_patterns:
Expand Down
52 changes: 38 additions & 14 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<!--- If what you want to file is not a bug, please use the [Feature
template](https://github.com/openfoodfoundation/openfoodnetwork/wiki/Feature-template)
instead -->
<!-- Provide a general summary of the issue in the Title above.

<!--- Provide a general summary of the issue in the Title above -->
If your issue is not a bug, please use the Feature template instead:
https://github.com/openfoodfoundation/openfoodnetwork/wiki/Feature-template

-->
## Description
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->
<!-- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->



## Expected Behavior
<!--- Tell us what should happen -->
<!-- Tell us what should happen -->



## Actual Behavior
<!--- Tell us what happens instead -->
<!-- Tell us what happens instead -->



## Steps to Reproduce
<!--- Provide an unambiguous set of steps to reproduce this bug -->
<!--- Include code to reproduce, if relevant -->
<!-- Provide an unambiguous set of steps to reproduce this bug -->
<!-- Include code to reproduce if relevant -->

1.
2.
3.
Expand All @@ -25,18 +32,35 @@ instead -->
<!-- Provide a screenshot or brief animated gif reproducing the bug. Linux users can use
[Peek](https://github.com/phw/peek#ubuntu) while Mac users can use [Recordit](http://recordit.co/) -->



## Context
<!--- How has this bug affected you? What were you trying to accomplish? -->
<!-- How has this bug affected you? What were you trying to accomplish? -->



## Severity
<!--- Use the [Bug severity
guideline](https://github.com/openfoodfoundation/openfoodnetwork/wiki/Bug-severity) to assign one to this bug -->
<!-- Assign a label and explain the impact.

bug-s1: a critical feature is broken: checkout, payments, signup, login
bug-s2: a non-critical feature is broken, no workaround
bug-s3: a feature is broken but there is a workaround
bug-s4: it's annoying, but you can use it
bug-s5: we can live with it, only a few users impacted

https://github.com/openfoodfoundation/openfoodnetwork/wiki/Bug-severity
-->



## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
<!-- Include relevant details about the environment you experienced the bug in -->

* Version used:
* Browser name and version:
* Operating System and version (desktop or mobile):

## Possible Fix
<!--- Not obligatory, but suggest a fix or reason for the bug -->
<!-- Not obligatory, but suggest a fix or reason for the bug -->


38 changes: 24 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,46 @@

Closes #[the issue number this PR is related to]

[Explain why is this change needed and the solution you propose. Provide
context for others to understand it]
<!-- Explain why this change is needed and the solution you propose.
Provide context for others to understand it. -->



#### What should we test?
<!-- List which features should be tested and how. -->

[List which features should be tested and how]

[Should we test on mobile?]

#### Release notes
<!-- Write a line or two to be included in the release notes.
Everything is worth mentioning, because you did it for a reason. -->

[In case this should be present in the release notes, please write them or
remove this section otherwise]

[To streamline the release process, please designate your PR with ONE of the following
categories, based on the specification from keepachangelog.com (and delete the others):]

<!-- Please assign one category to your PR and delete the others.
The categories are based on https://keepachangelog.com/en/1.0.0/. -->

Changelog Category: Added | Changed | Deprecated | Removed | Fixed | Security

#### How is this related to the Spree upgrade?
<!-- Any known conflicts with the Spree Upgrade?
Explain them or remove this section. -->


[Any known conflicts with the Spree Upgrade? explain them or remove this section
otherwise]

#### Discourse thread
<!-- Is there a discussion about this in Discourse?
Add the link or remove this section. -->


[Is there a discussion about this in Discourse? add the link if so or remove
this section otherwise]

#### Dependencies
<!-- Does this PR depend on another one?
Add the link or remove this section. -->



#### Documentation updates
<!-- Are their any wiki pages that need updating after merging this PR?
List them here or remove this section. -->

[Does this PR depend on another one? add the link of so or remove this section
otherwise]
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Rails/DynamicFindBy:
Rails/FindBy:
Enabled: false

# Same as above, #update! is not available until Rails 4
Rails/ActiveRecordAliases:
Enabled: false

# This should be the programmer's discretion, perhaps we should review all of
# the uses of it an make specific exceptions though.
Rails/SkipsModelValidations:
Expand Down
98 changes: 9 additions & 89 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 1400`
# on 2018-07-20 18:57:26 +0200 using RuboCop version 0.55.0.
# on 2018-08-06 18:22:59 +0800 using RuboCop version 0.55.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 36
# Offense count: 35
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Expand Down Expand Up @@ -191,7 +191,6 @@ Layout/EmptyLines:
- 'lib/open_food_network/reports/bulk_coop_report.rb'
- 'lib/open_food_network/sales_tax_report.rb'
- 'lib/open_food_network/scope_product_to_hub.rb'
- 'lib/open_food_network/scope_variant_to_hub.rb'
- 'lib/open_food_network/xero_invoices_report.rb'
- 'lib/spree/core/controller_helpers/order_decorator.rb'
- 'lib/tasks/cache.rake'
Expand Down Expand Up @@ -263,7 +262,7 @@ Layout/EmptyLinesAroundArguments:
Exclude:
- 'spec/archive/features/consumer/checkout_spec.rb'

# Offense count: 65
# Offense count: 64
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Expand Down Expand Up @@ -364,7 +363,7 @@ Layout/EndAlignment:
- 'app/serializers/api/admin/for_order_cycle/supplied_product_serializer.rb'
- 'app/serializers/api/admin/order_cycle_serializer.rb'

# Offense count: 49
# Offense count: 48
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Expand All @@ -387,7 +386,6 @@ Layout/ExtraSpacing:
- 'spec/features/admin/bulk_order_management_spec.rb'
- 'spec/features/admin/bulk_product_update_spec.rb'
- 'spec/features/admin/orders_spec.rb'
- 'spec/features/admin/product_import_spec.rb'
- 'spec/features/admin/reports_spec.rb'
- 'spec/features/consumer/groups_spec.rb'
- 'spec/features/consumer/shopping/shopping_spec.rb'
Expand Down Expand Up @@ -649,7 +647,6 @@ Layout/SpaceAroundEqualsInParameterDefault:
- 'lib/open_food_network/enterprise_issue_validator.rb'
- 'lib/open_food_network/order_cycle_form_applicator.rb'
- 'lib/open_food_network/permissions.rb'
- 'lib/open_food_network/scope_variant_to_hub.rb'
- 'lib/open_food_network/tag_rule_applicator.rb'
- 'lib/open_food_network/xero_invoices_report.rb'
- 'lib/spree/money_decorator.rb'
Expand Down Expand Up @@ -794,7 +791,7 @@ Layout/SpaceInsideBlockBraces:
- 'spec/spec_helper.rb'
- 'spec/support/cancan_helper.rb'

# Offense count: 798
# Offense count: 772
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
Expand Down Expand Up @@ -976,11 +973,6 @@ Lint/AmbiguousOperator:
Exclude:
- 'spec/controllers/spree/admin/payments_controller_spec.rb'

# Offense count: 2
Lint/BooleanSymbol:
Exclude:
- 'spec/features/consumer/shopping/embedded_groups_spec.rb'

# Offense count: 4
Lint/DuplicateMethods:
Exclude:
Expand Down Expand Up @@ -1030,7 +1022,7 @@ Lint/ShadowingOuterLocalVariable:
- 'app/models/spree/product_set.rb'
- 'spec/models/model_set_spec.rb'

# Offense count: 7
# Offense count: 6
# Cop supports --auto-correct.
Lint/StringConversionInInterpolation:
Exclude:
Expand All @@ -1040,7 +1032,6 @@ Lint/StringConversionInInterpolation:
- 'app/helpers/injection_helper.rb'
- 'app/helpers/spree/products_helper_decorator.rb'
- 'app/serializers/api/admin/tag_rule_serializer.rb'
- 'spec/features/admin/product_import_spec.rb'

# Offense count: 2
Lint/UnderscorePrefixedVariableName:
Expand Down Expand Up @@ -1171,7 +1162,7 @@ Lint/Void:
- 'spec/serializers/enterprise_serializer_spec.rb'
- 'spec/support/request/web_helper.rb'

# Offense count: 998
# Offense count: 993
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 776
Expand Down Expand Up @@ -1326,76 +1317,6 @@ Performance/UnneededSort:
- 'app/models/spree/product_decorator.rb'
- 'spec/features/admin/order_cycles_spec.rb'

# Offense count: 206
# Cop supports --auto-correct.
Rails/ActiveRecordAliases:
Exclude:
- 'app/controllers/admin/bulk_line_items_controller.rb'
- 'app/controllers/admin/enterprises_controller.rb'
- 'app/controllers/admin/subscriptions_controller.rb'
- 'app/controllers/api/customers_controller.rb'
- 'app/controllers/api/enterprises_controller.rb'
- 'app/controllers/api/product_images_controller.rb'
- 'app/controllers/checkout_controller.rb'
- 'app/controllers/spree/admin/line_items_controller_decorator.rb'
- 'app/controllers/spree/credit_cards_controller.rb'
- 'app/controllers/spree/orders_controller_decorator.rb'
- 'app/helpers/i18n_helper.rb'
- 'app/jobs/subscription_placement_job.rb'
- 'app/jobs/update_account_invoices.rb'
- 'app/jobs/update_billable_periods.rb'
- 'app/models/billable_period.rb'
- 'app/models/spree/adjustment_decorator.rb'
- 'app/models/spree/line_item_decorator.rb'
- 'app/models/spree/order_decorator.rb'
- 'app/models/spree/product_set.rb'
- 'app/services/create_mail_method.rb'
- 'app/services/line_item_syncer.rb'
- 'app/services/order_factory.rb'
- 'app/services/order_syncer.rb'
- 'lib/open_food_network/order_cycle_form_applicator.rb'
- 'lib/open_food_network/subscription_payment_updater.rb'
- 'lib/stripe/profile_storer.rb'
- 'spec/controllers/admin/proxy_orders_controller_spec.rb'
- 'spec/controllers/admin/subscriptions_controller_spec.rb'
- 'spec/controllers/line_items_controller_spec.rb'
- 'spec/controllers/spree/admin/payment_methods_controller_spec.rb'
- 'spec/controllers/spree/orders_controller_spec.rb'
- 'spec/features/admin/bulk_order_management_spec.rb'
- 'spec/features/admin/order_cycles_spec.rb'
- 'spec/features/admin/orders_spec.rb'
- 'spec/features/admin/subscriptions_spec.rb'
- 'spec/features/admin/variants_spec.rb'
- 'spec/features/consumer/account_spec.rb'
- 'spec/features/consumer/registration_spec.rb'
- 'spec/features/consumer/shopping/cart_spec.rb'
- 'spec/features/consumer/shopping/orders_spec.rb'
- 'spec/features/consumer/shopping/shopping_spec.rb'
- 'spec/jobs/subscription_confirm_job_spec.rb'
- 'spec/jobs/subscription_placement_job_spec.rb'
- 'spec/jobs/update_account_invoices_spec.rb'
- 'spec/jobs/update_billable_periods_spec.rb'
- 'spec/lib/open_food_network/products_cache_refreshment_spec.rb'
- 'spec/lib/open_food_network/products_cache_spec.rb'
- 'spec/lib/open_food_network/proxy_order_syncer_spec.rb'
- 'spec/models/customer_spec.rb'
- 'spec/models/enterprise_caching_spec.rb'
- 'spec/models/exchange_spec.rb'
- 'spec/models/order_cycle_spec.rb'
- 'spec/models/producer_property_spec.rb'
- 'spec/models/proxy_order_spec.rb'
- 'spec/models/spree/adjustment_spec.rb'
- 'spec/models/spree/credit_card_spec.rb'
- 'spec/models/spree/line_item_spec.rb'
- 'spec/models/spree/order_spec.rb'
- 'spec/models/spree/product_spec.rb'
- 'spec/models/spree/user_spec.rb'
- 'spec/models/spree/variant_spec.rb'
- 'spec/models/variant_override_spec.rb'
- 'spec/requests/checkout/stripe_connect_spec.rb'
- 'spec/services/order_syncer_spec.rb'
- 'spec/services/subscription_estimator_spec.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Expand Down Expand Up @@ -1951,7 +1872,7 @@ Style/GuardClause:
- 'spec/support/request/distribution_helper.rb'
- 'spec/support/request/shop_workflow.rb'

# Offense count: 970
# Offense count: 968
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Expand Down Expand Up @@ -2080,7 +2001,6 @@ Style/HashSyntax:
- 'spec/features/admin/subscriptions_spec.rb'
- 'spec/features/admin/variant_overrides_spec.rb'
- 'spec/features/consumer/account/cards_spec.rb'
- 'spec/features/consumer/shopping/embedded_groups_spec.rb'
- 'spec/features/consumer/shopping/products_spec.rb'
- 'spec/features/consumer/shopping/shopping_spec.rb'
- 'spec/jobs/subscription_placement_job_spec.rb'
Expand Down Expand Up @@ -2538,7 +2458,7 @@ Style/UnneededPercentQ:
- 'spec/features/consumer/producers_spec.rb'
- 'spec/support/request/web_helper.rb'

# Offense count: 6631
# Offense count: 6607
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Expand Down
Loading