• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yangziwen / diff-check / #19

29 Apr 2026 02:07AM UTC coverage: 66.376% (-1.5%) from 67.857%
#19

push

web-flow
Merge pull request #30 from ciaranmooney/whole-file-checks

Added whole file checks

0 of 5 new or added lines in 1 file covered. (0.0%)

152 of 229 relevant lines covered (66.38%)

0.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/diff-checkstyle/src/main/java/io/github/yangziwen/checkstyle/filter/WholeDiffFilter.java
1
package io.github.yangziwen.checkstyle.filter;
2

3
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
4
import com.puppycrawl.tools.checkstyle.api.Filter;
5
import com.puppycrawl.tools.checkstyle.api.Violation;
6

7
import java.util.List;
8

9
public class WholeDiffFilter implements Filter {
10

11
    private final List<String> checkNames;
12

NEW
13
    public WholeDiffFilter(List<String> checks) {
×
NEW
14
        this.checkNames = checks;
×
NEW
15
    }
×
16

17
    @Override
18
    public boolean accept(AuditEvent event) {
NEW
19
        Violation v = event.getViolation();
×
NEW
20
        return checkNames.stream().anyMatch(checkName -> v.getSourceName().contains(checkName));
×
21
    }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc