-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Name Shadowing lint rule (#124)
* Adds Name Shadowing lint rule * Refined messaging for shadowing a global function
- Loading branch information
1 parent
4581ee9
commit fa6a65c
Showing
8 changed files
with
240 additions
and
4 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
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
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,8 @@ | ||
namespace TestNamespace | ||
const TestFunction = 3 | ||
const Lcase = 4 | ||
end namespace | ||
|
||
function TestFunction() | ||
return 2 | ||
end function |
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,12 @@ | ||
namespace TestNamespace | ||
class TestImportClass | ||
end class | ||
|
||
enum TestImportEnum | ||
end enum | ||
|
||
interface TestImportInterface | ||
end interface | ||
|
||
const TestImportConst = 1 | ||
end namespace |
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,40 @@ | ||
class TestClass | ||
end class | ||
|
||
enum TestEnum | ||
end enum | ||
|
||
interface TestInterface | ||
end interface | ||
|
||
const TestConst = 1 | ||
|
||
|
||
namespace TestNamespace | ||
|
||
class TestClass | ||
end class | ||
|
||
enum TestEnum | ||
end enum | ||
|
||
interface TestInterface | ||
end interface | ||
|
||
const TestConst = 1 | ||
|
||
const TestNamespace = 2 | ||
|
||
end namespace | ||
|
||
|
||
class TestImportClass | ||
end class | ||
|
||
enum TestImportEnum | ||
end enum | ||
|
||
interface TestImportInterface | ||
end interface | ||
|
||
const TestImportConst = 1 |