Branch: refs/heads/main
Revision: 42fc25eae3cf17d40f769bc8a0d8b323e229bec5
Author: Rocker810
Link: Added new examples for chplcheck by Rocker810 · Pull Request #28129 · chapel-lang/chapel · GitHub
Log Message:
Added new examples for chplcheck (#28129)
Each test includes:
A .chpl file with both a bad example (violating the rule) and a good
example (correct implementation)
Block comments explaining which example violates the rule and why
A corresponding .good file with the expected linter output
[Contributed by @Rocker810, reviewed and merged by @jabraham17]
Diff:
A tools/chplcheck/examples/BoolLitInCondStmt.chpl
A tools/chplcheck/examples/BoolLitInCondStmt.good
A tools/chplcheck/examples/ChplPrefixReserved.chpl
A tools/chplcheck/examples/ChplPrefixReserved.good
A tools/chplcheck/examples/ConsecutiveDecls.chpl
A tools/chplcheck/examples/ConsecutiveDecls.chplcheckopts
A tools/chplcheck/examples/ConsecutiveDecls.good
A tools/chplcheck/examples/EmptyStmts.chpl
A tools/chplcheck/examples/EmptyStmts.good
A tools/chplcheck/examples/IncorrectIndentation.chpl
A tools/chplcheck/examples/IncorrectIndentation.chplcheckopts
A tools/chplcheck/examples/IncorrectIndentation.good
A tools/chplcheck/examples/LineLength.chpl
A tools/chplcheck/examples/LineLength.chplcheckopts
A tools/chplcheck/examples/LineLength.good
A tools/chplcheck/examples/MethodsAfterFields.chpl
A tools/chplcheck/examples/MethodsAfterFields.good
A tools/chplcheck/examples/MisleadingIndentation.chpl
A tools/chplcheck/examples/MisleadingIndentation.chplcheckopts
A tools/chplcheck/examples/MisleadingIndentation.good
A tools/chplcheck/examples/NestedCoforalls.chpl
A tools/chplcheck/examples/NestedCoforalls.chplcheckopts
A tools/chplcheck/examples/NestedCoforalls.good
A tools/chplcheck/examples/UnusedFormal.chpl
A tools/chplcheck/examples/UnusedFormal.good
A tools/chplcheck/examples/UnusedLoopIndex.chpl
A tools/chplcheck/examples/UnusedLoopIndex.good
A tools/chplcheck/examples/UnusedTupleUnpack.chpl
A tools/chplcheck/examples/UnusedTupleUnpack.good
https://github.com/chapel-lang/chapel/pull/28129.diff