Programming Tips - How can I quickly run findbugs on Fedora?

Date: 2014may29 OS: Linux Distro: RedHat/Fedora/CentOS Language: Java Keywords: lint, find, bugs Q. How can I quickly run findbugs on Fedora? (It finds problems in Java code) A. Install it:
dnf install findbugs
Run it:
findbugs -sourcepath <my-src> <my-jar> > bugs.txt
For example:
findbugs -sourcepath /usr/local/src/mycode /tmp/myjar.jar > bugs.txt
If you get an error about dom4j missing, do:
dnf install dom4j