Jitsi RTP contains classes for parsing and creating RTP and RTCP packets.
We use ktlint for linting and autoformatting. The ktlint command-line utility can be installed by running:
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.34.2/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
Or, on macOS with Homebrew:
brew install ktlint
To perform the checks simply run
You can install a pre-commit or pre-push git hook by running this in the git repository directory:
You can automatically update Intellij IDEA's formatting rules to to be compatible with ktlint. However, note that version 0.34.2 of ktlint will override any Java code style settings.
Autoformatting can be run by calling