Skip to content

Commit dfa9ccc

Browse files
committed
Update Changelog
1 parent e465675 commit dfa9ccc

24 files changed

+37
-23
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,38 @@
99

1010
## master (unreleased)
1111

12+
### New features
13+
14+
* [#1075](https://github.com/rubocop/rubocop-rails/issues/1075): Add new `Rails/SelectMap` cop that checks for uses of `select(:column_name)` with `map(&:column_name)`. ([@koic][])
15+
* [#158](https://github.com/rubocop/rubocop-rails/issues/158): Add `Rails/DangerousColumnNames` cop. ([@r7kamura][])
16+
* [#1072](https://github.com/rubocop/rubocop-rails/pull/1072): Add `TransactionMethods` config for `Rails/TransactionExitStatement` to detect custom transaction methods. ([@marocchino][])
17+
* [#967](https://github.com/rubocop/rubocop-rails/issues/967): Add new `Rails/UnusedRenderContent` cop. ([@samrjenkins][])
18+
* [#1052](https://github.com/rubocop/rubocop-rails/pull/1052): Add explicit style to `Rails/I18nLazyLookup`. ([@sunny][])
19+
20+
### Bug fixes
21+
22+
* [#1078](https://github.com/rubocop/rubocop-rails/issues/1078): Fix a false negative for `Rails/LexicallyScopedActionFilter` when no methods are defined. ([@vlad-pisanov][])
23+
* [#1060](https://github.com/rubocop/rubocop-rails/issues/1060): Fix a false positive for `Rails/HttpStatus` when using symbolic value that have no numeric value mapping. ([@koic][])
24+
* [#1004](https://github.com/rubocop/rubocop-rails/pull/1004): Fix a false-positive for `Rails/RootPathnameMethods` on Ruby 2.4 or lower. ([@r7kamura][])
25+
* [#1016](https://github.com/rubocop/rubocop-rails/issues/1016): Add `Rails/RedundantActiveRecordAllMethod` cop. ([@masato-bkn][])
26+
* [#1066](https://github.com/rubocop/rubocop-rails/issues/1066): Fix an error for `Rails/FilePath` when string interpolated `Rails.root` is followed by a message starting with `.`. ([@koic][])
27+
* [#1049](https://github.com/rubocop/rubocop-rails/pull/1049): Fix an incorrect autocorrect for `Rails/FilePath` when File.join with Rails.root and path starting with `/`. ([@ydah][])
28+
* [#1045](https://github.com/rubocop/rubocop-rails/issues/1045): Fix an incorrect autocorrect for `Rails/NegateInclude` when using `Style/InverseMethods`'s autocorrection together. ([@koic][])
29+
* [#1062](https://github.com/rubocop/rubocop-rails/issues/1062): Fix autocorrection for `Rails/RakeEnvironment` when rake task accepts arguments. ([@fastjames][])
30+
* [#1036](https://github.com/rubocop/rubocop-rails/issues/1036): Fix an error for `UniqueValidationWithoutIndex` when `db/schema.rb` is empty. ([@fatkodima][])
31+
* [#1042](https://github.com/rubocop/rubocop-rails/pull/1042): Fix no offences for `Rails/SchemaComment` when create_table with multi t columns. ([@nipe0324][])
32+
33+
### Changes
34+
35+
* [#1056](https://github.com/rubocop/rubocop-rails/pull/1056): Fix database adapter detection for nested config. ([@mjankowski][])
36+
* [#1031](https://github.com/rubocop/rubocop-rails/pull/1031): Make `Lint/SafeNavigationChain` allow `presence_in`. ([@koic][])
37+
* [#1080](https://github.com/rubocop/rubocop-rails/issues/1080): Make `Rails/HttpStatus` aware of string number status. ([@r7kamura][])
38+
* [#1094](https://github.com/rubocop/rubocop-rails/issues/1094): Make `Rails/TimeZone` aware of `String#to_time`. ([@koic][])
39+
* [#1015](https://github.com/rubocop/rubocop-rails/issues/1015): Make `Style/InvertibleUnlessCondition` aware of Active Support methods. ([@koic][])
40+
* [#903](https://github.com/rubocop/rubocop-rails/pull/903): Read database config for `Rails/BulkChangeTable` from environment variable. ([@joergschiller][])
41+
* [#1058](https://github.com/rubocop/rubocop-rails/issues/1058): Relax `Include` path for `Rails/FindBy` and `Rails/FindEach`. ([@koic][])
42+
* [#994](https://github.com/rubocop/rubocop-rails/pull/994): Restrict DuplicateAssociation cop to ActiveRecord. ([@mjankowski][])
43+
1244
## 2.20.2 (2023-06-20)
1345

1446
### Bug fixes
@@ -894,3 +926,8 @@
894926
[@masato-bkn]: https://github.com/masato-bkn
895927
[@splattael]: https://github.com/splattael
896928
[@samrjenkins]: https://github.com/samrjenkins
929+
[@mjankowski]: https://github.com/mjankowski
930+
[@joergschiller]: https://github.com/joergschiller
931+
[@fastjames]: https://github.com/fastjames
932+
[@nipe0324]: https://github.com/nipe0324
933+
[@marocchino]: https://github.com/marocchino

changelog/change_fix_database_adapter_detection_for.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_make_lint_safe_navigation_chain_allow_presence_in.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_make_rails_http_status_aware_of_string_number_status.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_make_rails_time_zone_aware_of_string_to_time

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_make_style_invertible_unless_condition_aware_of_as_methods.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_read_database_config_from_environment.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_relax_include_path_for_rails_find_by_and_find_each.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/change_restrict_duplicate_association_cop_to.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/fix_a_false_negative_for_lexically_scoped_action_filter.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)