Project

niftany

0.0
Low commit activity in last 3 years
There's a lot of open issues
No release in over a year
Combining "nittany" and "nifty" into one, super-nice gem that lints all our code at once.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 12.0

Runtime

 Project Readme

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