Skip to content

Commit

Permalink
add test for flag
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 11, 2024
1 parent 4c2ed02 commit 82da456
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/chplcheck/InternalPrefix.chpl
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
}
1 change: 1 addition & 0 deletions test/chplcheck/InternalPrefix.chplcheckopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--check-internal-prefix
6 changes: 6 additions & 0 deletions test/chplcheck/InternalPrefix.good
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

0 comments on commit 82da456

Please sign in to comment.