mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-01 18:30:58 +01:00
(stable) Promote 2016 Week 39
This commit is contained in:
commit
e7906e47cb
1 changed files with 12 additions and 1 deletions
|
@ -343,7 +343,18 @@ abstract class ArcanistLintEngine extends Phobject {
|
||||||
$path = idx($location, 'path', $message->getPath());
|
$path = idx($location, 'path', $message->getPath());
|
||||||
|
|
||||||
if (!array_key_exists($path, $this->changedLines)) {
|
if (!array_key_exists($path, $this->changedLines)) {
|
||||||
continue;
|
if (phutil_is_windows()) {
|
||||||
|
// We try checking the UNIX path form as well, on Windows. Linters
|
||||||
|
// store noramlized paths, which use the Windows-style "\" as a
|
||||||
|
// delimiter; as such, they don't match the UNIX-style paths stored
|
||||||
|
// in changedLines, which come from the VCS.
|
||||||
|
$path = str_replace('\\', '/', $path);
|
||||||
|
if (!array_key_exists($path, $this->changedLines)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$changed = $this->getPathChangedLines($path);
|
$changed = $this->getPathChangedLines($path);
|
||||||
|
|
Loading…
Reference in a new issue