Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSharpLinter.php
Context not available. | |||||
public function setCustomSeverityMap(array $map) { | public function setCustomSeverityMap(array $map) { | ||||
foreach ($map as $code => $severity) { | foreach ($map as $code => $severity) { | ||||
if (substr($code, 0, 2) === 'SA' && $severity == 'disabled') { | if (@substr($code, 0, 2) === 'SA' && $severity == 'disabled') { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
"In order to keep StyleCop integration with IDEs and other tools ". | "In order to keep StyleCop integration with IDEs and other tools ". | ||||
Context not available. | |||||
// command line limit), then finalize this future and add it. | // command line limit), then finalize this future and add it. | ||||
$total = 0; | $total = 0; | ||||
foreach ($current_paths as $current_path) { | foreach ($current_paths as $current_path) { | ||||
$total += strlen($current_path) + 3; // Quotes and space. | $total += @strlen($current_path) + 3; // Quotes and space. | ||||
} | } | ||||
if ($total + strlen($path) > 6000) { | if ($total + @strlen($path) > 6000) { | ||||
// %s won't pass through the JSON correctly | // %s won't pass through the JSON correctly | ||||
// under Windows. This is probably because not only | // under Windows. This is probably because not only | ||||
// does the JSON have quotation marks in the content, | // does the JSON have quotation marks in the content, | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0