#!/usr/bin/env php
.
*/
/**
* This file replaces cppcheck if the former is not found, to avoid failure in 'arc lint'.
* It is written in PHP as we can assume php is installed if arcanist is to work at all.
* It mimics `cppcheck --xml`.
* Set the VERBOSE env variable to generate an 'advice' level lint message.
*/
$verbose = getenv("VERBOSE") ? getenv("VERBOSE") : false;
$advice = !$verbose ? "" : <<
EOD;
$str = <<
$advice
EOD;
fwrite(STDERR, $str);
?>