Scapegoat is a static code analyser for Scala that works as a compiler plugin.
Rather than concentrating solely on formatting or conventional style rules, it examines compiled Scala source for patterns that may indicate bugs, unsafe behaviour, confusing constructs or non-idiomatic code. This allows it to complement style-oriented tools while giving developers a broad collection of inspections that can be incorporated directly into existing builds. Its analysis can be tuned to the needs of an individual codebase, including projects where only selected inspections should be enforced.
This is free and open source software.
Key Features
- Provides a large collection of inspections covering correctness, maintainability, suspicious constructs and programming practices.
- Detects issues such as unsafe casts, problematic exception handling, questionable comparisons and misuse of collections.
- Identifies code patterns that can produce surprising results, including floating-point comparisons and unsafe collection operations.
- Supports different inspection levels so findings can be classified according to their importance.
- Lets users enable only specified inspections or disable checks that are inappropriate for a particular project.
- Supports custom inspectors, allowing teams to extend analysis with project-specific checks.
- Can exclude source files using configurable regular-expression patterns.
- Generates reports in multiple formats including HTML, XML, Markdown, Scalastyle and GitLab code-quality output.
- Can print findings directly to the console for straightforward use in local builds and automated workflows.
- Allows warning levels to be overridden individually rather than accepting the supplied defaults.
- Integrates with sbt and can also be incorporated into Maven and Gradle-based Scala builds.
- Provides mechanisms for suppressing individual findings where a particular occurrence is intentional.
Website: github.com/scapegoat-scala/scapegoat
Support:
Developer: Stephen Samuel and contributors
License: Apache License 2.0
Scapegoat is written in Scala. Learn Scala with our recommended free books and free tutorials.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.