Skip to content
Support Kotlin in Flycheck
Emacs Lisp
Branch: master
Clone or download
whirm Merge pull request #2 from amake/original
Use source-original to prevent spurious naming errors
Latest commit 5104ee9 Aug 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Jan 20, 2017
README.md
flycheck-kotlin.el Use source-original to prevent spurious naming errors Aug 8, 2019

README.md

Melpa Status Melpa Stable Status

flycheck-kotlin

This library provides a [flycheck][] checker for [Kotlin] files.

Installation

You'll need Emacs 24 for flycheck, so the recommended way to get flycheck-kotlin is as a package from the [MELPA][melpa] repository. The version of flycheck-kotlin there will always be up-to-date.

If you insist on doing things the hard way, first ensure flycheck is installed, then download this code and add the directory to your Emacs load-path.

Then, in your init.el:

(eval-after-load 'flycheck
  (progn
    (require 'flycheck-kotlin)
    (flycheck-kotlin-setup)))

Make sure that the ktlint binary is present on Emacs' exec-path. See ktlint site for details.

Usage

When flycheck is enabled (e.g. with global-flycheck-mode), kotlin-mode buffers will be automatically checked using this checker.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

See COPYING for details.

About

flycheck-kotlin was written by Elric Milon.

You can’t perform that action at this time.