ArcanistLintSeverity::SEVERITY_ERROR, ); } public function getLintNameMap() { return array( self::BAD_YEAR => pht('Inaccurate Copyright Year'), ); } public function lintPath($path) { $txt = $this->getData($path); $matches = null; $preg = preg_match_all( "/Copyright( \(C\))? (20[0-9]{2}) Wildfire Games/", $txt, $matches, PREG_OFFSET_CAPTURE); if (!$preg) { return; } $year = date("Y", filemtime($path)); foreach ($matches[2] as $match) { list($string, $offset) = $match; if ($string == $year) { continue; } $this->raiseLintAtOffset( $offset, self::BAD_YEAR, pht('Inaccurate Copyright Year'), $string, "$year"); } } }