mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* 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>
14 lines
367 B
Ruby
Executable File
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
|