Skip to content

Commit

Permalink
fix: ignore save params
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jan 9, 2024
1 parent c7222de commit bab3dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/frappe_correctness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rules:
...
self.$ATTR = $SOME_VAR
...
self.save()
self.save(...)
- metavariable-regex:
metavariable: '$ATTR'
# this is negative look-ahead, add more attrs to ignore like (ignore|ignore_this_too|ignore_me)
Expand Down Expand Up @@ -128,7 +128,7 @@ rules:
...
self.$ANOTHER_METHOD()
...
self.save()
self.save(...)
def $ANOTHER_METHOD(self, ...):
...
self.$ATTR = ...
Expand Down

0 comments on commit bab3dd5

Please sign in to comment.