Page MenuHomePhabricator

Use forward slashes when collecting linted paths
Needs RevisionPublic

Authored by staticshock on Mar 11 2015, 2:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 7:29 AM
Unknown Object (File)
Sun, Mar 31, 7:38 PM
Unknown Object (File)
Fri, Mar 29, 5:37 AM
Unknown Object (File)
Mon, Mar 25, 4:33 AM
Unknown Object (File)
Thu, Mar 21, 3:23 AM
Unknown Object (File)
Wed, Mar 20, 10:35 PM
Unknown Object (File)
Wed, Mar 20, 6:19 PM
Unknown Object (File)
Mar 7 2024, 8:44 PM
Subscribers

Details

Summary

engine->isRelevantMessage expects forward slashes, but on Windows, Filesystem::readablePath returns backslashes.

Fixes T7527

Test Plan

Removed a semicolon from a js file, ran jshint linter on Windows via arc lint, saw warning.

Diff Detail

Repository
rARC Arcanist
Branch
winpath
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4837
Build 4853: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

staticshock retitled this revision from to Use forward slashes when collecting linted paths.
staticshock updated this object.
staticshock edited the test plan for this revision. (Show Details)
joshuaspence edited edge metadata.

I think the more correct behavior would be to fix ArcanistLintEngine::isRelevantMessage to use DIRECTORY_SEPARATOR instead of / on Windows (although it's not immediately clear to me what the problem is from looking at the code).

This revision now requires changes to proceed.May 5 2015, 8:53 AM