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

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

Issue 29340727: Noissue - Added flake8 extension accounting for our coding style and some other stuff (Closed)
Patch Set: Added README Created May 9, 2016, 1:43 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
Index: flake8-abp/tests/A111.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/flake8-abp/tests/A111.py
@@ -0,0 +1,27 @@
+def redundant_parenthesis(x, y, z):
+ # * A111
+ while (x):
+ # * A111
+ if ((x or y) and z):
+ pass
+ # * A111
+ elif (x == max(y, z)):
+ pass
+ else:
+ return
+
+
+def mandatory_parenthesis(x, y, z):
+ if ():
+ return
+ if (x, y, z):
+ return
+
+ if (x or y) and z:
+ return
+ if x and (y or z):
+ return
+
+ if (x or
+ y):
+ return
« flake8-abp/README.md ('K') | « flake8-abp/tests/A110.py ('k') | flake8-abp/tests/A201.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld