-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #14727 ## Summary Fixes #14727 ## Test Plan cargo test --------- Co-authored-by: Charlie Marsh <[email protected]>
- Loading branch information
1 parent
6dfe125
commit 83651de
Showing
3 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 16 additions & 19 deletions
35
...rc/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__too_many_public_methods.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,42 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
snapshot_kind: text | ||
--- | ||
too_many_public_methods.py:1:1: PLR0904 Too many public methods (10 > 7) | ||
too_many_public_methods.py:4:1: PLR0904 Too many public methods (10 > 7) | ||
| | ||
1 | / class Everything: | ||
2 | | foo = 1 | ||
3 | | | ||
4 | | def __init__(self): | ||
5 | | pass | ||
4 | / class Everything: | ||
5 | | foo = 1 | ||
6 | | | ||
7 | | def _private(self): | ||
7 | | def __init__(self): | ||
8 | | pass | ||
9 | | | ||
10 | | def method1(self): | ||
10 | | def _private(self): | ||
11 | | pass | ||
12 | | | ||
13 | | def method2(self): | ||
13 | | def method1(self): | ||
14 | | pass | ||
15 | | | ||
16 | | def method3(self): | ||
16 | | def method2(self): | ||
17 | | pass | ||
18 | | | ||
19 | | def method4(self): | ||
19 | | def method3(self): | ||
20 | | pass | ||
21 | | | ||
22 | | def method5(self): | ||
22 | | def method4(self): | ||
23 | | pass | ||
24 | | | ||
25 | | def method6(self): | ||
25 | | def method5(self): | ||
26 | | pass | ||
27 | | | ||
28 | | def method7(self): | ||
28 | | def method6(self): | ||
29 | | pass | ||
30 | | | ||
31 | | def method8(self): | ||
31 | | def method7(self): | ||
32 | | pass | ||
33 | | | ||
34 | | def method9(self): | ||
34 | | def method8(self): | ||
35 | | pass | ||
36 | | | ||
37 | | def method9(self): | ||
38 | | pass | ||
| |____________^ PLR0904 | ||
36 | | ||
37 | class Small: | ||
| |