Skip to content

Commit

Permalink
Add 'data' field to advanced rule result
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Jul 1, 2024
1 parent 2a05038 commit 777657a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/chplcheck/src/rule_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# limitations under the License.
#

from dataclasses import field
import typing

import chapel
Expand Down Expand Up @@ -101,6 +100,7 @@ def __init__(
node: chapel.AstNode,
anchor: typing.Optional[chapel.AstNode] = None,
fixits: typing.Optional[typing.Union[Fixit, typing.List[Fixit]]] = None,
data: typing.Optional[typing.Any] = None,
):
self.node = node
self.anchor = anchor
Expand All @@ -110,6 +110,7 @@ def __init__(
self._fixits = [fixits]
else:
self._fixits = fixits
self.data = data

def fixits(self, context: chapel.Context, name: str) -> typing.List[Fixit]:
"""
Expand Down

0 comments on commit 777657a

Please sign in to comment.