diff --git a/tests/style/bug_245_excessive_line_continuation/expected_out.html b/tests/style/bug_245_excessive_line_continuation/expected_out.html new file mode 100644 index 0000000..baffa5d --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/expected_out.html @@ -0,0 +1,72 @@ + + + + + +MISS_HIT Report + + +
MISS_HIT Report
+
+
+

Issues identified

+
+

test_1.m

+
test_1.m: style: violates naming scheme for scripts
+
test_1.m: line 3: style: continuation must be preceeded by whitespace
+
test_1.m: line 4: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 4: style: continuation must be preceeded by whitespace
+
test_1.m: line 5: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 5: style: continuation must be preceeded by whitespace
+
test_1.m: line 6: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 6: style: continuation must be preceeded by whitespace
+
test_1.m: line 7: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 7: style: continuation must be preceeded by whitespace
+
test_1.m: line 8: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 8: style: continuation must be preceeded by whitespace
+
test_1.m: line 9: style: indentation not correct, should be 6 spaces, not 4
+
test_1.m: line 9: style: continuation must be preceeded by whitespace
+
test_1.m: line 10: style: indentation not correct, should be 5 spaces, not 4
+
test_1.m: line 10: style: continuation must be preceeded by whitespace
+
test_1.m: line 11: style: indentation not correct, should be 5 spaces, not 4
+
test_1.m: line 11: style: continuation must be preceeded by whitespace
+
test_1.m: line 12: style: indentation not correct, should be 5 spaces, not 4
+
test_1.m: line 12: style: continuation must be preceeded by whitespace
+
test_1.m: line 13: style: indentation not correct, should be 5 spaces, not 4
+
test_1.m: line 13: style: continuation must be preceeded by whitespace
+
test_1.m: line 14: style: indentation not correct, should be 5 spaces, not 4
+
test_1.m: line 14: style: continuation must be preceeded by whitespace
+
test_1.m: line 15: style: indentation not correct, should be 5 spaces, not 4
+

test_2.m

+
test_2.m: style: violates naming scheme for scripts
+

test_3.m

+
test_3.m: style: violates naming scheme for scripts
+
test_3.m: line 3: style: continuation must be preceeded by whitespace
+
test_3.m: line 4: style: indentation not correct, should be 8 spaces, not 4
+
test_3.m: line 4: style: continuation must be preceeded by whitespace
+
test_3.m: line 5: style: indentation not correct, should be 11 spaces, not 4
+
test_3.m: line 5: style: continuation must be preceeded by whitespace
+
test_3.m: line 6: style: indentation not correct, should be 6 spaces, not 4
+
test_3.m: line 6: style: continuation must be preceeded by whitespace
+
test_3.m: line 7: style: indentation not correct, should be 21 spaces, not 4
+
test_3.m: line 7: style: continuation must be preceeded by whitespace
+
test_3.m: line 8: style: indentation not correct, should be 11 spaces, not 4
+
test_3.m: line 8: style: continuation must be preceeded by whitespace
+
test_3.m: line 9: style: indentation not correct, should be 6 spaces, not 4
+
test_3.m: line 10: style: indentation not correct, should be 5 spaces, not 4
+
test_3.m: line 10: style: continuation must be preceeded by whitespace
+
test_3.m: line 11: style: indentation not correct, should be 10 spaces, not 4
+
test_3.m: line 11: style: continuation must be preceeded by whitespace
+
test_3.m: line 12: style: indentation not correct, should be 20 spaces, not 4
+
test_3.m: line 12: style: continuation must be preceeded by whitespace
+
test_3.m: line 13: style: indentation not correct, should be 5 spaces, not 4
+
test_3.m: line 13: style: continuation must be preceeded by whitespace
+
test_3.m: line 14: style: indentation not correct, should be 10 spaces, not 4
+
test_3.m: line 14: style: continuation must be preceeded by whitespace
+
test_3.m: line 15: style: indentation not correct, should be 7 spaces, not 4
+

test_4.m

