Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 def noop(): | |
2 pass | |
3 | |
4 | |
5 def superfluos_pass(): | |
6 noop() | |
7 # A204 | |
8 pass | |
9 | |
10 | |
11 def multiple_pass(): | |
12 pass | |
13 # A204 | |
14 pass | |
15 | |
16 | |
17 class SuperfluosPass: | |
18 noop() | |
19 # A204 | |
20 pass | |
21 | |
22 | |
23 class MultiplePass: | |
24 pass | |
25 # A204 | |
26 pass | |
27 | |
28 | |
29 if True: | |
30 noop() | |
31 # A204 | |
32 pass | |
33 else: | |
34 noop() | |
35 # A204 | |
36 pass | |
37 | |
38 for i in range(10): | |
39 noop() | |
40 # A204 | |
41 pass | |
42 else: | |
43 noop() | |
44 # A204 | |
45 pass | |
46 | |
47 while True: | |
48 noop() | |
49 # A204 | |
50 pass | |
51 else: | |
52 noop() | |
53 # A204 | |
54 pass | |
55 | |
56 try: | |
57 noop() | |
58 # A204 | |
59 pass | |
60 except: | |
61 noop() | |
62 # A204 | |
63 pass | |
64 finally: | |
65 noop() | |
66 # A204 | |
67 pass | |
OLD | NEW |