Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed May 24, 2015
1 parent 9594512 commit 2173a35
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions resources/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,32 @@
"props": {
"severity": "ERROR",
"format": "^[A-Z][A-Z0-9]*(_[A-Z0-9_]+)*$",
"tokens": [ "INLINE" ]
"tokens": [
"INLINE"
]
}
},
{
"type": "ConstantName",
"props": {
"severity": "ERROR",
"format": "^[a-z]+[a-zA-Z0-9_]*$",
"tokens": [ "NOTINLINE" ]
"tokens": [
"NOTINLINE"
]
}
},
{
"type": "CyclomaticComplexity",
"props": {
"thresholds": [
{
"severity" : "WARNING",
"complexity" : 11
"severity": "WARNING",
"complexity": 11
},
{
"severity" : "ERROR",
"complexity" : 21
"severity": "ERROR",
"complexity": 21
}
]
}
Expand Down Expand Up @@ -107,15 +111,21 @@
"props": {
"severity": "ERROR",
"format": "^[A-Z]+[A-Z0-9_]*$",
"tokens": [ "ENUM" ]
"tokens": [
"ENUM"
]
}
},
{
"type": "MemberName",
"props": {
"severity": "ERROR",
"format": "^[a-z]+[a-zA-Z0-9_]*$",
"tokens": [ "PUBLIC", "PRIVATE", "TYPEDEF" ]
"tokens": [
"PUBLIC",
"PRIVATE",
"TYPEDEF"
]
}
},
{
Expand Down Expand Up @@ -226,15 +236,21 @@
"props": {
"severity": "ERROR",
"format": "^I[A-Z]+[a-zA-Z0-9_]*$",
"tokens": [ "INTERFACE" ]
"tokens": [
"INTERFACE"
]
}
},
{
"type": "TypeName",
"props": {
"severity": "ERROR",
"format": "^[A-Z]+[a-zA-Z0-9_]*$",
"tokens": [ "CLASS", "ENUM", "TYPEDEF" ]
"tokens": [
"CLASS",
"ENUM",
"TYPEDEF"
]
}
},
{
Expand All @@ -244,4 +260,4 @@
}
}
]
}
}

0 comments on commit 2173a35

Please sign in to comment.