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", __FILE__)
CUSTOM_SPELL_CONFIG_FILE =
".spell.yml".freeze

Instance Method Summary collapse

Constructor Details

#initializeSpellcheckTask

define the Rake task in the constructor



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

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