Skip to content

Commit

Permalink
Release v4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nunosilva800 committed Apr 14, 2024
1 parent e62770b commit 63f543e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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][])
Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 |

Expand Down
2 changes: 1 addition & 1 deletion lib/rubycritic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RubyCritic
VERSION = '4.9.0'.freeze
VERSION = '4.9.1'.freeze
end

0 comments on commit 63f543e

Please sign in to comment.