Socket
Book a DemoInstallSign in
Socket

gl_lint

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl_lint

0.6.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Give Lively Lint runner

GLLint is a Ruby gem that handles running linters against specific files (e.g. just the changed files from a branch). It leverages git, rubocop and eslint

This is particularly useful for large projects where you don't want to lint all the files in the project.

At Give Lively, we add a file to bin/lint and have it call this gem to lint with autocorrect.

GLLint also adds a way to create a yaml file with all the currently configured rubocop rules (.rubocop_rules.yml). This is done via bin/lint --write-rubocop-rules. This file is useful to compare what changes when updating Rubocop rules, changing gems or Ruby versions.

Installation

Add this line to your application's Gemfile:

gem 'gl_lint', require: false

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gl_lint

bin/lint

Create a an executable bin/lint file with:

touch bin/lint && chmod +x bin/lint

Then add this to the file:

#!/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']

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

FAQs

Package last updated on 23 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.