
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
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.
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
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
Unknown package
We found that gl_lint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.