Presented in reverse chronological order. Document adheres to keepachangelog.com, though our sections are called "Deprecations", "Potentially breaking changes", "New features", and "Fixes".
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.3.0...HEAD
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.2.0...v2.3.0
- #42 Fix deprecation warning by renaming
ExcludedMethods
toIgnoredMethods
and lock the Rubocop version to>= 1.5.0
. See rubocop/rubocop#9098 and https://github.com/rubocop/rubocop/blob/1e55b1aa5e4c5eaeccad5d61f08b7930ed6bc341/relnotes/v1.5.0.md - #43 Update documentation mentioning the
master
branch, to usemain
instead
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.3...v2.2.0
With this version update, rubocop-bitcrowd
adapts to RuboCop's new modularized architecture of having separate gems for different cop targets (Rails, Rspec, Performance).
rubocop-bitcrowd
includes separate configuration files for each RuboCop gem. To continue using the previous configuration including rules for Rspec and Rails, add the respective gems to your Gemfile:
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
And update the configuration in your .rubocop.yml
to include the bitcrowd rules:
inherit_gem:
rubocop-bitcrowd:
- .rubocop.yml
- .rubocop-rspec.yml
- .rubocop-rails.yml
As a new addition, rubocop-bitcrowd
now also includes rules for the rubocop-performance
gem. To use them, add the gem to your Gemfile:
gem 'rubocop-performance', require: false
Then include the bitcrowd config in your .rubocop.yml
:
inherit_gem:
rubocop-bitcrowd:
- .rubocop.yml
- .rubocop-rspec.yml
- .rubocop-rails.yml
- .rubocop-performance.yml
- #34 Extract
rails
cops into separate configuration based on rubocop-rails, following the modularization ofrubocop
itself.
- #32 add possibility to include rubocop-performance cops.
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.2...v2.1.3
This releases silences some deprecation warnings and locks down the minimal rubocop
version rubocop-bitcrowd
depends on.
- #31 Fix deprecation warning by moving
LineLength
cop fromMetrics
toLayout
and lock the Rubocop version to>= 0.78.0
and< 0.79
. - #31 Lock down the minimal
rubocop
version we depend on. Similar to rubocop-rspec we're only setting the lower boundary now.
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.1...v2.1.2
- Remove rubocop version lock to 0.57.x
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...v2.1.1
- Add compartment to
Documentation
cop
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.0.0...v2.1.0
- Exclude
namespace
method fromMetrics/BlockLength
to support longer namespace definitions in rake tasks.
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.3.0...v2.0.0
This release changes our approach on excluding certain file paths and directories from being inspected by the linter. Instead of fully overriding RuboCop's default AllCops:Exclude
list (which used to be necessary up until rubocop
v0.57.0), rubocop-bitcrowd
now only provides some extra patterns as an extension to the default list.
We in addition to the default directories, e.g. want to exclude log
, tmp
and storage
in Rails projects.
In order to keep excluding both, the bitcrowd patterns and the RuboCop's default ones, add this to your .rubocop.yml
file:
inherit_mode:
merge:
- Exclude
- require a rubocop version >= 0.57.0
- remove directories rubocop already excludes by default from the
AllCops:Exclude
list-
keeping the existing list now requires to add an
inherit_mode
section into their.rubocop.yml
:# This will merge the default exclude list with the one from rubocop-bitcrowd inherit_mode: merge: - Exclude
-
- Also exclude the
tmp
,log
andstorage
directories from being inspected. Working on a Rails application, especially thetmp
directory fills up over time and slows down linting the project enormously. Same goes for thestorage
directory: here rubocop also has to dig through deeply nested folder structures. Note: rubocop's "default" configuration also ignores thetmp
directory.
This release is a maintenance release. Most notably it let's us be compatile with rubocop versions >= 0.56 again. For a full list of changes, see the link or summary below.
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
- added
staging
to the list of known environments - enforce frozen_string_literal comment
- between rubocop version 0.55 and 0.56 we stopped processing most files because we overwrote
AllCops/Include
. This is fixed, but requires a rubocop version of 0.56 or higher. - we have a more detailed changelog which is conform with our changelog-style of other projects
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
- exclude spec/features from the
RSpec/ExampleLength
cop
- ignore
node_modules
andvendor/bundle
from being inspected
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
- The cop
Layout/SpaceInsideBrackets
was deprecated and split into two sub-cops:Layout/SpaceInsideArrayLiteralBrackets
- and
Layout/SpaceInsideReferenceBrackets
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.1...v1.1.2
- Changed to nested module style see: #4
https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.0...v1.1.1
- exclude db/schema.rb from being evaluated
- the cop
Style/SpaceInsideBrackets
was renamed toLayout/SpaceInsideBrackets
- First official release