Sha256: 354b521b5e60cc11dd61803f18d62bffff2c94f5e6c5d50253bd433c7133a813
Contents?: true
Size: 765 Bytes
Versions: 5
Compression:
Stored size: 765 Bytes
Contents
module Checker module Modules class Javascript < Base extensions 'js' private def check_one(file, opts = {}) Checker::Result.result(self, plain_command("jsl -process #{file}")) end def check_for_executable silent_command('jsl -help:conf', :bundler => false) end def dependency_message str = "Executable not found\n" str << "Install jsl linter binary\n" str << "More info: http://www.javascriptlint.com/download.htm\n" str end def show_status(status) if status == :ok print_success_message elsif status == :warning print_warning_message else print_fail_message end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems