Files
chromebrew/tests/spellcheck_test
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

14 lines
367 B
Ruby
Executable File

#!/usr/bin/env ruby
# This test checks for spelling errors and provides suggested changes.
require_relative '../lib/const'
require_relative '../lib/color'
puts "This test requires codespell. Install with 'pip install codespell'.".lightred unless File.exist? "#{CREW_PREFIX}/bin/codespell"
# Check for spelling errors.
Dir.chdir '../' do
system 'codespell'
end