Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15407367
D9679.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
930 B
Referenced Files
None
Subscribers
None
D9679.id.diff
View Options
diff --git a/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php b/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
--- a/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
+++ b/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
@@ -13,11 +13,16 @@
}
$data = Filesystem::readFile($config_path);
- $config = json_decode($data, true);
- if (!is_array($config)) {
- throw new Exception(
- "Expected '.arclint' file to be a valid JSON file, but failed to ".
- "decode it: {$config_path}");
+ $config = null;
+ try {
+ $config = phutil_json_decode($data);
+ } catch (PhutilJSONParserException $ex) {
+ throw new PhutilProxyException(
+ pht(
+ "Expected '.arclint' file to be a valid JSON file, but failed to ".
+ "decode %s",
+ $config_path),
+ $ex);
}
$linters = $this->loadAvailableLinters();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 5:13 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332815
Default Alt Text
D9679.id.diff (930 B)
Attached To
Mode
D9679: Improve the handling of `.arclint` files.
Attached
Detach File
Event Timeline
Log In to Comment