cflint / CFLint

Static code analysis for CFML (a linter)
BSD 3-Clause "New" or "Revised" License
174 stars 84 forks source link

Setters. setIssues(Map<String, List<BugInfo>> bugsList) #616

Open Vintic opened 5 years ago

Vintic commented 5 years ago

Hi, I added some setters to combine several results in one report. In CFLintResult.java add:

public void setIssues(Map<String, List<BugInfo>> bugsList){
        BugList bugs = cflint.getBugs();
        bugs.setBugList(bugsList);
        cflint.setBugs(bugs);
    }

In BugList.java add:

public void setBugList(Map<String, List<BugInfo>> bugs) {
        this.bugs = bugs;
    }
KamasamaK commented 5 years ago

@Vintic This is what pull requests are for.