-
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.
#276 Correctly raise error on function names with dots outside class
Fixes #276
- Loading branch information
1 parent
b76e6e7
commit f01fbf9
Showing
6 changed files
with
53 additions
and
8 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
19 changes: 19 additions & 0 deletions
19
tests/style/bug_276_ice_on_dodgy_function_name/expected_out.html
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="file:../../../docs/style.css"> | ||
<title>MISS_HIT Report</title> | ||
</head> | ||
<body> | ||
<header>MISS_HIT Report</header> | ||
<main> | ||
<div></div> | ||
<h1>Issues identified</h1> | ||
<section> | ||
<h2>test.m</h2> | ||
<div class="message"><a href="matlab:opentoline('test.m', 1, 19)">test.m: line 1:</a> error: dotted name is not permitted outside class</div> | ||
</section> | ||
</main> | ||
</body> | ||
</html> |
9 changes: 9 additions & 0 deletions
9
tests/style/bug_276_ice_on_dodgy_function_name/expected_out.txt
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 @@ | ||
=== PLAIN MODE === | ||
test.m: error: file is not auto-fixed because it contains parse errors | ||
In test.m, line 1 | ||
| function pth = foo.bar() | ||
| ^ error: dotted name is not permitted outside class | ||
MISS_HIT Style Summary: 1 file(s) analysed, 2 error(s) | ||
|
||
=== HTML MODE === | ||
MISS_HIT Style Summary: 1 file(s) analysed, 1 error(s) |
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,3 @@ | ||
function pth = foo.bar() | ||
|
||
end |
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,3 @@ | ||
function pth = foo.bar() | ||
|
||
end |