{"id":13879336,"url":"https://github.com/runtastic/rubocop_runner","last_synced_at":"2025-07-16T15:32:08.842Z","repository":{"id":15627002,"uuid":"78534315","full_name":"runtastic/rubocop_runner","owner":"runtastic","description":"runs rubocop for changed files, can be used as pre-commit hook","archived":false,"fork":false,"pushed_at":"2022-10-07T08:10:17.000Z","size":41,"stargazers_count":31,"open_issues_count":1,"forks_count":9,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-11-11T14:37:10.454Z","etag":null,"topics":["git-hook","rubocop","runtastic"],"latest_commit_sha":null,"homepage":null,"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/runtastic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-10T13:06:14.000Z","updated_at":"2024-05-06T08:46:11.000Z","dependencies_parsed_at":"2022-08-20T16:10:38.243Z","dependency_job_id":null,"html_url":"https://github.com/runtastic/rubocop_runner","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtastic%2Frubocop_runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtastic%2Frubocop_runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtastic%2Frubocop_runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtastic%2Frubocop_runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runtastic","download_url":"https://codeload.github.com/runtastic/rubocop_runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226143895,"owners_count":17580245,"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":["git-hook","rubocop","runtastic"],"created_at":"2024-08-06T08:02:17.550Z","updated_at":"2024-11-24T08:31:16.273Z","avatar_url":"https://github.com/runtastic.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# RubocopRunner\n\n[![Gem Version](https://badge.fury.io/rb/rubocop_runner.svg)][rubygems]\n\nThis gem provides you with a rake task to install rubocop as a git pre-commit hook.\nIf rubocop finds any issues it will abort the commit. It will try to auto-correct\nall issues in the files that are being commited, but will abort the commit even\nif all issues can be auto-corrected so that you can verify the changes before\nactually commiting them.\n\n_Although this gem has no tests it's battle tested and is in use at runtastic\nsince years._\n\n## Installation\n\nAdd these lines to your application's Gemfile:\n\n```ruby\ngem 'rubocop_runner', '~\u003e 2.1', require: false\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rubocop_runner\n\n## Usage\n\nTo create a rubocop runner pre-commit hook once just run\n\n```sh\nruby -rrubocop_runner -e \"RubocopRunner.install\"\n```\n\nTo make it easy for every developer on the project you can also add this to your\n`Rakefile`:\n\n```ruby\nrequire 'rubocop_runner/rake_task'\nRubocopRunner::RakeTask.new\n```\n\nAfterwards, just run the `rake rubocop:install` task to install the pre-commit\nhook.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can\nalso 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\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/runtastic/rubocop_runner.\nThis project is intended to be a safe, welcoming space for collaboration, and\ncontributors are expected to adhere to the [code of conduct][cc].\n\nCheck out our [career page](https://www.runtastic.com/career/) if you'd like to work with us.\n\n## License\nThe gem is available as open source under [the terms of the MIT License][mit].\n\n[rubygems]: https://rubygems.org/gems/rubocop_runner\n[mit]: https://choosealicense.com/licenses/mit/\n[cc]: ../CODE_OF_CONDUCT.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruntastic%2Frubocop_runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruntastic%2Frubocop_runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruntastic%2Frubocop_runner/lists"}