Sha256: 4b291c36b31fb69c956a338fa6a65c3f1618cbd8f91dbea5df91d8aa75cf10cc

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

module Checker
  module Modules
    class ConsoleLog < Base
      extensions "coffee", "js"

      private

      def check_one(file, _opts = {})
        Checker::Result.result(self, plain_command("grep -n \"console\\.log\" #{file}", bundler: false, rvm: false))
      end

      def show_status(status)
        if status == :ok
          print_success_message
        else
          print_warning_message
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
checker-0.8.0.beta2 lib/checker/modules/console_log.rb
checker-0.8.0.beta lib/checker/modules/console_log.rb