-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jade Abraham <[email protected]>
- Loading branch information
1 parent
4c2ed02
commit 82da456
Showing
3 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module InternalPrefix { | ||
proc myprefix_my_proc() {} // bad | ||
proc myprefix_MyProc() {} // bad | ||
proc myprefix_myProc() {} // ok | ||
|
||
record myprefix_my_rec {} // bad | ||
record myprefix_MyRec {} // bad | ||
record myprefix_myRec {} // ok | ||
|
||
class myprefix_my_class {} // bad | ||
class myprefix_MyClass {} // ok | ||
class myprefix_myClass {} // bad | ||
} |
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 @@ | ||
--check-internal-prefix |
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 @@ | ||
InternalPrefix.chpl:2: node violates rule CamelCaseFunctions | ||
InternalPrefix.chpl:3: node violates rule CamelCaseFunctions | ||
InternalPrefix.chpl:6: node violates rule CamelCaseRecords | ||
InternalPrefix.chpl:7: node violates rule CamelCaseRecords | ||
InternalPrefix.chpl:10: node violates rule PascalCaseClasses | ||
InternalPrefix.chpl:12: node violates rule PascalCaseClasses |