mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 10:12:41 +01:00
canRun should return false on scala linter instead of raising an exception
Summary: This was causing the following error in environments that didnt have scala configured: Some linters failed: - ArcanistScalaSBTLinter: ArcanistUsageException: This directory does not appear to be maintained by SBT, as we can't seem to find a working build file (project/Build.scala or build.sbt). Test Plan: . Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4070
This commit is contained in:
parent
3602d2aa15
commit
0d1d04e434
1 changed files with 1 additions and 4 deletions
|
@ -30,10 +30,7 @@ final class ArcanistScalaSBTLinter extends ArcanistLinter {
|
|||
// Hell. We let the build system handle this for us.
|
||||
if (!Filesystem::pathExists('project/Build.scala') &&
|
||||
!Filesystem::pathExists('build.sbt')) {
|
||||
throw new ArcanistUsageException(
|
||||
"This directory does not appear to be maintained by SBT, as we can't ".
|
||||
"seem to find a working build file (project/Build.scala or ".
|
||||
"build.sbt).");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue