[Chapel Merge] Fix IncorrectIndentation checking for else/if chains and expand chapel-py uast methods

Branch: refs/heads/main
Revision: a902cde841163ab34f3ab0368f963fe58af56272
Author: jabraham17
Link: Fix IncorrectIndentation checking for else/if chains and expand chapel-py uast methods by jabraham17 · Pull Request #28361 · chapel-lang/chapel · GitHub
Log Message:
Fix IncorrectIndentation checking for else/if chains and expand chapel-py uast methods (#28361)

Fixes an issue where the IncorrectIndentation warning would incorrectly
warn for else if statements.

Resolves [Bug]: linter incorrectly complains about the indentation of a second `else if` in an if/else chain · Issue #25256 · chapel-lang/chapel · GitHub

  • start_test test/chplcheck

[Reviewed by @DanilaFe]

Compare: Comparing 7d01f938987d90c94c4d2c46fa6feeda993b6572...f4e28c826f68ee1458a8d85e57f878366a885914 · chapel-lang/chapel · GitHub

Diff:
M test/chplcheck/IncorrectIndentation.chpl
M test/chplcheck/IncorrectIndentation.good
M test/chplcheck/IncorrectIndentation.good-fixit
M tools/chapel-py/src/method-tables/uast-methods.h
M tools/chplcheck/src/rules.py
https://github.com/chapel-lang/chapel/pull/28361.diff