[Chapel Merge] Linter tests

Branch: refs/heads/main
Revision: 79e78f0ac3dc840596803d5a85a4858ccb71c77f
Author: brandon-neth
Link: Linter tests by brandon-neth · Pull Request #23944 · chapel-lang/chapel · GitHub
Log Message:
Linter tests (#23944)

Four changes:

  1. Testing for the existing linter rules
  2. Variable casing rule changed from camelCase only to camelCase or
    PascalCase to match style
    guide
    .
  3. Linter driver now sorts violations by line number.
  4. ConsecutiveDecls checks pragmas, annotations, linkage, kind, and type.

Reviewed by: @DanilaFe @jabraham17

Compare: Comparing 9899abfdfd299d8f48ccff714f9ca8e13dd3f4dc...5d84f6a2e6cb565eb12105c06c85eafac93c358c · chapel-lang/chapel · GitHub

Diff:
A test/chplcheck/BoolLitInCondStatement.chpl
A test/chplcheck/BoolLitInCondStatement.good
A test/chplcheck/CaseRules.chpl
A test/chplcheck/CaseRules.good
A test/chplcheck/ChplPrefixReserved.chpl
A test/chplcheck/ChplPrefixReserved.good
A test/chplcheck/ConsecutiveDecls.chpl
A test/chplcheck/ConsecutiveDecls.good
A test/chplcheck/DoKeywordAndBlock.chpl
A test/chplcheck/DoKeywordAndBlock.good
M test/chplcheck/MethodsAfterFields.chpl
M test/chplcheck/MethodsAfterFields.good
A test/chplcheck/MisleadingIndentation.chpl
A test/chplcheck/MisleadingIndentation.good
A test/chplcheck/NOEXEC
A test/chplcheck/NestedCoforalls.chpl
A test/chplcheck/NestedCoforalls.good
M test/chplcheck/PREDIFF
A test/chplcheck/Unused.chpl
A test/chplcheck/Unused.good
A test/chplcheck/UseExplicitModules.chpl
A test/chplcheck/UseExplicitModules.good
M tools/chplcheck/src/chplcheck.py
M tools/chplcheck/src/rules.py
https://github.com/chapel-lang/chapel/pull/23944.diff