Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistScriptAndRegexLinter.php
| Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | foreach ($matches as $match) { | ||||
| $dict = array( | $dict = array( | ||||
| 'path' => idx($match, 'file', $path), | 'path' => idx($match, 'file', $path), | ||||
| 'line' => $line, | 'line' => $line, | ||||
| 'char' => $char, | 'char' => $char, | ||||
| 'code' => idx($match, 'code', $this->getLinterName()), | 'code' => idx($match, 'code', $this->getLinterName()), | ||||
| 'severity' => $this->getMatchSeverity($match), | 'severity' => $this->getMatchSeverity($match), | ||||
| 'name' => idx($match, 'name', 'Lint'), | 'name' => idx($match, 'name', 'Lint'), | ||||
| 'description' => idx($match, 'message', 'Undefined Lint Message'), | 'description' => idx($match, 'message', pht('Undefined Lint Message')), | ||||
| ); | ); | ||||
| $original = idx($match, 'original'); | $original = idx($match, 'original'); | ||||
| if ($original !== null) { | if ($original !== null) { | ||||
| $dict['original'] = $original; | $dict['original'] = $original; | ||||
| } | } | ||||
| $replacement = idx($match, 'replacement'); | $replacement = idx($match, 'replacement'); | ||||
| ▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines | |||||