Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: flake8-abp/tests/A202.py

Issue 29340727: Noissue - Added flake8 extension accounting for our coding style and some other stuff (Closed)
Patch Set: Added more checks, tests, README and addressed comments Created May 7, 2016, 5:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 def noop():
2 pass
3
4
5 def dead_code_after_return():
6 return
7 # A202
8 noop()
9
10
11 def dead_code_after_raise():
12 raise Exception()
13 # A202
14 noop()
15
16
17 def dead_code_after_return_in_try():
18 try:
19 return
20 # A202
21 noop()
22 except:
23 return
24 # A202
25 noop()
26 finally:
27 return
28 # A202
29 noop()
30
31
32 for i in range(10):
33 if i == 0:
34 continue
35 # A202
36 noop()
37
38 if i == 1:
39 break
40 # A202
41 noop()
OLDNEW
« flake8-abp/setup.py ('K') | « flake8-abp/tests/A201.py ('k') | flake8-abp/tests/A203.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld