mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-26 15:30:57 +01:00
Move getPEP8WithTextOptions
method into ComprehensiveLintEngine
class.
Summary: Since this method is only used within this class, it makes sense to move it here. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9114
This commit is contained in:
parent
75cb3cf358
commit
38eda3e86b
2 changed files with 9 additions and 9 deletions
|
@ -540,15 +540,6 @@ abstract class ArcanistLintEngine {
|
|||
return 1;
|
||||
}
|
||||
|
||||
protected function getPEP8WithTextOptions() {
|
||||
// E101 is subset of TXT2 (Tab Literal).
|
||||
// E501 is same as TXT3 (Line Too Long).
|
||||
// W291 is same as TXT6 (Trailing Whitespace).
|
||||
// W292 is same as TXT4 (File Does Not End in Newline).
|
||||
// W293 is same as TXT6 (Trailing Whitespace).
|
||||
return '--ignore=E101,E501,W291,W292,W293';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a named linter resource shared by another linter.
|
||||
|
|
|
@ -48,4 +48,13 @@ final class ComprehensiveLintEngine extends ArcanistLintEngine {
|
|||
return $linters;
|
||||
}
|
||||
|
||||
protected function getPEP8WithTextOptions() {
|
||||
// E101 is subset of TXT2 (Tab Literal).
|
||||
// E501 is same as TXT3 (Line Too Long).
|
||||
// W291 is same as TXT6 (Trailing Whitespace).
|
||||
// W292 is same as TXT4 (File Does Not End in Newline).
|
||||
// W293 is same as TXT6 (Trailing Whitespace).
|
||||
return array('--ignore=E101,E501,W291,W292,W293');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue