Skip to content

Instantly share code, notes, and snippets.

View 89luca89's full-sized avatar

Luca Di Maio 89luca89

View GitHub Profile
@89luca89
89luca89 / analyze-pmd.sh
Last active January 29, 2018 18:10
Simple code analyzer, using PMD and Zenity for a little gui. I'm using it with Vim but outputs to file so compatible with any tool
#!/bin/sh
TITLE="Analyze the code"
TEXT="Choose your rules (can be multiple)"
FILENAME=/tmp/pmd-$(date "+%F-%H-%M").log
declare -a RULES=("android"
"basic"
"braces"
"codesize"