Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18166328
D9679.id23236.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
934 B
Referenced Files
None
Subscribers
None
D9679.id23236.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 it: %s",
+ $config_path),
+ $ex);
}
$linters = $this->loadAvailableLinters();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 16 2025, 10:05 AM (15 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8817993
Default Alt Text
D9679.id23236.diff (934 B)
Attached To
Mode
D9679: Improve the handling of `.arclint` files.
Attached
Detach File
Event Timeline
Log In to Comment