In order to build the project install the dependencies mentioned in the README.
Run a full project build with the command:
$ bazelisk build //...
The specific module can be tested with:
$ bazelisk test //keyderivation/...
In case proto definitions change, are added or removed run Gazelle to regenerate the BUILD files.
$ bazelisk run //:gazelle
We use a couple of linters to format code, be sure to run them before submitting a change.
- Ktlint for Kotlin files (
bazelisk run //:ktlint_format
) - IntelliJ IDEA (run headless) for many types of files
(
bazelisk run //:intellij_format
) - addlicense for license headers many types of files
(
bazelisk run //:addlicense_format
) - Buildifier for
.bzl
,BUILD.bazel
andWORKSPACE
files (bazelisk run //:buildifier_format
)