benbro / jitsi-media-transform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jitsi Media Transform

Jitsi Media Transform contains classes for processing and transforming 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 https://github.com/pinterest/ktlint/releases/download/0.39.0/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 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:

ktlint --apply-to-idea-project

Autoformatting can be run by calling ktlint -F.

About

License:Apache License 2.0


Languages

Language:Kotlin 83.5%Language:Java 15.6%Language:Perl 0.6%Language:JavaScript 0.2%Language:HTML 0.1%Language:Shell 0.0%