git clone https://github.com/cflint/CFLint.git
cd CFLint
git checkout dev
gradlew clean build
CFLint will be built to build\libs
Start eclipse
Help>Eclipse Marketplace
Install 'BuildShip' for Gradle integration
File>New>Other>Gradle>Gradle Project
Name the project, uncheck 'Use default location', browse to your git clone.
Window>Show View>Git Repositories
past the git url for CFLint
CFLint>Branches>Remote Tracking>origin/dev
right click on origin/dev and checkout.
Right click on CFLint in the project navigator,
Gradle>Refresh Gradle Project.
(use when the build.gradle file changes)
Right click on src/test/java/com/cflint/integration/TestFiles.java
Run As>JUnit Test
This will run most the majority of the unit tests.
The best way to add a new test to the CFLint test suite is to add it to:
src\test\resources\com\cflint\tests\
as pure CF code. Give the file a name that describes the scenario you are testing and a '.cfm' or '.cfc' extension. The first time you run TestFiles, the build will create a file with the same name as your input, but with an extension of ".expected.txt". Future runs will only pass if the actual results match the expected file. For CFLint, this is better practice than writing the JUnit test yourself.
Contributions are welcome. Here's how you make your first code or test contributions:
- Fork CFLint on github.
- Make your changes in the dev branch.
- Push your changes to your github repo.
- Create a pull request.