Skip to content
Régis Décamps edited this page Sep 29, 2018 · 2 revisions

Contributions are welcome

JFlex is free software and contributions are welcome.

The preferred way to contribute code changes or fixes is via github pull requests. Before you send a pull request, please make sure that unit tests and regression test suite pass.

Code style

JFlex follows the Google-style for Java.

This is enforced by the fmt-maven-plugin.

You can also use a configuration style

Setting up your environment

We provide help on how to set up your development environment.

Running the test suites

Short version

./run-tests

This runs the entire test suites, including unit and regression tests, as well as examples.

Longer version

Unit tests are run automatically if you locally install the jflex package for instance via

mvn -N install
mvn install

The regression test suite must be run from the directory testsuite/testcases, for instance with

mvn test

The jflex/examples can be run individually either by calling make or mvn test.

Get in touch

If you have larger code changes or new features to contribute it is usually a good idea to get in touch with the developers first and discuss if your idea fits with the rest of the JFlex design. You can get in contact either on the github issue tracking system or the JFlex users mailing list.