{"repo":"rubocop/rubocop-performance","free":true,"listed":false,"github":"https://github.com/rubocop/rubocop-performance","clone":"git clone https://github.com/rubocop/rubocop-performance.git","description":"An extension of RuboCop focused on code performance checks.","language":"Ruby","stars":740,"topics":["ruby","rubocop","linter","static-code-analysis","code-formatter","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"RuboCop Performance Performance optimization analysis for your projects, as an extension to RuboCop. Installation Just install the rubocop-performance gem or if you use bundler put this in your Gemfile Usage You need to tell RuboCop to load the Performance extension. There are three ways to do this: RuboCop configuration file Put this into your .rubocop.yml . Alternatively, use the following array notation when specifying multiple extensions. Now you can run rubocop and it will automatically load the RuboCop Performance cops together with the standard cops. [!NOTE] The plugin system is supported in RuboCop 1.72+. In earlier versions, use require instead of plugins . Command line Rake task The Cops All cops are located under lib/rubocop/cop/performance , and contain examples/documentation. In your .rubocop.yml , you may treat the Performance cops just like any other cop. For example: Documentation You can read a lot more about RuboCop Performance in its official docs. Compatibility RuboCop Performance is compatible with RuboCop core. See the compatibility documentation for further details. Note: Performance cops are all MRI focused and are highly dependent of the version of MRI you're using. Contributing Checkout the contribution guidelines. License rubocop-performance is MIT licensed. See the accompanying file for the full text.","default_branch":null,"files":null,"tree":[],"storefront":"/r/rubocop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rubocop/rubocop-performance/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}