Skip to content

Commit a5a5ca5

Browse files
[STYLE] Fixed some YAML linting issues (- WIP #207 -)
1 parent c127adb commit a5a5ca5

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.ast-grep/rules/multicast-rule-check-documentation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
id: check-has-documentation
33
rule:
44
pattern:
5-
selector: function_definition
6-
context: |
7-
def $FUNC_NAME($$$)$$$:$$$
8-
$BODY
5+
selector: function_definition
6+
context: |
7+
def $FUNC_NAME($$$)$$$:$$$
8+
$BODY
99
kind: function_definition
1010
not:
1111
matches: function_docstring

.ast-grep/rules/multicast-rule-require-docstring-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ examples:
3131
class MyClass:
3232
"""
3333
My class description.
34-
34+
3535
Testing:
3636
>>> obj = MyClass()
3737
>>> obj.method()

.ast-grep/utils/structure/block_docstring.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ rule:
1010
kind: expression_statement
1111
nthChild: 1
1212
language: python
13-

.ast-grep/utils/structure/class_docstring.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ rule:
1313
kind: class_definition
1414
- kind: string
1515
language: python
16-

0 commit comments

Comments
 (0)