Sha256: 6502da9078286f696233b25c7724896092228aa4c3650f69e2e2c5efb5b0d479
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
module Phare class Check attr_reader :status def initialize(directory) @directory = directory @directory << '/' unless @directory.end_with?('/') end def run @checks = [] @checks << ruby = Checks::RubyRubocop.new ruby.run @checks << scsslint = Checks::ScssLint.new(@directory) scsslint.run @checks << jshint = Checks::JavaScriptJSHint.new(@directory) jshint.run @checks << jscs = Checks::JavaScriptJSCS.new(@directory) jscs.run @status = @checks.map!(&:status).find { |status| status > 0 } || 0 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phare-0.3 | lib/phare/check.rb |
phare-0.2.2 | lib/phare/check.rb |
phare-0.2.1 | lib/phare/check.rb |