Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1374607
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
View Options
diff --git a/src/lint/linter/ArcanistGoLintLinter.php b/src/lint/linter/ArcanistGoLintLinter.php
index 419acf41..7d3fe6b1 100644
--- a/src/lint/linter/ArcanistGoLintLinter.php
+++ b/src/lint/linter/ArcanistGoLintLinter.php
@@ -1,67 +1,67 @@
<?php
final class ArcanistGoLintLinter extends ArcanistExternalLinter {
public function getInfoName() {
return 'Golint';
}
public function getInfoURI() {
return 'https://github.com/golang/lint';
}
public function getInfoDescription() {
return pht('Golint is a linter for Go source code.');
}
public function getLinterName() {
return 'GOLINT';
}
public function getLinterConfigurationName() {
return 'golint';
}
public function getDefaultBinary() {
return 'golint';
}
public function getInstallInstructions() {
return pht(
'Install Golint using `%s`.',
- 'go get github.com/golang/lint/golint');
+ 'go get -u golang.org/x/lint/golint');
}
public function shouldExpectCommandErrors() {
return false;
}
protected function canCustomizeLintSeverities() {
return true;
}
protected function parseLinterOutput($path, $err, $stdout, $stderr) {
$lines = phutil_split_lines($stdout, false);
$messages = array();
foreach ($lines as $line) {
$matches = explode(':', $line, 4);
if (count($matches) === 4) {
$message = new ArcanistLintMessage();
$message->setPath($path);
$message->setLine($matches[1]);
$message->setChar($matches[2]);
$message->setCode($this->getLinterName());
$message->setName($this->getLinterName());
$message->setDescription(ucfirst(trim($matches[3])));
$message->setSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
$messages[] = $message;
}
}
return $messages;
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 25, 03:27 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
609484
Default Alt Text
(1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment