Page MenuHomePhabricator

D9448.diff
No OneTemporary

D9448.diff

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($this->getFilePathOnDisk($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

Mime Type
text/plain
Expires
Sat, Oct 19, 11:20 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6731864
Default Alt Text
D9448.diff (1 KB)

Event Timeline