- Fork this repository
- Git clone https://github.com/yourGitHubName/LinkChecker-CmdLC.git
- Run
maven install
andmaven build
to rebuild the project - Report an issue or a bugs
- Modify the code / Add related tests
- Run
./staticAnalysis.bat
to do code reformatting and bug checking - Run
maven test
- Write a clean and detailed Pull Request
- The LinkChecker-CmdLC requires Java 11 or higher.
The Google Java Format is a tool that reformats Java source code to comply with Google Java Style
- install google-java-format Eclipse plugin:
Help > Eclipse Marketplace > Search > Find Google-Java-Format or
- run
./staticAnalysis.bat
before you commit
The SpotBugs is a tool that uses static analysis to look for bugs in Java code
- install SpotBugs Eclipse plugin:
Help > Eclipse Marketplace > Search > Find SpotBugs or
- run
./staticAnalysis.bat
before you commit
Git automatically run staticAnalysis.bat on any changes that are being committed
run
cp ./staticAnalysis.bat .git/hooks/pre-commit
run Maven test
before you submit a Pull Request
- The tests are written in Junit4
- The tests uses PowerMockito mocking a httpConnection
- Jacoco provides a test coverage report in the "target/jacoco-ut" folder
- Add your test cases in the "src/test/java/osd" folder