From a527faf6c803de5cd2c8b3f2377f1a52ca824866 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sun, 8 May 2022 18:04:00 +0900 Subject: [PATCH] Use `behavior` instead of `behaviour` Follow up https://github.com/rubocop/rubocop/pull/10602 --- .rubocop.yml | 3 +++ docs/modules/ROOT/pages/cops_performance.adoc | 2 +- legacy-docs/cops_performance.md | 2 +- lib/rubocop/cop/performance/range_include.rb | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f959c48fdb..7d1b26f4bb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -24,6 +24,9 @@ InternalAffairs/UndefinedConfig: Naming/InclusiveLanguage: FlaggedTerms: + behaviour: + Suggestions: + - behavior offence: Suggestions: - offense diff --git a/docs/modules/ROOT/pages/cops_performance.adoc b/docs/modules/ROOT/pages/cops_performance.adoc index 5cb55b82a1..59baffb4bf 100644 --- a/docs/modules/ROOT/pages/cops_performance.adoc +++ b/docs/modules/ROOT/pages/cops_performance.adoc @@ -1268,7 +1268,7 @@ is wanted. === Safety This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?` -are not equivalent behaviour. +are not equivalent behavior. === Examples diff --git a/legacy-docs/cops_performance.md b/legacy-docs/cops_performance.md index e6e4181e47..307ad892e0 100644 --- a/legacy-docs/cops_performance.md +++ b/legacy-docs/cops_performance.md @@ -607,7 +607,7 @@ end points of the `Range`. In a great majority of cases, this is what is wanted. This cop is `Safe: false` by default because `Range#include?` and -`Range#cover?` are not equivalent behaviour. +`Range#cover?` are not equivalent behavior. ### Examples diff --git a/lib/rubocop/cop/performance/range_include.rb b/lib/rubocop/cop/performance/range_include.rb index 8308ac3aa4..8658c81312 100644 --- a/lib/rubocop/cop/performance/range_include.rb +++ b/lib/rubocop/cop/performance/range_include.rb @@ -11,7 +11,7 @@ module Performance # # @safety # This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?` - # are not equivalent behaviour. + # are not equivalent behavior. # # @example # # bad