{"id":13879375,"url":"https://github.com/koic/rubocop-faker","last_synced_at":"2025-04-05T04:13:54.739Z","repository":{"id":45249756,"uuid":"205802105","full_name":"koic/rubocop-faker","owner":"koic","description":"A RuboCop extension for Faker.","archived":false,"fork":false,"pushed_at":"2025-02-18T08:47:52.000Z","size":59,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T03:10:25.011Z","etag":null,"topics":["converter","faker","linter","rubocop","ruby","static-code-analysis"],"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/koic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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":"koic"}},"created_at":"2019-09-02T07:37:58.000Z","updated_at":"2025-02-18T08:47:13.000Z","dependencies_parsed_at":"2024-11-01T01:02:15.389Z","dependency_job_id":"07f41f65-01ee-4e48-92a5-45a5705da8c4","html_url":"https://github.com/koic/rubocop-faker","commit_stats":{"total_commits":39,"total_committers":3,"mean_commits":13.0,"dds":0.05128205128205132,"last_synced_commit":"057b66b8468dbebf9caf8bbfd036594a3316032b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Frubocop-faker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Frubocop-faker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Frubocop-faker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Frubocop-faker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koic","download_url":"https://codeload.github.com/koic/rubocop-faker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"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":["converter","faker","linter","rubocop","ruby","static-code-analysis"],"created_at":"2024-08-06T08:02:18.923Z","updated_at":"2025-04-05T04:13:54.716Z","avatar_url":"https://github.com/koic.png","language":"Ruby","funding_links":["https://github.com/sponsors/koic"],"categories":["Ruby"],"sub_categories":[],"readme":"# RuboCop Faker\n\n[![Gem Version](https://badge.fury.io/rb/rubocop-faker.svg)](https://badge.fury.io/rb/rubocop-faker)\n[![CircleCI](https://circleci.com/gh/koic/rubocop-faker.svg?style=svg)](https://circleci.com/gh/koic/rubocop-faker)\n\nA [RuboCop](https://github.com/rubocop-hq/rubocop) extension for [Faker](https://github.com/faker-ruby/faker).\n\nRuboCop Faker is a tool for converting your Faker's methods to the latest Faker argument style with static code analysis.\n\nWith RuboCop Faker you can upgrade your Faker 1 codes to Faker 2 in no time. It supports [conversions](https://github.com/koic/rubocop-faker/blob/master/config/default.yml) for almost all of the Faker 2 changes.\n\n## Installation\n\nJust install the `rubocop-faker` gem\n\n```sh\ngem install rubocop-faker\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-faker'\n```\n\n## Examples\n\nHere's an example.\n\n```ruby\nFaker::Avatar.image(slug, size, format, set, bgset)\n```\n\nRuboCop Faker would convert it to the following Faker 2 form:\n\n```ruby\nFaker::Avatar.image(slug: slug, size: size, format: format, set: set, bgset: bgset)\n```\n\n## Usage\n\nYou need to tell RuboCop to load the Faker extension.\n\nThis gem offers the only `Faker/DeprecatedArguments` cop. It is intended to convert a Faker 2 compatible interface.\n\n### Command line\n\nCheck positional argument style before Faker 2.\n\n```console\n% rubocop --plugin rubocop-faker --only Faker/DeprecatedArguments\n```\n\nAuto-correction to keyword argument style on Faker 2.\n\n```console\n% rubocop --plugin rubocop-faker --only Faker/DeprecatedArguments --autocorrect\n```\n\n### RuboCop configuration file\n\nAdd `rubocop-faker` to required extension.\n\n```yaml\n# .rubocop.yml\nplugins:\n  - rubocop-faker\n```\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## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/koic/rubocop-faker.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoic%2Frubocop-faker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoic%2Frubocop-faker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoic%2Frubocop-faker/lists"}