ktlint 0.40.0 (#66267)

* ktlint 0.40.0

* fix build

Signed-off-by: Rui Chen <rui@meetup.com>

Co-authored-by: Rui Chen <rui@meetup.com>
master
Sha Sha Chu 2020-12-05 20:48:35 -08:00 committed by GitHub
parent 0968f45c31
commit 1a49648416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -1,14 +1,18 @@
class Ktlint < Formula
desc "Anti-bikeshedding Kotlin linter with built-in formatter"
homepage "https://ktlint.github.io/"
url "https://github.com/pinterest/ktlint/releases/download/0.39.0/ktlint"
sha256 "cf1c1a2efca79d07957a4de815af6e74287e46730d02393593edfa304e237153"
url "https://github.com/pinterest/ktlint/releases/download/0.40.0/ktlint"
sha256 "4739662e9ac9a9894a1eb47844cbb5610971f15af332eac94d108d4f55ebc19e"
license "MIT"
bottle :unneeded
depends_on "openjdk"
def install
bin.install "ktlint"
libexec.install "ktlint"
(libexec/"ktlint").chmod 0755
(bin/"ktlint").write_env_script libexec/"ktlint", JAVA_HOME: Formula["openjdk"].opt_prefix
end
test do