Sha256: 662dae8718d5aca5caf7606133d546168513d1fb14a3da084c0fb66d5d11a41e
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
# danger-ktlint Lint kotlin files only changed files in a pull request using ktlint command lint interface. ## Installation ```ruby $ gem install danger-ktlint ``` ## Usage You need to install `ktlint` command and set as executable first, see: https://ktlint.github.io/#getting-started. ```bash # Example $ curl --output /usr/local/bin/ktlint -sL https://github.com/shyiko/ktlint/releases/download/$KTLINT_VERSION/ktlint && chmod a+x /usr/loca/bin/ktlint ``` Add this to Dangerfile. ```ruby ktlint.lint # If you want inline comments, specify `ktlint.lint` with `inline_mode: true` ktlint.lint(inline_mode: true) ``` ## TODO - filtering: false (default: filtering: true behavior) ## Development 1. Clone this repo 2. Run `bundle install` to setup dependencies. 3. Run `bundle exec rake spec` to run the tests. 4. Use `bundle exec guard` to automatically have tests run as you make changes. 5. Make your changes.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-ktlint-0.0.2 | README.md |