Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPyLintLinter.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | switch ($key) { | ||||
| return parent::setLinterConfigurationValue($key, $value); | return parent::setLinterConfigurationValue($key, $value); | ||||
| } | } | ||||
| } | } | ||||
| protected function getMandatoryFlags() { | protected function getMandatoryFlags() { | ||||
| $options = array(); | $options = array(); | ||||
| $options[] = '--reports=no'; | $options[] = '--reports=no'; | ||||
| $options[] = '--msg-template="{line}|{column}|{msg_id}|{symbol}|{msg}"'; | $options[] = '--msg-template={line}|{column}|{msg_id}|{symbol}|{msg}'; | ||||
| // Specify an `--rcfile`, either absolute or relative to the project root. | // Specify an `--rcfile`, either absolute or relative to the project root. | ||||
| // Stupidly, the command line args above are overridden by rcfile, so be | // Stupidly, the command line args above are overridden by rcfile, so be | ||||
| // careful. | // careful. | ||||
| $config = $this->config; | $config = $this->config; | ||||
| if ($config !== null) { | if ($config !== null) { | ||||
| $options[] = '--rcfile='.$config; | $options[] = '--rcfile='.$config; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||