Skip to content

Commit

Permalink
feat(python): add shared instance rule (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
didroe authored May 16, 2024
1 parent 31e12b2 commit 9866e76
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rules/python/shared/lang/instance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: shared
languages:
- python
patterns:
- $<CLASS>($<...>)
- |
class $<_>($<CLASS>):
def $<_>($<!>self$<...>):
- |
def $<_>($<...>$<!>$<_>: $<CLASS>$<...>):
metadata:
description: "Python CLASS instance"
id: python_shared_lang_instance

0 comments on commit 9866e76

Please sign in to comment.