def check(directories=["."])
      # Installs clorox if needed
      system "pip install --target #{ROOT_DIR} clorox --upgrade" unless clorox_installed?

      # Check that this is in the user's PATH after installing
      unless clorox_installed?
        fail "clorox is not in the user's PATH, or it failed to install"
        return
      end

      clorox_command = "python #{EXECUTABLE} "
      clorox_command += "--path #{directories ? directories.join(' ') : '.'} "
      clorox_command += "--inspection "
      clorox_command += "--report json"

      require 'json'
      result = JSON.parse(`#{clorox_command}`)
      if result['status'] == 'dirty'
        result['files'].each do |file|
          message = "#{file} contains Xcode's file header"
          level == LEVEL_FAILURE ? fail(message) : warn(message)
        end
      end
    end
def check(directories=["."])
      # Installs clorox if needed
      system "pip install --target #{ROOT_DIR} clorox --upgrade" unless clorox_installed?

      # Check that this is in the user's PATH after installing
      unless clorox_installed?
        fail "clorox is not in the user's PATH, or it failed to install"
        return
      end

      clorox_command = "python #{EXECUTABLE} "
      clorox_command += "--path #{directories ? directories.join(' ') : '.'} "
      clorox_command += "--inspection "
      clorox_command += "--report json"

      require 'json'
      result = JSON.parse(`#{clorox_command}`)
      if result['status'] == 'dirty'
        result['files'].each do |file|
          message = "#{file} contains Xcode's file header"
          level == LEVEL_FAILURE ? fail(message) : warn(message)
        end
      end
    end
Checks presence of file header comments. Will fail if `clorox` cannot be installed correctly.
 Generates a list of warnings/failures of your Objective-C and Swift files.

 @param directories [Array<String>] Directories from where clorox will be run. Defaults to current dir.
 @return [void]