For bug report, please open an issue at the GitHub issue tracker.
Please follow the Conventional Commits when writing commit messages.
It would be nice to include the scope in the commit message.
Generally, the scope will be the name of the top level module.
For changes in src/x
, the scope will be x
.
For example, when making changes to src/jvm/class.rs
, the commit message will be feat(jvm): xxx
or fix(jvm): xx
.
Before submitting a pull request, please do the following checks:
- Make sure
cargo fmt --check
does not complain. - Make sure
cargo clippy --all-targets --all-features -- -D warnings
does not complain.
MokaPot needs your contribution to be better. Please check TODO.md for a list of tasks that we are planning to do.
tests/jdk_classes.rs
contains integration test that runs MokaPot on JDK classes.
Additional steps are required to run the test case.
# First, tell MokaPot to run integration tests.
export INTEGRATION_TEST=1
# Then, extract the JDK classes from the JDK distribution.
jimage extract --dir="<extraction path>" "$JAVA_HOME/lib/modules"
# Next, tell MokaPot where the extracted JDK classes are.
export JDK_CLASSES="<extraction path>"
# Finally, run the integration test.
cargo nextest run --run-ignored=all
By contributing to this project, you must certify that your contribution complies with the Developer Certificate of Origin.
You may use the following git
command to sign-off your commit.
git commit --signoff