{"id":13483521,"url":"https://github.com/rubocop/rubocop-performance","last_synced_at":"2025-05-13T16:06:22.368Z","repository":{"id":37093694,"uuid":"136805605","full_name":"rubocop/rubocop-performance","owner":"rubocop","description":"An extension of RuboCop focused on code performance checks.","archived":false,"fork":false,"pushed_at":"2025-04-03T17:42:37.000Z","size":25902,"stargazers_count":711,"open_issues_count":54,"forks_count":82,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-01T08:12:56.372Z","etag":null,"topics":["code-formatter","hacktoberfest","linter","rubocop","ruby","static-code-analysis"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-performance","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/rubocop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null},"funding":{"github":"bbatsov","patreon":"bbatsov","open_collective":"rubocop","tidelift":"rubygems/rubocop","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2018-06-10T12:08:51.000Z","updated_at":"2025-04-24T15:57:56.000Z","dependencies_parsed_at":"2022-06-24T13:47:37.096Z","dependency_job_id":"74612f0c-7364-4d3d-b111-4a9cd95308af","html_url":"https://github.com/rubocop/rubocop-performance","commit_stats":{"total_commits":848,"total_committers":75,"mean_commits":"11.306666666666667","dds":"0.42452830188679247","last_synced_commit":"f0e791c08e9bcf43d737b802b6489764c45a13fc"},"previous_names":["rubocop-hq/rubocop-performance"],"tags_count":172,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252316999,"owners_count":21728521,"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":["code-formatter","hacktoberfest","linter","rubocop","ruby","static-code-analysis"],"created_at":"2024-07-31T17:01:12.300Z","updated_at":"2025-05-13T16:06:22.279Z","avatar_url":"https://github.com/rubocop.png","language":"Ruby","readme":"# RuboCop Performance\n\n[![Gem Version](https://badge.fury.io/rb/rubocop-performance.svg)](https://badge.fury.io/rb/rubocop-performance)\n[![CI](https://github.com/rubocop/rubocop-performance/actions/workflows/test.yml/badge.svg)](https://github.com/rubocop/rubocop-performance/actions/workflows/test.yml)\n[![Discord](https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true)](https://discord.gg/wJjWvGRDmm)\n\nPerformance optimization analysis for your projects, as an extension to [RuboCop](https://github.com/rubocop/rubocop).\n\n## Installation\n\nJust install the `rubocop-performance` gem\n\n```sh\n$ gem install rubocop-performance\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-performance', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the Performance extension. There are three\nways to do this:\n\n### RuboCop configuration file\n\nPut this into your `.rubocop.yml`.\n\n```yaml\nplugins: rubocop-performance\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-performance\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop Performance\ncops together with the standard cops.\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### Command line\n\n```sh\n$ rubocop --plugin rubocop-performance\n```\n\n### Rake task\n\n```ruby\nrequire 'rubocop/rake_task'\n\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-performance'\nend\n```\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/performance`](lib/rubocop/cop/performance), and contain\nexamples/documentation.\n\nIn your `.rubocop.yml`, you may treat the Performance cops just like any other\ncop. For example:\n\n```yaml\nPerformance/Size:\n  Exclude:\n    - lib/example.rb\n```\n\n## Documentation\n\nYou can read a lot more about RuboCop Performance in its [official docs](https://docs.rubocop.org/rubocop-performance/).\n\n## Compatibility\n\nRuboCop Performance complies with the RuboCop core compatibility.\n\nSee the [compatibility documentation](https://docs.rubocop.org/rubocop/compatibility.html) for further details.\n\n**Note:** Performance cops are all MRI focused and are highly dependent of the version of MRI you're using.\n\n## Contributing\n\nCheckout the [contribution guidelines](CONTRIBUTING.md).\n\n## License\n\n`rubocop-performance` is MIT licensed. [See the accompanying file](LICENSE.txt) for\nthe full text.\n","funding_links":["https://github.com/sponsors/bbatsov","https://patreon.com/bbatsov","https://opencollective.com/rubocop","https://tidelift.com/funding/github/rubygems/rubocop","https://www.paypal.me/bbatsov"],"categories":["Code Formatting","Ruby","Advanced Ruby and Rails","Performances"],"sub_categories":["Advanced Ruby"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-performance/lists"}