Skip to content

Commit

Permalink
#493. include transaction blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Dec 21, 2017
1 parent f469c5a commit 2f8613c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/cflint/CFLint.java
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ private void process(final CFScriptStatement expression, final Context context)
}
} else {
scanExpression(expression, context, elem);
for(CFScriptStatement childExpression: expression.decomposeScript()){
process(childExpression, context);
}
}
} catch (final StackOverflowError soe) {
System.err.println("Stack overflow in " + context.getFilename());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
component{
function foo(){
var foo = "";
transaction {
foo = 1;
bar(foo);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version" : "",
"timestamp" : 1513825814,
"issues" : [ ],
"counts" : {
"totalFiles" : 0,
"totalLines" : 0,
"countByCode" : [ ],
"countBySeverity" : [ ]
}
}

0 comments on commit 2f8613c

Please sign in to comment.