chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.75k stars 410 forks source link

Fix chplcheck bug with IncorrectIndentation and attributes #24922

Closed jabraham17 closed 2 weeks ago

jabraham17 commented 2 weeks ago

Fixes an issue with the IncorrectIndentation lint rule where a module level attribute was treated as a child of the module

For example:

@myAttribute() // Warning: IncorrectIndentation
module foo {
  ...
}

This is fixed by skipping the AttributeGroup, if it exists

Tested locally

[Reviewed by @DanilaFe]