0.0
No commit activity in last 3 years
No release in over 3 years
Dependency and configuration for rubocop for all project written in SynegySoft
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 13.0
~> 3.0
~> 0.8
~> 1.43.2
 Project Readme

Synergy::Cop

This repository hosts SynergySoft configurations for gem for rubocop.

The configurations provided here are intended to apply to all of the SynergySoft repositories.

Your application might have special rules of its own, which you can freely override in your local configuration. But if you think a rule is of general relevance, then it should probably live here.

Installation

Include this gem in your Gemfile:

group :development, :test do
  gem 'synergy-cop'
end

Or install via cli command:

gem install synergy-cop

Let your .rubocop.yml inherit from this gem, add following rows:

inherit_gem:
  synergy-cop:
    - default.yml

Usage

If you've installed the gem including it to Gemfile, then you have to use Bundler in order to find the dependency’s installation path at runtime:

bundle exec rubocop <options...>

If you've installed the gem via cli, you can use rubocop without bundle exec. But this is not recommended way, because you can miss updates easily.

Customizing rules

The snippet above is everything needed to use this configuration as default. Starting from there it is possible to make local changes to the configuration.

Take this example .rubocop.yml:

inherit_gem:
  synergy-cop:
    - default.yml

# We still have unfixed offenses in some files
inherit_from: .rubocop_todo.yml

# This project agreed on a different line length than the rest of the company
Metrics/LineLength:
  Max: 120