Skip to content

Commit

Permalink
#359 - parse only the CF tag attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Jul 22, 2017
1 parent 1e01cea commit 925acb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/cflint/CFLint.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,9 @@ private void process(final Element elem, final String space, final Context conte
}

private List<CFExpression> unpackTagExpressions(final Element elem) {
final List<CFExpression> expressions = new ArrayList<CFExpression>();
if(elem.getAttributes()==null){

final List<CFExpression> expressions = new ArrayList<CFExpression>();
if(!elem.getName().toLowerCase().startsWith("cf") || elem.getAttributes()==null){
return expressions;
}
//Unpack any attributes that have a hash expression
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div style="background-color:#8d9bdc;"><cfoutput>#foo#</cfoutput></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[ {
"totalfiles" : 0
}, {
"totalsize" : 0
} ]

0 comments on commit 925acb4

Please sign in to comment.