karan / joe

:running: A .gitignore magician in your command line
http://karan.github.io/joe/
MIT License
2.88k stars 210 forks source link

Styled for PEP8 and Pylint #23

Closed lorepozo closed 9 years ago

lorepozo commented 9 years ago

PEP8:

$ pep8 joe/joe.py
joe/joe.py:36:1: E302 expected 2 blank lines, found 0
joe/joe.py:45:43: E502 the backslash is redundant between brackets
joe/joe.py:46:17: E127 continuation line over-indented for visual indent
joe/joe.py:91:79: E502 the backslash is redundant between brackets
joe/joe.py:92:50: E127 continuation line over-indented for visual indent

Pylint:

$ pylint joe/joe.py
************* Module joe.joe
C:107, 0: Unnecessary parens after 'if' keyword (superfluous-parens)
C:109, 0: Unnecessary parens after 'elif' keyword (superfluous-parens)
W:  1, 0: Anomalous backslash in string: '\ '. String constant might be
missing an r prefix. (anomalous-backslash-in-string)
W:  1, 0: Anomalous backslash in string: '\_'. String constant might be
missing an r prefix. (anomalous-backslash-in-string)
W:  1, 0: Anomalous backslash in string: '\_'. String constant might be
missing an r prefix. (anomalous-backslash-in-string)
W:  1, 0: Anomalous backslash in string: '\_'. String constant might be
missing an r prefix. (anomalous-backslash-in-string)
W: 46,20: Redefining name 'f' from outer scope (line 54)
(redefined-outer-name)
C: 43, 4: Invalid variable name "l" (invalid-name)
C: 44,14: Invalid variable name "subFolders" (invalid-name)
C: 45, 8: Invalid variable name "l" (invalid-name)
W: 44,14: Unused variable 'subFolders' (unused-variable)
W: 44, 8: Unused variable 'root' (unused-variable)
W: 64, 4: Redefining built-in 'exit' (redefined-builtin)
W: 64, 4: Unused variable 'exit' (unused-variable)
W: 97,31: Redefining name 'f' from outer scope (line 54)
(redefined-outer-name)
C: 97,31: Invalid variable name "f" (invalid-name)
C:104, 0: Missing function docstring (missing-docstring)
W: 27, 0: Unused import sys (unused-import)