Class: Yast::SpellcheckTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/tasks/spellcheck_task.rb

Overview

Defines a spellcheck rake task

Constant Summary collapse

GLOBAL_SPELL_CONFIG_FILE =
File.expand_path("spell.yml", __dir__)
CUSTOM_SPELL_CONFIG_FILE =
".spell.yml"

Instance Method Summary collapse

Constructor Details

#initializeSpellcheckTask

define the Rake task in the constructor



42
43
44
45
46
47
48
49
# File 'lib/tasks/spellcheck_task.rb', line 42

def initialize
  namespace :check do
    desc "Run spell checker (by default for *.md and *.html files)"
    task :spelling do
      run_task
    end
  end
end