Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
safafa committed Nov 24, 2023
1 parent 305e9ce commit 747aea3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/cops_solidus.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,25 @@ I18n.t('bar', scope: 'spree.admin.city')
### References

* [https://github.com/solidusio/rubocop-solidus/issues/22](https://github.com/solidusio/rubocop-solidus/issues/22)

## Solidus/TaxCategoryDeprecated

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged | Required Solidus Version
--- | --- | --- | --- | --- | ---
Enabled | Yes | No | <<next>> | - | 2.2

This cop finds .tax_category occurrences and suggest using .tax_categories instead.

### Examples

```ruby
# bad
model.tax_category = data

# good
model.tax_categories = [data]
```

### References

* [https://github.com/solidusio/rubocop-solidus/issues/25](https://github.com/solidusio/rubocop-solidus/issues/25)
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ In the following sections, you will find all available cops:
* [Solidus/SpreeIconDeprecated](cops_solidus.md#solidusspreeicondeprecated)
* [Solidus/SpreeRefundCallPerform](cops_solidus.md#solidusspreerefundcallperform)
* [Solidus/SpreeTDeprecated](cops_solidus.md#solidusspreetdeprecated)
* [Solidus/TaxCategoryDeprecated](cops_solidus.md#solidustaxcategorydeprecated)

<!-- END_COP_LIST -->

0 comments on commit 747aea3

Please sign in to comment.