mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Special case ArcanistTextLinter for completely empty files.
This commit is contained in:
parent
aa44db2f96
commit
b8e7e9017a
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,12 @@ class ArcanistTextLinter extends ArcanistLinter {
|
|||
}
|
||||
|
||||
public function lintPath($path) {
|
||||
if (!strlen($this->getData($path))) {
|
||||
// If the file is empty, don't bother; particularly, don't require
|
||||
// the user to add a newline.
|
||||
return;
|
||||
}
|
||||
|
||||
$this->lintNewlines($path);
|
||||
$this->lintTabs($path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue