Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13975736
D9448.id22553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9448.id22553.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
@@ -190,6 +190,10 @@
return ArcanistDiffUtils::isHeuristicBinaryFile($data);
}
+ final public function isSymbolicLink($path) {
+ return is_link($path);
+ }
+
final public function getFilePathOnDisk($path) {
return Filesystem::resolvePath(
$path,
diff --git a/src/lint/linter/ArcanistFilenameLinter.php b/src/lint/linter/ArcanistFilenameLinter.php
--- a/src/lint/linter/ArcanistFilenameLinter.php
+++ b/src/lint/linter/ArcanistFilenameLinter.php
@@ -49,4 +49,8 @@
return true;
}
+ public function shouldLintSymbolicLinks() {
+ return true;
+ }
+
}
diff --git a/src/lint/linter/ArcanistLinter.php b/src/lint/linter/ArcanistLinter.php
--- a/src/lint/linter/ArcanistLinter.php
+++ b/src/lint/linter/ArcanistLinter.php
@@ -148,6 +148,10 @@
continue;
}
+ if (!$this->shouldLintSymbolicLinks() && $engine->isSymbolicLink($path)) {
+ continue;
+ }
+
$keep[] = $path;
}
@@ -442,6 +446,10 @@
return false;
}
+ protected function shouldLintSymbolicLinks() {
+ return false;
+ }
+
/**
* Map a configuration lint code to an `arc` lint code. Primarily, this is
* intended for validation, but can also be used to normalize case or
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 19, 11:24 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712954
Default Alt Text
D9448.id22553.diff (1 KB)
Attached To
Mode
D9448: Don't lint symlinks by default.
Attached
Detach File
Event Timeline
Log In to Comment