Sha256: 0198aaf4eb9af6e3481e2f1bbd550fcc9dfd04dc413cc0bf1abf5e1d6c19409c

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

# danger-pronto

[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE.txt)
[![Gem](https://img.shields.io/gem/v/danger-pronto.svg?style=flat)](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

Run Files through Pronto.
Results are passed out as a table in markdown.


Specifying custom config file.
```ruby
pronto.lint
```

Lint specific files in a folder, when they change
```ruby
public_files = (modified_files + added_files).select { |path| path.include?("/public/") }
pronto.lint public_files
```

#### Methods


`lint(files: String)`

 Runs files through Pronto. Generates a `markdown` list of warnings.



## License

MIT

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danger-pronto-0.2.1 README.md
danger-pronto-0.2.0 README.md