Skip to content

Commit

Permalink
Fix inconsistent capitalization of RuboCop.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis authored and mergify[bot] committed Oct 1, 2021
1 parent 275a70b commit eba1d4d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/config_loader.rb
Expand Up @@ -136,7 +136,7 @@ def default_configuration
end
end

# Returns the path rubocop inferred as the root of the project. No file
# Returns the path RuboCop inferred as the root of the project. No file
# searches will go past this directory.
def project_root
@project_root ||= find_project_root
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/rake_task.rb
Expand Up @@ -33,7 +33,7 @@ def initialize(name = :rubocop, *args, &task_block)
private

def run_cli(verbose, options)
# We lazy-load rubocop so that the task doesn't dramatically impact the
# We lazy-load RuboCop so that the task doesn't dramatically impact the
# load time of your Rakefile.
require 'rubocop'

Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/result_cache.rb
Expand Up @@ -6,7 +6,7 @@
require 'zlib'

module RuboCop
# Provides functionality for caching rubocop runs.
# Provides functionality for caching RuboCop runs.
# @api private
class ResultCache
NON_CHANGING = %i[color format formatters out debug fail_level auto_correct
Expand Down Expand Up @@ -170,7 +170,7 @@ class << self
attr_accessor :source_checksum, :inhibit_cleanup
end

# The checksum of the rubocop program running the inspection.
# The checksum of the RuboCop program running the inspection.
def rubocop_checksum
ResultCache.source_checksum ||=
begin
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/runner.rb
Expand Up @@ -60,7 +60,7 @@ def aborting?

private

# Warms up the RuboCop cache by forking a suitable number of rubocop
# Warms up the RuboCop cache by forking a suitable number of RuboCop
# instances that each inspects its allotted group of files.
def warm_cache(target_files)
puts 'Running parallel inspection' if @options[:debug]
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cli_spec.rb
Expand Up @@ -1390,7 +1390,7 @@ def meow_at_4am?
# Being immune to bad configuration files in excluded directories has
# become important due to a bug in rubygems
# (https://github.com/rubygems/rubygems/issues/680) that makes
# installations of, for example, rubocop lack their .rubocop.yml in the
# installations of, for example, RuboCop lack their .rubocop.yml in the
# root directory.
it 'can exclude a vendor directory with an erroneous config file' do
create_file('vendor/bundle/ruby/1.9.1/gems/parser-2.0.0/.rubocop.yml',
Expand Down

0 comments on commit eba1d4d

Please sign in to comment.