From c6154c1f07a24ba14114d454766b952a456c8c68 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Tue, 30 Jun 2020 15:07:58 +0900 Subject: [PATCH] Fix typos --- config/default.yml | 4 ++-- docs/modules/ROOT/pages/v1_upgrade_notes.adoc | 2 +- lib/rubocop/cop/base.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/default.yml b/config/default.yml index 8cbfdd14865b..4b3af5b554cb 100644 --- a/config/default.yml +++ b/config/default.yml @@ -181,7 +181,7 @@ Bundler/OrderedGems: VersionChanged: '0.47' TreatCommentsAsGroupSeparators: true # By default, "-" and "_" are ignored for order purposes. - # This can be overriden by setting this parameter to true. + # This can be overridden by setting this parameter to true. ConsiderPunctuation: false Include: - '**/*.gemfile' @@ -204,7 +204,7 @@ Gemspec/OrderedDependencies: VersionAdded: '0.51' TreatCommentsAsGroupSeparators: true # By default, "-" and "_" are ignored for order purposes. - # This can be overriden by setting this parameter to true. + # This can be overridden by setting this parameter to true. ConsiderPunctuation: false Include: - '**/*.gemspec' diff --git a/docs/modules/ROOT/pages/v1_upgrade_notes.adoc b/docs/modules/ROOT/pages/v1_upgrade_notes.adoc index 93cc1a4665a4..0fec5588ce31 100644 --- a/docs/modules/ROOT/pages/v1_upgrade_notes.adoc +++ b/docs/modules/ROOT/pages/v1_upgrade_notes.adoc @@ -148,7 +148,7 @@ This section lists all changes (big or small) to the API. It is meant for mainta _Legacy_: Cops inherit from `Cop::Cop`. -_Current_: Cops inherit from `Cop::Base`. Having a different base class makes the implementation much cleaner and makes it easy to signal which API is being used. `Cop::Cop` inherits from `Cop::Base` and refines some methods for backward compatiblity. +_Current_: Cops inherit from `Cop::Base`. Having a different base class makes the implementation much cleaner and makes it easy to signal which API is being used. `Cop::Cop` inherits from `Cop::Base` and refines some methods for backward compatibility. === `add_offense` API diff --git a/lib/rubocop/cop/base.rb b/lib/rubocop/cop/base.rb index 869297b09f07..eb88e7b80155 100644 --- a/lib/rubocop/cop/base.rb +++ b/lib/rubocop/cop/base.rb @@ -223,7 +223,7 @@ def excluded_file?(file) ### Persistence - # Override if your cop should be called repeatedly for mutliple investigations + # Override if your cop should be called repeatedly for multiple investigations # Between calls to `on_new_investigation` and `on_investigation_end`, # the result of `processed_source` will remain constant. # You should invalidate any caches that depend on the current `processed_source`