{"id":20904708,"url":"https://github.com/sage/rubocop-custom-cops","last_synced_at":"2025-05-13T05:30:49.900Z","repository":{"id":137383874,"uuid":"95551393","full_name":"Sage/rubocop-custom-cops","owner":"Sage","description":"Custom checks for Rubocop - Static code analysis","archived":true,"fork":false,"pushed_at":"2018-04-03T16:44:45.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-12T21:28:13.606Z","etag":null,"topics":["rubocop","rubocop-rails","ruby","ruby-gem","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sage.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-27T11:31:03.000Z","updated_at":"2024-03-21T12:15:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7f5db20-dc2d-4253-9eaa-5234a7fe5237","html_url":"https://github.com/Sage/rubocop-custom-cops","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Frubocop-custom-cops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Frubocop-custom-cops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Frubocop-custom-cops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Frubocop-custom-cops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sage","download_url":"https://codeload.github.com/Sage/rubocop-custom-cops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253882728,"owners_count":21978541,"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":["rubocop","rubocop-rails","ruby","ruby-gem","static-code-analysis"],"created_at":"2024-11-18T13:18:35.102Z","updated_at":"2025-05-13T05:30:49.894Z","avatar_url":"https://github.com/Sage.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rubocop Custom Cops [![Build Status](https://travis-ci.org/Sage/rubocop-custom-cops.svg?branch=master)](https://travis-ci.org/Sage/rubocop-custom-cops) [![Maintainability](https://api.codeclimate.com/v1/badges/960efd688f42eaaeef91/maintainability)](https://codeclimate.com/github/Sage/rubocop-custom-cops/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/960efd688f42eaaeef91/test_coverage)](https://codeclimate.com/github/Sage/rubocop-custom-cops/test_coverage) [![Gem Version](https://badge.fury.io/rb/rubocop-custom-cops.svg)](https://badge.fury.io/rb/rubocop-custom-cops)\n\nContainer for custom Rubocop checks, called cops.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rubocop-custom-cops'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rubocop-custom-cops\n\n## Usage\n\nTODO: Write usage instructions here\n\n### Rails/ErrorsAddWithSymbol\n\n```ruby\n# bad\nperson.errors.add(:name, 'this text is already translated')\n\n# good\nperson.errors.add(:name, :proper_key_from_local_file)\n```\n\nBackground: our API provides error messages in a general, English form, as well as localized in the users languages. This is only possible when the translation happens inside `errors.add`.\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/Sage/rubocop-custom-cops. 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 [Apache License, Version 2.0](http://www.apache.org/licenses/).\n\n## Code of Conduct\n\nEveryone interacting in the Rubocop Custom Cops project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Sage/rubocop-custom-cops/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Frubocop-custom-cops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsage%2Frubocop-custom-cops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Frubocop-custom-cops/lists"}