Diviner

Class ArcanistSpellingLinter

Definedsrc/lint/linter/ArcanistSpellingLinter.php:11
GroupLinters
ExtendsArcanistLinter

Enforces basic spelling. Spelling inside code is actually pretty hard to get right without false positives. I take a conservative approach and just use a blacklisted set of words that are commonly spelled incorrectly.

Tasks

Methods

public this __construct($severity = self::LINT_SPELLING_PICKY)

parameterswild$severity
returnthis
This method is not documented.

public addPartialWordRule($incorrect_word, $correct_word, $severity = self::LINT_SPELLING_IMPORTANT)

parameterswild$incorrect_word
wild$correct_word
wild$severity
returnwild
This method is not documented.

public addWholeWordRule($incorrect_word, $correct_word, $severity = self::LINT_SPELLING_IMPORTANT)

parameterswild$incorrect_word
wild$correct_word
wild$severity
returnwild
This method is not documented.

protected checkPartialWord($path, $word, $correct_word, $severity)

parameterswild$path
wild$word
wild$correct_word
wild$severity
returnwild
This method is not documented.

protected checkWholeWord($path, $word, $correct_word, $severity)

parameterswild$path
wild$word
wild$correct_word
wild$severity
returnwild
This method is not documented.

public static fixLetterCase($string, $case)

parameterswild$string
wild$case
returnwild
This method is not documented.

public getLintNameMap()

returnwild
This method is not documented.

public getLintSeverityMap()

returnwild
This method is not documented.

public getLinterName()

returnwild
This method is not documented.

public lintPath($path)

parameterswild$path
returnwild
This method is not documented.

public removeLintRule($word)

parameterswild$word
returnwild
This method is not documented.

public willLintPaths(array $paths)

parametersarray$paths
returnwild
This method is not documented.