diff --git a/CHANGELOG.md b/CHANGELOG.md index b9542618..258d46fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ -# main [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.9.0...main) +# main [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.9.1...main) + +# v4.9.1 / 2024-04-14 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.9.0...v4.9.1) * [CHANGE] Bump cucumber, minitest, parser, rake, reek, rubocop, and ruby_parser dependencies (by [@faisal][]) * [CHANGE] Fix some typos (by [@jbampton][]) diff --git a/README.md b/README.md index c268f6ca..428fdd08 100644 --- a/README.md +++ b/README.md @@ -10,17 +10,19 @@ RubyCritic is a gem that wraps around static analysis gems such as [Reek][1], [F ## Table of Contents -- [Overview](#overview) -- [Getting Started](#getting-started) -- [Usage](#usage) - + [Analyzer Configuration](#analyzer-configuration) - + [Alternative Usage Methods](#alternative-usage-methods) - + [Rake Task](#rake-task) -- [Formatters](#formatters) -- [Compatibility](#compatibility) -- [Improving RubyCritic](#improving-rubyCritic) -- [Contributors](#contributors) -- [Credits](#credits) +- [RubyCritic](#rubycritic) + - [Table of Contents](#table-of-contents) + - [Overview](#overview) + - [Getting Started](#getting-started) + - [Usage](#usage) + - [Analyzer Configuration](#analyzer-configuration) + - [Alternative Usage Methods](#alternative-usage-methods) + - [Rake Task](#rake-task) + - [Formatters](#formatters) + - [Compatibility](#compatibility) + - [Improving RubyCritic](#improving-rubycritic) + - [Contributors](#contributors) + - [Credits](#credits) ## Overview @@ -161,9 +163,9 @@ paths: # Files to analyse. Churn calculation is scoped to these files when using project root and `RubyCritic` will respect this configuration. * [`flay`](https://github.com/seattlerb/flay): We use `flay`'s default configuration. * [`flog`](https://github.com/seattlerb/flog): We use `flog`'s default configuration with a couple of [smaller tweaks](https://github.com/whitesmith/rubycritic/blob/main/lib/rubycritic/analysers/helpers/flog.rb#L5): - * `all`: Forces `flog` to report scores on all classes and methods. Without this option `flog` will only give results up to a certain threshold. - * `continue`: Makes it so that `flog` does not abort when a ruby file cannot be parsed. - * `methods`: Configures `flog` to skip code outside of methods. It prevents `flog` from reporting on the "methods" `private` and `protected`. It also prevents `flog` from reporting on Rails methods like `before_action` and `has_many`. + * `all`: Forces `flog` to report scores on all classes and methods. Without this option `flog` will only give results up to a certain threshold. + * `continue`: Makes it so that `flog` does not abort when a ruby file cannot be parsed. + * `methods`: Configures `flog` to skip code outside of methods. It prevents `flog` from reporting on the "methods" `private` and `protected`. It also prevents `flog` from reporting on Rails methods like `before_action` and `has_many`. ### Alternative Usage Methods @@ -241,7 +243,7 @@ RubyCritic is supporting Ruby versions: | 2.4 | [v4.7.0](https://github.com/whitesmith/rubycritic/tree/v4.7.0) | | 2.5 | [v4.7.0](https://github.com/whitesmith/rubycritic/tree/v4.7.0) | | 2.6 | [v4.7.0](https://github.com/whitesmith/rubycritic/tree/v4.7.0) | -| 2.7 | latest | +| 2.7 | [v4.9.x](https://github.com/whitesmith/rubycritic/tree/v4.9.1) | | 3.0 | latest | | 3.1 | latest | diff --git a/lib/rubycritic/version.rb b/lib/rubycritic/version.rb index ac1bcd1c..226ddc6c 100644 --- a/lib/rubycritic/version.rb +++ b/lib/rubycritic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RubyCritic - VERSION = '4.9.0'.freeze + VERSION = '4.9.1'.freeze end