Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/givelively/gl_lint
- Owner: givelively
- License: apache-2.0
- Created: 2024-03-01T00:09:01.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-06T16:52:33.000Z (19 days ago)
- Last Synced: 2025-01-06T17:50:48.688Z (19 days ago)
- Language: Ruby
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'])
```