Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/givelively/gl_lint

Give Lively Lint
https://github.com/givelively/gl_lint

Last synced: 9 days ago
JSON representation

Give Lively Lint

Awesome Lists containing this project

README

        

# Give Lively Lint

Linting tool.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'gl_lint', require: false
```

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gl_lint

## Usage

Create a an executable `bin/lint` file with:

`touch bin/lint && chmod 755 bin/lint`

Then add this to the file:

```ruby
#!/usr/bin/env ruby
require 'rubygems'
require 'gl_lint'

GLLint.call_cli(app_root: File.expand_path('..', __dir__))
```

Then run `bin/lint` to lint your changes

Alternatively, if your project doesn't have JavaScript, add `linters: ['rubocop/]`

```ruby
GLLint.call_cli(app_root: File.expand_path('..', __dir__),
linters: ['rubocop'])
```