[Chapel Merge] Fix incorrect indent rule on enums

Branch: refs/heads/main
Revision: a474880aa1b8959118987ade8280f8333477e746
Author: jabraham17
Link: Fix incorrect indent rule on enums by jabraham17 · Pull Request #28567 · chapel-lang/chapel · GitHub
Log Message:
Fix incorrect indent rule on enums (#28567)

Fixes the incorrect indentation rule on enums with attributes

Since the AST node of the attribute is included in the children of the
enum, we have to skip it.

[Reviewed by @DanilaFe]

Compare: Comparing dd5e0bd999bb96a354a8ccde8866e8d6f8c78fcc...8dfbce6404da90e27ec6e6856790189961bf45ae · chapel-lang/chapel · GitHub

Diff:
M test/chplcheck/IncorrectIndentation.chpl
M tools/chplcheck/src/rules.py
https://github.com/chapel-lang/chapel/pull/28567.diff