👌 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 (c) Lucas Caton.