-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added E117 and E118 to determine correct indentation types and fixing…
… issue 430
- Loading branch information
Showing
8 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#: INDENTATION LEVEL TEST | ||
def test(): | ||
print "c" # TAB ERROR: 1 tabs indentation expected; indentation was 2 tabs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#: SPACE ERROR TEST | ||
for a in 'abc': | ||
for b in 'xyz': # indented with 4 spaces | ||
print b # SPACE ERROR: 8 SPACES indentation expected; indentation was 9 spaces | ||
|
||
|
||
for a in 'abc': | ||
for b in 'xyz': # indented with 4 spaces | ||
print b # SPACE ERROR: 8 spaces indentation expected; indentation was 2 tabs and 0 spaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#: TAB ERROR TEST | ||
for a in 'abc': | ||
print "b" # indented with 1 tab | ||
for b in 'xyz': # indented with 1 tab | ||
print a # "TAB ERROR: 2 tabs indentation expected; indentation was 1 tabs and 5 spaces" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#: TAB ERROR TEST | ||
for a in 'abc': | ||
for b in 'xyz': | ||
print a # "TAB ERROR: 2 tabs indentation expected; indentation was 1 tabs and 5 spaces" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters