Archive / CodeAnalysis

RSS feed for this section

Find duplicate code with CPD

A copy/paste detector I’m sure that you know PMD, the famous static code analyzer. But have you ever tried CPD? Installation CPD belongs to PMD. You have to install PMD first. Command line usage I give you some examples here. minimum-tokens (minimum duplicate size) and files (source directory) are the only required options. Then you can specify the […]

Checkstyle, FindBugs and PMD Gradle Configuration

Configure Code Analysis Tools with Gradle I’m really happy that configuring Checkstyle, Findbugs and PMD with Gradle is so easy. So if you want to see how I configured the tools than have a quick look at this code snippet gist: https://gist.github.com/claudioaltamura/a9e59c009db38d615dae After you have configured your Code Analysis Tool, you just have to type in: gradle […]

Statische Codeanalyse – Wie starte ich am besten?

In meinen Projekten hat sich der Einsatz von Codeanalyse-Tools immer gelohnt. Anfangs war es immer schwer, andere Entwickler von den Vorteilen zu überzeugen. Spätestens, wenn ein Tool einen unentdeckten Fehler, der noch zugleich kritisch war, gefunden hatte, waren alle anderen vom Nutzen überzeugt. Doch wie starte ich am besten in einem Projekt mit einem Codeanalysetool? […]

Consent Management Platform von Real Cookie Banner