Keep the quality, good practices and security of Rails projects.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Update Rubocop Mar 26, 2018
config
lib Update Rubocop Mar 26, 2018
readme Adding GIFs to be used in README Mar 5, 2016
spec Update Rubocop Mar 26, 2018
.gitignore Removing 'Gemfile.lock' from '.gitignore' Mar 21, 2016
.rspec Adding .rspec file Dec 22, 2015
.rubocop.yml Update gems + fix Rubocop offenses Dec 19, 2017
.travis.yml Update Bundler version to 1.16.2 in Travis config file May 27, 2018
CODE_OF_CONDUCT.md Using Bundler’s gems structure Jan 21, 2016
Gemfile Adding 'frozen_string_literal' comment to Ruby files Feb 29, 2016
Gemfile.lock Update Rubocop Mar 26, 2018
LICENSE.txt Update README and LICENSE Jan 15, 2018
README.md Update README May 25, 2018
Rakefile Adding 'frozen_string_literal' comment to Ruby files Feb 29, 2016
massa.gemspec Set required Ruby version and test against different Ruby versions Mar 26, 2018

README.md

👌 Massa

Gem Version Dependency Status Build Status Test Coverage Code Climate

It's not rare to have Ruby (and Rails) projects becoming hard to maintain and less fun after a while. This gem helps you to keep or increase the quality, good practices and security of your projects.

Massa can run in your CI using different code analyzers tools along with automated tests, instead of running only your automated tests.

Ie.: Instead of:

$ bundle exec rubocop && bundle exec brakeman -Aqz && bundle exec rails_best_practices && bundle exec rspec && karma start --single-run --browsers PhantomJS && etc

You will only need:

$ bundle exec massa

You can either use only the default tools or define your own by using a simple config file.

massa

Verbose mode:

massa-v

Installation

Add the following lines to your application's Gemfile:

group :development, :test do
  gem 'massa'
end

And then execute:

$ bundle

Usage

Generate a config file (optional):

$ bundle exec massa -g

This will generate a config/massa.yml file, which you can customize.

Then, run:

$ bundle exec massa

It's recommended to use -V (or --verbose) flag when running it in a CI:

$ bundle exec massa -V

About the gem name

"Massa" is a 🇧🇷 Portuguese slang which means "awesome", so once you add it to your project, it becomes "massa"!

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Copyright

Copyright (c) 2018 Lucas Caton.