protected $otherLocations = array();
protected $obsolete;
protected $granularity;
+ protected $bypassChangedLineFiltering;
public static function newFromDictionary(array $dict) {
$message = new ArcanistLintMessage();
}
$message->setGranularity(idx($dict, 'granularity'));
$message->setOtherLocations(idx($dict, 'locations', array()));
+ if (isset($dict['bypassChangedLineFiltering'])) {
+ $message->bypassChangedLineFiltering($dict['bypassChangedLineFiltering']);
+ }
return $message;
}
'replacement' => $this->getReplacementText(),
'granularity' => $this->getGranularity(),
'locations' => $this->getOtherLocations(),
+ 'bypassChangedLineFiltering' => $this->shouldBypassChangedLineFiltering(),
);
}
return $this;
}
+ public function setBypassChangedLineFiltering($bypass_changed_lines) {
+ $this->bypassChangedLineFiltering = $bypass_changed_lines;
+ return $this;
+ }
+
+ public function shouldBypassChangedLineFiltering() {
+ return $this->bypassChangedLineFiltering;
+ }
+
}
// path is a directory or a binary file so we should not exclude
// warnings.
- if (!$this->changedLines || $message->isError()) {
+ if (!$this->changedLines ||
+ $message->isError() ||
+ $message->shouldBypassChangedLineFiltering()) {
return true;
}