Skip to content
RTP parsing
Kotlin Java
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/jenkins add jenkins build script Jun 3, 2019
src Move Kotlin tests to src/test/kotlin directory. (#45) Sep 12, 2019
.gitignore Ignores .kotlintest. Mar 20, 2019
LICENSE Update version of ktlint in (#43) Sep 9, 2019
pom.xml ktlint 0.34.2 cleanups. (#42) Sep 9, 2019

Jitsi RTP

Jitsi RTP contains classes for parsing and creating RTP and RTCP packets.

Code style

We use ktlint for linting and autoformatting. The ktlint command-line utility can be installed by running:

curl -sSLO && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/

Or, on macOS with Homebrew:

brew install ktlint

To perform the checks simply run ktlint.

You can install a pre-commit or pre-push git hook by running this in the git repository directory:

ktlint --install-git-pre-commit-hook

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.

ktlint --apply-to-idea-project

Autoformatting can be run by calling mvn antrun:run@ktlint-format.

You can’t perform that action at this time.