Automated Code Reviews for Java¶
Scrutinizer provides first-class analysis of Java code. We infer a default configuration for you. You can tweak the
defaults by placing a .scrutinizer.yml
in your project's root folder.
Automated Checks¶
By default, we enable code rating, code metrics and duplicate code detection along with some checks for best practices, performance and security issues. The minimal configuration for Java looks as follows:
checks:
java: true
Open-Source Analysis Tools¶
If you are already using open-source analysis tools like SonarJava, PMD, FindBugs and Checkstyle, you can run these in Scrutinizer's build environment, too.
In general, we support all tools that produce results in the common checkstyle format. If you would like to run a tool that produces a different format that we do not support yet, just drop us a line at support@scrutinizer-ci.com.
Analyzed Files¶
By default, Scrutinizer will analyze all files ending with .java
in your project. If you have generated code, or
dependencies embedded in your project, or would like to exclude your tests from the analysis, this can be achieved easily:
filter:
excluded_paths:
- test/*
Learn more about excluding files from the analysis.