Skip to content

Commit

Permalink
clarify message
Browse files Browse the repository at this point in the history
  • Loading branch information
augustelalande committed Jul 26, 2024
1 parent 97ef2bc commit 16e30f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct DocstringExtraneousReturns;
impl Violation for DocstringExtraneousReturns {
#[derive_message_formats]
fn message(&self) -> String {
format!("Docstring should not have a returns section")
format!("Docstring should not have a returns section because the function doesn't return anything")
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: crates/ruff_linter/src/rules/pydoclint/mod.rs
---
DOC202_google.py:20:1: DOC202 Docstring should not have a returns section
DOC202_google.py:20:1: DOC202 Docstring should not have a returns section because the function doesn't return anything
|
18 | num (int): A number
19 |
Expand All @@ -12,7 +12,7 @@ DOC202_google.py:20:1: DOC202 Docstring should not have a returns section
23 | print('test')
|

DOC202_google.py:36:1: DOC202 Docstring should not have a returns section
DOC202_google.py:36:1: DOC202 Docstring should not have a returns section because the function doesn't return anything
|
34 | num (int): A number
35 |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: crates/ruff_linter/src/rules/pydoclint/mod.rs
---
DOC202_numpy.py:24:1: DOC202 Docstring should not have a returns section
DOC202_numpy.py:24:1: DOC202 Docstring should not have a returns section because the function doesn't return anything
|
22 | A number
23 |
Expand All @@ -14,7 +14,7 @@ DOC202_numpy.py:24:1: DOC202 Docstring should not have a returns section
29 | print('test')
|

DOC202_numpy.py:44:1: DOC202 Docstring should not have a returns section
DOC202_numpy.py:44:1: DOC202 Docstring should not have a returns section because the function doesn't return anything
|
42 | A number
43 |
Expand Down

0 comments on commit 16e30f2

Please sign in to comment.