Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/PythonFormatLinter.php
Show All 9 Lines | public function getInfoName() { | ||||
return 'lint-python-format'; | return 'lint-python-format'; | ||||
} | } | ||||
public function getInfoURI() { | public function getInfoURI() { | ||||
return ''; | return ''; | ||||
} | } | ||||
public function getInfoDescription() { | public function getInfoDescription() { | ||||
return pht('Convert python string formatting from % to .format().'); | return pht('Convert python string formatting from %% to .format().'); | ||||
} | } | ||||
public function getLinterName() { | public function getLinterName() { | ||||
return 'lint-python-format'; | return 'lint-python-format'; | ||||
} | } | ||||
public function getLinterConfigurationName() { | public function getLinterConfigurationName() { | ||||
return 'lint-python-format'; | return 'lint-python-format'; | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | foreach($snippets as $snippet) { | ||||
->setDescription("'$path' uses old style string formatting.") | ->setDescription("'$path' uses old style string formatting.") | ||||
->setOriginalText(rtrim($snippet[2])) | ->setOriginalText(rtrim($snippet[2])) | ||||
->setReplacementText($snippet[3]); | ->setReplacementText($snippet[3]); | ||||
} | } | ||||
return $messages; | return $messages; | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |