-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#265 Show that the desired output can already be reached
Closing #265
- Loading branch information
1 parent
313e2e0
commit 05b1f82
Showing
5 changed files
with
30 additions
and
150 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 |
---|---|---|
@@ -1,98 +1,5 @@ | ||
=== PLAIN MODE === | ||
In test_from_ticket.m, line 1 | ||
| function output = mainfun(input) | ||
| ^^^^^^^ style: violates naming scheme for function [naming_functions] | ||
In test_from_ticket.m, line 1 | ||
| function output = mainfun(input) | ||
| ^^^^^^^ style: Could not find any copyright notice [copyright_notice] | ||
In test_from_ticket.m, line 2 | ||
| % | ||
| ^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 3 | ||
| % docstring for mainfun | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 4 | ||
| % copyright ... | ||
| ^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 5 | ||
| % the main-function should be flattened without indentation | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 6 | ||
| % | ||
| ^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 8 | ||
| statement1; | ||
| ^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 9 | ||
| statement2; | ||
| ^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 11 | ||
| %% -------- local functions ------- | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 13 | ||
| % comment for relatively short localfun 1 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 14 | ||
| function output=localfun1(input) | ||
| ^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 14 | ||
| function output=localfun1(input) | ||
| ^ style: = must be preceeded by whitespace [fixed] [whitespace_assignment] | ||
In test_from_ticket.m, line 14 | ||
| function output=localfun1(input) | ||
| ^^^^^^^^^ style: violates naming scheme for nested [naming_functions] | ||
In test_from_ticket.m, line 15 | ||
| % local-functions, or functions with an "end" at the bottom should be indented | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 15 | ||
| % local-functions, or functions with an "end" at the bottom should be indented | ||
| ^^^ style: line exceeds 80 characters [line_length] | ||
In test_from_ticket.m, line 16 | ||
| statement1 | ||
| ^^^^^^^^^^ style: end statement with a semicolon [fixed] [end_of_statements] | ||
In test_from_ticket.m, line 16 | ||
| statement1 | ||
| ^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 17 | ||
| statement2 | ||
| ^^^^^^^^^^ style: end statement with a semicolon [fixed] [end_of_statements] | ||
In test_from_ticket.m, line 17 | ||
| statement2 | ||
| ^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 18 | ||
| end | ||
| ^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 20 | ||
| % comment for relatively short localfun 2 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 21 | ||
| function output=localfun2(input) | ||
| ^^^^^^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
In test_from_ticket.m, line 21 | ||
| function output=localfun2(input) | ||
| ^ style: = must be preceeded by whitespace [fixed] [whitespace_assignment] | ||
In test_from_ticket.m, line 21 | ||
| function output=localfun2(input) | ||
| ^^^^^^^^^ style: violates naming scheme for nested [naming_functions] | ||
In test_from_ticket.m, line 22 | ||
| % short comment on | ||
| ^^^^^^^^^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 23 | ||
| statement1 | ||
| ^^^^^^^^^^ style: end statement with a semicolon [fixed] [end_of_statements] | ||
In test_from_ticket.m, line 23 | ||
| statement1 | ||
| ^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 24 | ||
| statement2 | ||
| ^^^^^^^^^^ style: end statement with a semicolon [fixed] [end_of_statements] | ||
In test_from_ticket.m, line 24 | ||
| statement2 | ||
| ^^^^^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] [indentation] | ||
In test_from_ticket.m, line 25 | ||
| end | ||
| ^^^ style: indentation not correct, should be 4 spaces, not 0 [fixed] [indentation] | ||
MISS_HIT Style Summary: 1 file(s) analysed, 31 style issue(s) | ||
MISS_HIT Style Summary: 1 file(s) analysed, everything seems fine | ||
|
||
=== HTML MODE === | ||
MISS_HIT Style Summary: 1 file(s) analysed, 31 style issue(s) | ||
MISS_HIT Style Summary: 1 file(s) analysed, everything seems fine |
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 @@ | ||
indent_function_file_body: false | ||
suppress_rule: "end_of_statements" | ||
suppress_rule: "naming_functions" | ||
suppress_rule: "copyright_notice" | ||
suppress_rule: "line_length" |
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
40 changes: 20 additions & 20 deletions
40
tests/style/issue_265_alternative_indent/test_from_ticket.m_fixed
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
function output = mainfun(input) | ||
% | ||
% docstring for mainfun | ||
% copyright ... | ||
% the main-function should be flattened without indentation | ||
% | ||
% | ||
% docstring for mainfun | ||
% copyright ... | ||
% the main-function should be flattened without indentation | ||
% | ||
|
||
statement1; | ||
statement2; | ||
statement1; | ||
statement2; | ||
|
||
%% -------- local functions ------- | ||
%% -------- local functions ------- | ||
|
||
% comment for relatively short localfun 1 | ||
function output = localfun1(input) | ||
% local-functions, or functions with an "end" at the bottom should be indented | ||
statement1; | ||
statement2; | ||
end | ||
% comment for relatively short localfun 1 | ||
function output = localfun1(input) | ||
% local-functions, or functions with an "end" at the bottom should be indented | ||
statement1 | ||
statement2 | ||
end | ||
|
||
% comment for relatively short localfun 2 | ||
function output = localfun2(input) | ||
% short comment on | ||
statement1; | ||
statement2; | ||
end | ||
% comment for relatively short localfun 2 | ||
function output = localfun2(input) | ||
% short comment on | ||
statement1 | ||
statement2 | ||
end | ||
|
||
end |