+
test_4.m: style: violates naming scheme for scripts
+
+
+ + diff --git a/tests/style/bug_245_excessive_line_continuation/expected_out.txt b/tests/style/bug_245_excessive_line_continuation/expected_out.txt new file mode 100644 index 0000000..02471ea --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/expected_out.txt @@ -0,0 +1,154 @@ +=== PLAIN MODE === +test_1.m: style: violates naming scheme for scripts +In test_1.m, line 3 +| a = b(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 4 +| c(... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 4 +| c(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 5 +| d(... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 5 +| d(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 6 +| e(... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 6 +| e(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 7 +| f(... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 7 +| f(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 8 +| g(... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 8 +| g(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 9 +| h... +| ^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_1.m, line 9 +| h... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 10 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_1.m, line 10 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 11 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_1.m, line 11 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 12 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_1.m, line 12 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 13 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_1.m, line 13 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 14 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_1.m, line 14 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_1.m, line 15 +| ); +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +test_2.m: style: violates naming scheme for scripts +test_3.m: style: violates naming scheme for scripts +In test_3.m, line 3 +| a = foo(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 4 +| potato(... +| ^^^^^^ style: indentation not correct, should be 8 spaces, not 4 [fixed] +In test_3.m, line 4 +| potato(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 5 +| x(... +| ^ style: indentation not correct, should be 11 spaces, not 4 [fixed] +In test_3.m, line 5 +| x(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 6 +| kitten_explosion(... +| ^^^^^^^^^^^^^^^^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_3.m, line 6 +| kitten_explosion(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 7 +| wibble(... +| ^^^^^^ style: indentation not correct, should be 21 spaces, not 4 [fixed] +In test_3.m, line 7 +| wibble(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 8 +| y(... +| ^ style: indentation not correct, should be 11 spaces, not 4 [fixed] +In test_3.m, line 8 +| y(... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 9 +| 12345 ... +| ^^^^^ style: indentation not correct, should be 6 spaces, not 4 [fixed] +In test_3.m, line 10 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_3.m, line 10 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 11 +| )... +| ^ style: indentation not correct, should be 10 spaces, not 4 [fixed] +In test_3.m, line 11 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 12 +| )... +| ^ style: indentation not correct, should be 20 spaces, not 4 [fixed] +In test_3.m, line 12 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 13 +| )... +| ^ style: indentation not correct, should be 5 spaces, not 4 [fixed] +In test_3.m, line 13 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 14 +| )... +| ^ style: indentation not correct, should be 10 spaces, not 4 [fixed] +In test_3.m, line 14 +| )... +| ^^^^ style: continuation must be preceeded by whitespace [fixed] +In test_3.m, line 15 +| ); +| ^ style: indentation not correct, should be 7 spaces, not 4 [fixed] +test_4.m: style: violates naming scheme for scripts +MISS_HIT Style Summary: 4 file(s) analysed, 51 style issue(s) + +=== HTML MODE === +MISS_HIT Style Summary: 4 file(s) analysed, 51 style issue(s) + +=== ! BROKEN FIXES ! === +Fixing is not idempotent for ./test_1.m +Fixing is not idempotent for ./test_3.m diff --git a/tests/style/bug_245_excessive_line_continuation/miss_hit.cfg b/tests/style/bug_245_excessive_line_continuation/miss_hit.cfg new file mode 100644 index 0000000..5caa462 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/miss_hit.cfg @@ -0,0 +1 @@ +suppress_rule: "copyright_notice" diff --git a/tests/style/bug_245_excessive_line_continuation/test_1.m b/tests/style/bug_245_excessive_line_continuation/test_1.m new file mode 100644 index 0000000..f298415 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_1.m @@ -0,0 +1,15 @@ +% Taken from #245 + +a = b(... + c(... + d(... + e(... + f(... + g(... + h... + )... + )... + )... + )... + )... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_1.m_fixed b/tests/style/bug_245_excessive_line_continuation/test_1.m_fixed new file mode 100644 index 0000000..95eb584 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_1.m_fixed @@ -0,0 +1,15 @@ +% Taken from #245 + +a = b( ... + c( ... + d( ... + e( ... + f( ... + g( ... + h ... + ) ... + ) ... + ) ... + ) ... + ) ... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_2.m b/tests/style/bug_245_excessive_line_continuation/test_2.m new file mode 100644 index 0000000..0b177b8 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_2.m @@ -0,0 +1,15 @@ +% Taken from #245 + +a = b( ... + c( ... + d( ... + e( ... + f( ... + g( ... + h ... + ) ... + ) ... + ) ... + ) ... + ) ... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_2.m_fixed b/tests/style/bug_245_excessive_line_continuation/test_2.m_fixed new file mode 100644 index 0000000..0b177b8 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_2.m_fixed @@ -0,0 +1,15 @@ +% Taken from #245 + +a = b( ... + c( ... + d( ... + e( ... + f( ... + g( ... + h ... + ) ... + ) ... + ) ... + ) ... + ) ... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_3.m b/tests/style/bug_245_excessive_line_continuation/test_3.m new file mode 100644 index 0000000..0ee27f6 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_3.m @@ -0,0 +1,15 @@ +% (c) Copyright 2021 Florian Schanda + +a = foo(... + potato(... + x(... + kitten_explosion(... + wibble(... + y(... + 12345 ... + )... + )... + )... + )... + )... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_3.m_fixed b/tests/style/bug_245_excessive_line_continuation/test_3.m_fixed new file mode 100644 index 0000000..64015f2 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_3.m_fixed @@ -0,0 +1,15 @@ +% (c) Copyright 2021 Florian Schanda + +a = foo( ... + potato( ... + x( ... + kitten_explosion( ... + wibble( ... + y( ... + 12345 ... + ) ... + ) ... + ) ... + ) ... + ) ... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_4.m b/tests/style/bug_245_excessive_line_continuation/test_4.m new file mode 100644 index 0000000..7cadbf6 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_4.m @@ -0,0 +1,15 @@ +% (c) Copyright 2021 Florian Schanda + +a = foo( ... + potato( ... + x( ... + kitten_explosion( ... + wibble( ... + y( ... + 12345 ... + ) ... + ) ... + ) ... + ) ... + ) ... + ); diff --git a/tests/style/bug_245_excessive_line_continuation/test_4.m_fixed b/tests/style/bug_245_excessive_line_continuation/test_4.m_fixed new file mode 100644 index 0000000..7cadbf6 --- /dev/null +++ b/tests/style/bug_245_excessive_line_continuation/test_4.m_fixed @@ -0,0 +1,15 @@ +% (c) Copyright 2021 Florian Schanda + +a = foo( ... + potato( ... + x( ... + kitten_explosion( ... + wibble( ... + y( ... + 12345 ... + ) ... + ) ... + ) ... + ) ... + ) ... + );