Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Oct 21, 2024
1 parent 11bcc44 commit f73f191
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,10 @@ def MissingInIntent(_, root: chapel.AstNode):
for nd in agg:
if isinstance(nd, chapel.Variable) and nd.is_field():
fields[nd.unique_id()] = nd
if isinstance(nd, chapel.Function) and nd.name() in ("init", "init="):
if isinstance(nd, chapel.Function) and nd.name() in (
"init",
"init=",
):
inits.append(nd)

for init in inits:
Expand Down Expand Up @@ -969,7 +972,6 @@ def MissingInIntent(_, root: chapel.AstNode):
if lhs_is_field and rhs_is_formal:
yield AdvancedRuleResult(rhs_is_formal)


@driver.fixit(MissingInIntent)
def FixMissingInIntent(context: Context, result: AdvancedRuleResult):
"""
Expand Down

0 comments on commit f73f191

Please sign in to comment.