{"id":13879779,"url":"https://github.com/toshimaru/rubocop-rails_config","last_synced_at":"2026-01-12T09:51:58.203Z","repository":{"id":32614748,"uuid":"138056882","full_name":"toshimaru/rubocop-rails_config","owner":"toshimaru","description":"RuboCop configuration which has the same code style checking as official Ruby on Rails.","archived":false,"fork":false,"pushed_at":"2025-03-09T23:07:01.000Z","size":237,"stargazers_count":153,"open_issues_count":4,"forks_count":22,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-04T01:37:01.860Z","etag":null,"topics":["gem","rails","rubocop"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toshimaru.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["toshimaru","koic"]}},"created_at":"2018-06-20T16:11:43.000Z","updated_at":"2025-03-18T14:50:52.000Z","dependencies_parsed_at":"2023-01-14T21:44:15.031Z","dependency_job_id":"38b97291-57c8-47ba-aa2d-f53e6d044af6","html_url":"https://github.com/toshimaru/rubocop-rails_config","commit_stats":null,"previous_names":[],"tags_count":111,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Frubocop-rails_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Frubocop-rails_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Frubocop-rails_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Frubocop-rails_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toshimaru","download_url":"https://codeload.github.com/toshimaru/rubocop-rails_config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248439945,"owners_count":21103718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","rails","rubocop"],"created_at":"2024-08-06T08:02:32.867Z","updated_at":"2026-01-12T09:51:58.189Z","avatar_url":"https://github.com/toshimaru.png","language":"Ruby","funding_links":["https://github.com/sponsors/toshimaru","https://github.com/sponsors/koic"],"categories":["Ruby"],"sub_categories":[],"readme":"# rubocop-rails_config\n\n[![Gem Version](https://badge.fury.io/rb/rubocop-rails_config.svg)](https://badge.fury.io/rb/rubocop-rails_config)\n![Test](https://github.com/toshimaru/rubocop-rails_config/workflows/Test/badge.svg)\n\nRuboCop configuration which has the same code style checking as official Ruby on Rails.\n\n[Official RoR RuboCop Configuration](https://github.com/rails/rails/blob/main/.rubocop.yml)\n\n## Installation\n\nAdd this line to your application's `Gemfile`:\n\n```ruby\ngem \"rubocop-rails_config\"\n```\n\n## Usage\n\nAdd this line to your application's `.rubocop.yml`:\n\n```yml\ninherit_gem:\n  rubocop-rails_config:\n    - config/rails.yml\n```\n\nOr just run:\n\n```console\n$ rails generate rubocop_rails_config:install\n```\n\n## Configuration\n\n### TargetRubyVersion\n\nIf you'd like to change `TargetRubyVersion`, see [Customization](#customization).\n\n### Rails/AssertNot, Rails/RefuteMethods\n\n| cop | description |\n| --- | --- |\n| `Rails/AssertNot`     | Prefer assert_not over assert |\n| `Rails/RefuteMethods` | Prefer assert_not_x over refute_x |\n\n`assert_not` and `assert_not_xxx` methods are Rails assertion extension, so if you want to use these methods, require `activesupport` gem and inherit `ActiveSupport::TestCase`.\n\n```rb\nclass AssertNotTest \u003c ActiveSupport::TestCase\n  def test_assert_not_method\n    assert_not ...(code)...\n  end\n\n  def test_assert_not_nil_method\n    assert_not_nil ...(code)...\n  end\nend\n```\n\nSee also. [ActiveSupport::Testing::Assertions](https://api.rubyonrails.org/classes/ActiveSupport/Testing/Assertions.html)\n\n## Customization\n\nIf you'd like to customize the rubocop setting on your project, you can override it.\n\nFor example, if you want to change `TargetRubyVersion`, you can do it like:\n\n```yml\n# .rubocop.yml\ninherit_gem:\n  rubocop-rails_config:\n    - config/rails.yml\n\n# Override Setting\nAllCops:\n  TargetRubyVersion: 3.0\n```\n\nThis overrides `config/rails.yml` setting with `TargetRubyVersion: 3.0`.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Frubocop-rails_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoshimaru%2Frubocop-rails_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Frubocop-rails_config/lists"}