Sha256: d64bed85dc8238e14c9e67cacaaf62ef052c5fb05813407e25ea6bae0e7b5dc4
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
# Danger HLint [](https://badge.fury.io/rb/danger-hlint) A Danger plugin for [HLint](https://github.com/ndmitchell/hlint) ## Installation Add this line to your Gemfile: ```ruby gem 'danger-hlint' ``` ## Usage Methods and attributes from this plugin are available in your `Dangerfile` under the `hlint` namespace. At the moment one single method is exposed: `hlint.lint` If you want the lint results to show in the diff instead of in the comments, you can use then `inline_mode` option. Violations that occur out of the diff will show in danger's fail or warn section. ```ruby hlint.lint files inline_mode: true ``` To pass other parameters to the linter just add them to the method call. The names and values of the parameters to the `hlint.lint` method are handed over to linter. For example, you can specify a hint file by calling ```ruby hlint.lint files hint: ".hlint.yaml" ``` To pass switches to the linter (like `--quiet`) specify `true` as the value in the call ```ruby hlint.lint files quiet: true ``` ## 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. ## Attribution Some methods and ideas are almost copied unchanged from [Danger SwiftLint](https://github.com/ashfurrow/danger-swiftlint) ## License danger-hlint is released under MIT License
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-hlint-0.0.3 | README.md |
danger-hlint-0.0.2 | README.md |