{"id":15512544,"url":"https://github.com/fcsonline/rubocop-changes","last_synced_at":"2025-10-20T00:56:22.034Z","repository":{"id":36458864,"uuid":"224489862","full_name":"fcsonline/rubocop-changes","owner":"fcsonline","description":"Runs rubocop and shows only the offenses you introduced since the fork point","archived":false,"fork":false,"pushed_at":"2024-05-16T18:49:55.000Z","size":52,"stargazers_count":21,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T04:07:49.502Z","etag":null,"topics":["diff","fork","git","rubocop"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rubocop-changes","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/fcsonline.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-27T18:07:56.000Z","updated_at":"2024-03-13T17:24:35.000Z","dependencies_parsed_at":"2023-02-14T01:01:31.524Z","dependency_job_id":null,"html_url":"https://github.com/fcsonline/rubocop-changes","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/fcsonline%2Frubocop-changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcsonline%2Frubocop-changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcsonline%2Frubocop-changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcsonline%2Frubocop-changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcsonline","download_url":"https://codeload.github.com/fcsonline/rubocop-changes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250270097,"owners_count":21402995,"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":["diff","fork","git","rubocop"],"created_at":"2024-10-02T09:53:42.581Z","updated_at":"2025-10-20T00:56:16.976Z","avatar_url":"https://github.com/fcsonline.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Rubocop::Changes\n\n[![Gem Version](https://img.shields.io/gem/v/rubocop-changes)](https://rubygems.org/gems/rubocop-changes)\n[![Build Status](https://github.com/fcsonline/rubocop-changes/actions/workflows/ci.yml/badge.svg)](https://github.com/fcsonline/rubocop-changes/actions/workflows/ci.yml)\n\n`rubocop-changes` runs rubocop and shows only the offenses you introduced since\nthe fork point of your git branch. Will not complain about existing offenses in\nyour main branch.\n\nThis is useful for CI checks for your pull requests but it could be useful too\nfor you daily work, to know new offenses created by you.\n\nInternally `rubocop-changes` runs `rubocop` and a `git diff` and does the\nintersection of line numbers to know the new offenses you are introducing to\nyou master branch.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rubocop-changes'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rubocop-changes\n\n## Usage\n\n    $ bundle exec rubocop-changes -b master\n    \nWhen you run `rubocop-changes`, you have to specify which is your base branch with `-b` argument. By default is `main`. If you want to avoid to pass this argument everytime you execute this command, you can also set the `RUBOCOP_CHANGES_BASE_BRANCH` environment variable.\n\n## Other gems\n\nThere are similar projects out there, like\n[rubocop-git](https://github.com/m4i/rubocop-git),\n[diffcop](https://github.com/yohira0616/diffcop),\n[nexocop](https://github.com/SimpleNexus/nexocop), but not all of them offer\ndifferences at line level. Only\n[rubocop-git](https://github.com/m4i/rubocop-git) offer this nice feature but\nyou have to craft the commit id to get the proper fork point of your pull\nrequest.\n\nrubocop-changes does this diff out of the box without specify any commit id. If\nyou want to get the offense comparing from one specific commit, you can pass\nthe argument `commit` to the command.\n\n## Ideas\n\nThose are some ideas to improve `rubocop-changes`:\n\n- [ ] Let users specify the rubocop config file\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/fcsonline/rubocop-changes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Rubocop::Changes project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fcsonline/rubocop-changes/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcsonline%2Frubocop-changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcsonline%2Frubocop-changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcsonline%2Frubocop-changes/lists"}