Skip to content
Combining "nittany" and "nifty" into one, super-nice gem that lints all our code at once.
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.erb-linters Disables the default self-closing tag linter and adds a custom one wh… Oct 15, 2018
bin Add colorize to dependencies Oct 24, 2018
exe Updating rubocop and rubocop-rspec Dec 20, 2018
rubocop
.gitignore
.rubocop.yml Initial gem Mar 23, 2018
.rubocop_todo.yml Adding auto-correct option May 16, 2018
.ruby-version Updating Ruby and dependencies May 8, 2019
.travis.yml Updating Ruby and dependencies May 8, 2019
Gemfile Add colorize to dependencies Oct 24, 2018
LICENSE.md
README.md Adding niftany executable Mar 29, 2018
Rakefile Add colorize to dependencies Oct 24, 2018
niftany.gemspec Bumping version to 0.5.0 May 8, 2019
niftany_erblint.yml Disables the default self-closing tag linter and adds a custom one wh… Oct 15, 2018
niftany_rubocop.yml Initial gem Mar 23, 2018
niftany_rubocop_rails.yml Updating rubocop and rubocop-rspec Dec 20, 2018
niftany_rubocop_rspec.yml Disable RSpec's BeforeAfterAll rule Aug 22, 2018
niftany_rubocop_ruby.yml Updating Ruby and dependencies May 8, 2019
niftany_scsslint.yml Adding niftany executable Mar 29, 2018

README.md

Niftany

A portmanteau of Penn State's nittany lion, and nifty, meaning fashionable and stylish. Niftany combines different linters such as Rubocop, erb-lint, scss-lint and others, manging their different versions and configurations in one gem.

Installation

Add this line to your application's Gemfile:

gem 'niftany'

And then execute:

$ bundle

Or install it yourself as:

$ gem install niftany

Usage

To run all the linters at once:

$ bundle exec niftany

Setup and run each linter accordingly:

Rubocop

In your local .rubocop.yml file, add:

inherit_gem:
  niftany: niftany_rubocop.yml

Then run:

$ bundle exec rubocop -a

erb-lint

Copy niftany_erblint.yml to .erb-lint.yml in your local repo and run:

$ bundle exec erblint --lint-all --autocorrect

scss-lint

Copy niftany_scsslint.yml to .scss-lint.yml in your local repo and run:

$ bundle exec scss-lint
You can’t perform that action at this time.