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

Unified Diff: flake8-abp/tests/A204.py

Issue 29340727: Noissue - Added flake8 extension accounting for our coding style and some other stuff (Closed)
Patch Set: Addressed comments, fixed two bugs, use ascii() Created May 9, 2016, 4:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « flake8-abp/tests/A203.py ('k') | flake8-abp/tests/A204_module.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flake8-abp/tests/A204.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/flake8-abp/tests/A204.py
@@ -0,0 +1,67 @@
+def noop():
+ pass
+
+
+def superfluos_pass():
+ noop()
+ # A204
+ pass
+
+
+def multiple_pass():
+ pass
+ # A204
+ pass
+
+
+class SuperfluosPass:
+ noop()
+ # A204
+ pass
+
+
+class MultiplePass:
+ pass
+ # A204
+ pass
+
+
+if True:
+ noop()
+ # A204
+ pass
+else:
+ noop()
+ # A204
+ pass
+
+for i in range(10):
+ noop()
+ # A204
+ pass
+else:
+ noop()
+ # A204
+ pass
+
+while True:
+ noop()
+ # A204
+ pass
+else:
+ noop()
+ # A204
+ pass
+
+try:
+ noop()
+ # A204
+ pass
+except:
+ noop()
+ # A204
+ pass
+finally:
+ noop()
+ # A204
+ pass
« no previous file with comments | « flake8-abp/tests/A203.py ('k') | flake8-abp/tests/A204_module.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld