{"id":28471715,"url":"https://github.com/bitcrowd/rubocop-bitcrowd","last_synced_at":"2025-10-19T22:56:07.831Z","repository":{"id":18175633,"uuid":"83667333","full_name":"bitcrowd/rubocop-bitcrowd","owner":"bitcrowd","description":"The bitcrowd rubocop.yml as a gem.","archived":false,"fork":false,"pushed_at":"2022-02-21T13:09:12.000Z","size":80,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-30T12:52:05.354Z","etag":null,"topics":["configuration","rubocop","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rubocop-bitcrowd","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/bitcrowd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T10:50:54.000Z","updated_at":"2025-03-25T12:40:30.000Z","dependencies_parsed_at":"2022-07-26T21:16:56.878Z","dependency_job_id":null,"html_url":"https://github.com/bitcrowd/rubocop-bitcrowd","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/bitcrowd/rubocop-bitcrowd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frubocop-bitcrowd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frubocop-bitcrowd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frubocop-bitcrowd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frubocop-bitcrowd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcrowd","download_url":"https://codeload.github.com/bitcrowd/rubocop-bitcrowd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcrowd%2Frubocop-bitcrowd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263046205,"owners_count":23405151,"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":["configuration","rubocop","ruby"],"created_at":"2025-06-07T11:08:36.310Z","updated_at":"2025-10-19T22:56:07.740Z","avatar_url":"https://github.com/bitcrowd.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rubocop-bitcrowd 🚓\n\n[![Gem Version](https://badge.fury.io/rb/rubocop-bitcrowd.svg)](https://badge.fury.io/rb/rubocop-bitcrowd)\n\nThe bitcrowd rubocop.yml as a gem.\n\n## Installation\n\nAdd this lines to your application's Gemfile:\n\n```ruby\ngem 'rubocop-bitcrowd', require: false\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nTo use the configuration in your project create a `.rubocop.yml` with:\n\n```yml\ninherit_gem:\n  rubocop-bitcrowd: .rubocop.yml\n\n# Note: skip this if you want to override the default AllCops:Include and AllCops:Exclude list\ninherit_mode:\n  merge:\n    - Include\n    - Exclude\n```\n\n### Using other rubocop gems\n\nThere are also config files for the other `rubocop` gems:\n* [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails)\n* [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec)\n* [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance)\n\nTo use any of them, add the respective gem to your Gemfile:\n\n```ruby\ngem 'rubocop-rails', require: false\ngem 'rubocop-rspec', require: false\ngem 'rubocop-performance', require: false\n```\n\nThen include the bitcrowd config in your `.rubocop.yml`:\n\n```yml\ninherit_gem:\n  rubocop-bitcrowd:\n    - .rubocop.yml\n    - .rubocop-rspec.yml\n    - .rubocop-rails.yml\n    - .rubocop-performance.yml\n\n# Note: skip this if you want to override the default AllCops:Include and AllCops:Exclude list\ninherit_mode:\n  merge:\n    - Include\n    - Exclude\n```\n\n## Autofixing issues\n\nAt bitcrowd we discovered it to be a very good practice to put each automatically fixable Cop into a single commit when initially adding rubocop into a bigger project.\n\nThis gem provides a simple script, that can help you with this task:\n\n1. Create your rubocop configuration (either with the instructions above or your own)\n2. Create a rubocop_todo.yml with: `rubocop --auto-gen-config`\n3. Make sure you have a clean state in git, since the script will make commits for you (you may want to commit your rubocop_todo.yml)\n4. Run the script (may take a while, when you want to continue working on your project meanwhile run this in a separate checkout): `rubocop-autofix`\n5. Review all commits made by the script and run your tests. You can now drop certain commits of cops you don't want. Often it may make some sense to run the script again with changed settings, since rebasing 100+ commits is no fun.\n\n## Development\n\nAny contributions are welcome. If you attempt to change the behavior of this gem it might be wise to open an issue first to discuss the change. Otherwise feel free to open a PR.\n\nEvery PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`main` section](./CHANGELOG.md#main)) briefly outlining the attempted changes.\n\n### Release a new version\n\nTo release a new version, follow these steps:\n\n1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`main` section](./CHANGELOG.md#main)\n2. update the version in `rubocop-bitcrowd.gemspec` according to [semver](https://semver.org/)\n3. commit that change\n4. run `rake release`\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%2Fbitcrowd%2Frubocop-bitcrowd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcrowd%2Frubocop-bitcrowd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcrowd%2Frubocop-bitcrowd/lists"}