/
unused-rule-warning.app
62 lines (49 loc) · 1.56 KB
/
unused-rule-warning.app
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//#6 Template rule refers to non-existing template
//#5 Page rule refers to non-existing page
application test
entity User{name :: String}
principal is User with credentials name
access control rules
rule page rot() { true }
rule page root() { true }
rule page root(i:Int) { true }
rule page root(i:Int,u:User *) { true }
rule page root(*) { true }
rule page ro*() { true }
rule page page() { true }
rule page pa() { true }
rule page page(i:Int) { true }
rule page page(u:User, i:Int) { true }
rule page page(i:Int,u:User *) { true }
rule page page(*) { true }
rule page pa*() { true }
rule template teml(b:Bool) { true }
rule template templ(b:Bool) { true }
rule template templ(b:Bool *) { true }
rule template templ(*) { true }
rule template te*() { true }
rule template te*(*) { true }
rule template teml(u:User) { true }
rule template templ(u:User) { true }
rule template templ(u:User *) { true }
rule ajaxtemplate ateml(b:Bool) { true }
rule ajaxtemplate atempl(b:Bool) { true }
rule ajaxtemplate atempl(b:Bool *) { true }
rule ajaxtemplate atempl(*) { true }
rule ajaxtemplate ate*() { true }
rule ajaxtemplate ate*(*) { true }
rule ajaxtemplate ateml(i:Int) { true }
rule ajaxtemplate atempl(i:Int) { true }
rule ajaxtemplate atempl(i:Int *) { true }
rule action act() { true }
section pages
define page root(){}
define page page(u:User,i:Int){}
define templ(){}
define templ(u:User){
action("action",act())
action act(){
}
}
define ajax atempl(i:Int){}
define ajax atempl(){}