Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18055209
D16579.id39910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
935 B
Referenced Files
None
Subscribers
None
D16579.id39910.diff
View Options
diff --git a/src/lint/engine/ArcanistLintEngine.php b/src/lint/engine/ArcanistLintEngine.php
--- a/src/lint/engine/ArcanistLintEngine.php
+++ b/src/lint/engine/ArcanistLintEngine.php
@@ -343,7 +343,18 @@
$path = idx($location, 'path', $message->getPath());
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 5, 7:09 AM (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8500234
Default Alt Text
D16579.id39910.diff (935 B)
Attached To
Mode
D16579: Check both UNIX- and Windows-style paths from linter output
Attached
Detach File
Event Timeline
Log In to Comment