Pass key to aggregate exception
Summary: This information may be quite useful. Test Plan: Uploaded file. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3763
This commit is contained in:
@@ -70,26 +70,14 @@ widths on different languages:
|
||||
|
||||
$linters = array();
|
||||
|
||||
$text_80col_linter = new ArcanistTextLinter();
|
||||
$linters[] = $text_80col_linter;
|
||||
// Warn on JS/CSS lines longer than 80 columns.
|
||||
$linters['TextLinter80Col'] = id(new ArcanistTextLinter())
|
||||
->setPaths(preg_grep('/\.(js|css)$/', $paths));
|
||||
|
||||
$text_120col_linter = new ArcanistTextLinter();
|
||||
$text_120col_linter->setMaxLineLength(120);
|
||||
$linters[] = $text_120col_linter;
|
||||
|
||||
foreach ($paths as $path) {
|
||||
|
||||
// Warn on JS/CSS lines longer than 80 columns.
|
||||
if (preg_match('/\.(js|css)$/', $path)) {
|
||||
$text_80col_linter->addPath($path);
|
||||
}
|
||||
|
||||
// Warn on Java lines longer than 120 columns.
|
||||
if (preg_match('/\.java$/', $path)) {
|
||||
$text_120col_linter->addPath($path);
|
||||
}
|
||||
|
||||
}
|
||||
// Warn on Java lines longer than 120 columns.
|
||||
$linters['TextLinter120Col'] = id(new ArcanistTextLinter())
|
||||
->setMaxLineLength(120)
|
||||
->setPaths(preg_grep('/\.(java)$/', $paths));
|
||||
|
||||
// ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user