Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Aug 7, 2017
1 parent 9ddac32 commit 62ef5dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cflint/CFLint.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void scan(final String folderName) {
fireClose();
}

private void setupConfigAncestry(File folder){
public void setupConfigAncestry(File folder){
Stack<CFLintConfig> configFiles = new Stack<CFLintConfig>();
fileLoop:
while(folder != null && folder.exists()){
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/cflint/main/CFLintMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ private void execute() throws IOException, TransformerException, JAXBException,
source.append(System.lineSeparator());
}
scanner.close();
final File starterFile = new File(stdInFile);
if (starterFile.exists() && starterFile.getParentFile().exists()){
cflint.setupConfigAncestry(starterFile.getParentFile());
}
cflint.process(source.toString(), stdInFile);
}
for (BugInfo bug : cflint.getBugs()) {
Expand Down

0 comments on commit 62ef5dd

Please sign in to comment.