From f9cf07629654355ddd25b5417535d7a5eea33b15 Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Fri, 27 Oct 2023 12:20:13 +0200 Subject: [PATCH] Fix typos --- README.md | 2 +- docs/modules/ROOT/pages/cops_rails.adoc | 2 +- docs/modules/ROOT/pages/usage.adoc | 4 ++-- lib/rubocop/cop/rails/action_filter.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b78f9d52a3..ca42e975a5 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ module YourCoolApp end ``` -It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops. +It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops. `rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead. diff --git a/docs/modules/ROOT/pages/cops_rails.adoc b/docs/modules/ROOT/pages/cops_rails.adoc index c01f0dd3a1..1f96fefac4 100644 --- a/docs/modules/ROOT/pages/cops_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rails.adoc @@ -108,7 +108,7 @@ The cop is configurable and can enforce the use of the older something_filter methods or the newer something_action methods. IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2, -and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0. +and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0. === Examples diff --git a/docs/modules/ROOT/pages/usage.adoc b/docs/modules/ROOT/pages/usage.adoc index 4153623164..7d9f47b47b 100644 --- a/docs/modules/ROOT/pages/usage.adoc +++ b/docs/modules/ROOT/pages/usage.adoc @@ -34,7 +34,7 @@ end == Rails configuration tip If you are using Rails 6.1 or newer, add the following `config.generators.after_generate` setting to -your config/application.rb to apply RuboCop autocorretion to code generated by `bin/rails g`. +your config/application.rb to apply RuboCop autocorrection to code generated by `bin/rails g`. [source,ruby] ---- @@ -50,6 +50,6 @@ module YourCoolApp end ---- -It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops. +It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops. `rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead. diff --git a/lib/rubocop/cop/rails/action_filter.rb b/lib/rubocop/cop/rails/action_filter.rb index c69a6b7fbc..e85830dadd 100644 --- a/lib/rubocop/cop/rails/action_filter.rb +++ b/lib/rubocop/cop/rails/action_filter.rb @@ -9,7 +9,7 @@ module Rails # something_filter methods or the newer something_action methods. # # IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2, - # and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0. + # and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0. # # @example EnforcedStyle: action (default) # # bad