Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Recipe

 Jlint (https://sourceforge.net/projects/jlint/)is yet another static code review tool.  After installation via the download site or under a Debian based linux:

 sudo apt-get install jlint

 I created a script similar to below.

Note: Jlint should work on any code that has its class files exposed and very quickly indeed. Just replace the variables WWW,SAKAI,JLINT under a *NIX system.

 #!/bin/bash
WWW=/home/sakaiqa/codereview/trunk
SAKAI=/home/sakaiqa/site-generator/website/src/trunk
JLINT=/usr/local/bin/jlint

DATE=`date`
echo STARTING JLINT tests - $DATE
cd $SAKAI

echo STARTING JLINT > $WWW/jlint_all.txt
echo $DATE >> $WWW/jlint_all.txt
find . -name '*.class' | xargs jlint -not_overridden \
-shadow_local > $WWW/jlint_all.txt

DATE=`date`
echo STARTING JLINT BOUND CHECKING> $WWW/jlint_bounds.txt
echo $DATE >> $WWW/jlint_bounds.txt
`grep -i " bounds" $WWW/jlint_all.txt >> $WWW/jlint_bounds.txt`
DATE=`date`
echo ENDING JLINT - $DATE




  • No labels