{"id":13521019,"url":"https://github.com/rubocop/rubocop-factory_bot","last_synced_at":"2025-05-15T07:03:51.089Z","repository":{"id":152164010,"uuid":"616913126","full_name":"rubocop/rubocop-factory_bot","owner":"rubocop","description":"Code style checking for factory_bot files.","archived":false,"fork":false,"pushed_at":"2025-03-21T17:30:50.000Z","size":1227,"stargazers_count":62,"open_issues_count":24,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-15T07:03:45.477Z","etag":null,"topics":["factory-bot","hacktoberfest","lint","rubocop","ruby","static-analysis","testing"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-factory_bot","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/rubocop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"MIT-LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bbatsov","patreon":"bbatsov","open_collective":"rubocop","tidelift":"rubygems/rubocop","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2023-03-21T10:40:16.000Z","updated_at":"2025-03-30T22:45:53.000Z","dependencies_parsed_at":"2023-12-31T07:35:46.736Z","dependency_job_id":"45262d4f-7ad0-42c2-8ca1-1fc10141ba27","html_url":"https://github.com/rubocop/rubocop-factory_bot","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-factory_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-factory_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-factory_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-factory_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-factory_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254291962,"owners_count":22046425,"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":["factory-bot","hacktoberfest","lint","rubocop","ruby","static-analysis","testing"],"created_at":"2024-08-01T06:00:26.423Z","updated_at":"2025-05-15T07:03:51.070Z","avatar_url":"https://github.com/rubocop.png","language":"Ruby","funding_links":["https://github.com/sponsors/bbatsov","https://patreon.com/bbatsov","https://opencollective.com/rubocop","https://tidelift.com/funding/github/rubygems/rubocop","https://www.paypal.me/bbatsov"],"categories":["Ruby","Style guides and linters"],"sub_categories":[],"readme":"# RuboCop factory_bot\n\n[![Join the chat at https://gitter.im/rubocop-rspec/Lobby](https://badges.gitter.im/rubocop-rspec/Lobby.svg)](https://gitter.im/rubocop-rspec/Lobby)\n[![Gem Version](https://badge.fury.io/rb/rubocop-factory_bot.svg)](https://rubygems.org/gems/rubocop-factory_bot)\n![CI](https://github.com/rubocop/rubocop-factory_bot/workflows/CI/badge.svg)\n\n[factory_bot](https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md)-specific analysis for your projects, as an extension to\n[RuboCop](https://github.com/rubocop/rubocop).\n\n## Installation\n\nJust install the `rubocop-factory_bot` gem\n\n```bash\ngem install rubocop-factory_bot\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-factory_bot', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the factory_bot extension. There are three\nways to do this:\n\n### RuboCop configuration file\n\nPut this into your `.rubocop.yml`.\n\n```yaml\nplugins: rubocop-factory_bot\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-factory_bot\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop factory_bot\ncops together with the standard cops.\n\n\u003e [!NOTE]\n\u003e The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.\n\n### Command line\n\n```bash\nrubocop --plugin rubocop-factory_bot\n```\n\n### Rake task\n\n```ruby\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-factory_bot'\nend\n```\n\n## Documentation\n\nYou can read more about RuboCop factory_bot in its [official manual](https://docs.rubocop.org/rubocop-factory_bot).\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/factory_bot`](lib/rubocop/cop/factory_bot), and contain\nexamples/documentation.\n\nIn your `.rubocop.yml`, you may treat the factory_bot cops just like any other\ncop. For example:\n\n```yaml\nFactoryBot/AttributeDefinedStatically:\n  Exclude:\n    - spec/factories/my_factory.rb\n```\n\n## Contributing\n\nCheckout the [contribution guidelines](.github/CONTRIBUTING.md).\n\n## License\n\n`rubocop-factory_bot` is MIT licensed. [See the accompanying file](MIT-LICENSE.md) for\nthe full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-factory_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-factory_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-factory_bot/lists"}