https://github.com/RestlessThinker/danger-pronto
A Danger plugin to lint files through Pronto
https://github.com/RestlessThinker/danger-pronto
Last synced: 12 days ago
JSON representation
A Danger plugin to lint files through Pronto
- Host: GitHub
- URL: https://github.com/RestlessThinker/danger-pronto
- Owner: RestlessThinker
- License: mit
- Created: 2017-02-14T03:56:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T12:59:01.000Z (about 7 years ago)
- Last Synced: 2025-04-04T10:19:27.416Z (about 1 month ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 12
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-danger - danger-pronto - A Danger plugin to lint files through Pronto. (Plugins / Ruby (danger))
README
# danger-pronto
[](LICENSE.txt)
[](https://rubygems.org/gems/danger-pronto)A [Danger](https://github.com/danger/danger) plugin for [Pronto](https://github.com/mmozuras/pronto).
Created by the folks at [ABODO](https://www.abodo.com). By default, only lints added or modified files.## Installation
Add this line to your Gemfile:
```rb
gem 'danger-pronto'
```Add pronto and runners to your Gemfile:
```rb
gem 'pronto'
gem 'pronto-jshint'
gem 'pronto-rubocop'
gem 'pronto-scss'
```## Usage
Pronto runs the checks on a diff between the current HEAD and the provided commit-ish (default is master).
Results are passed out as a table in markdown.Specifying custom config file.
```ruby
pronto.lint
```Run checks on a diff between the current HEAD and a specified commit
```ruby
pronto.lint("e757913")
```#### Methods
`lint(commit: String)`
Runs checks on a diff between the current HEAD and the provided commit-ish (default is master). Generates a `markdown` list of warnings.
## License
MIT