All Projects → rubocop → Rubocop Performance

rubocop / Rubocop Performance

Licence: mit
An extension of RuboCop focused on code performance checks.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Rubocop Performance

Rubocop Rails
A RuboCop extension focused on enforcing Rails best practices and coding conventions.
Stars: ✭ 433 (+27.35%)
Mutual labels:  linter, rubocop, static-code-analysis
rubocop-graphql
Rubocop extension for enforcing graphql-ruby best practices
Stars: ✭ 143 (-57.94%)
Mutual labels:  rubocop, static-code-analysis, linter
Rubocop Packaging
A RuboCop extension focused on enforcing upstream best practices and coding conventions.
Stars: ✭ 29 (-91.47%)
Mutual labels:  linter, rubocop, static-code-analysis
Rubocop
A Ruby static code analyzer and formatter, based on the community Ruby style guide.
Stars: ✭ 11,593 (+3309.71%)
Mutual labels:  linter, rubocop, static-code-analysis
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (-74.71%)
Mutual labels:  rubocop, linter
Pylint
It's not just a linter that annoys you!
Stars: ✭ 3,733 (+997.94%)
Mutual labels:  linter, static-code-analysis
Pmd
An extensible multilanguage static code analyzer.
Stars: ✭ 3,667 (+978.53%)
Mutual labels:  linter, static-code-analysis
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (-89.41%)
Mutual labels:  static-code-analysis, linter
jetrockets-standard
Standard RuboCop configuration for JetRockets with cookies
Stars: ✭ 14 (-95.88%)
Mutual labels:  rubocop, linter
Pytype
A static type analyzer for Python code
Stars: ✭ 3,545 (+942.65%)
Mutual labels:  linter, static-code-analysis
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+1235.59%)
Mutual labels:  linter, static-code-analysis
elm-review
Analyzes Elm projects, to help find mistakes before your users find them.
Stars: ✭ 195 (-42.65%)
Mutual labels:  static-code-analysis, linter
eslintcc
Complexity of Code - JavaScript/TypeScript
Stars: ✭ 15 (-95.59%)
Mutual labels:  static-code-analysis, linter
action-rubocop
Run rubocop with reviewdog 🐶
Stars: ✭ 83 (-75.59%)
Mutual labels:  rubocop, linter
standard-www
👆 Website for JavaScript Standard Style (@standard)
Stars: ✭ 28 (-91.76%)
Mutual labels:  static-code-analysis, linter
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (-74.71%)
Mutual labels:  static-code-analysis, linter
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (-89.12%)
Mutual labels:  static-code-analysis, linter
Awesome Standard
Documenting the explosion of packages in the standard ecosystem!
Stars: ✭ 300 (-11.76%)
Mutual labels:  linter, static-code-analysis
Bandit
Bandit is a tool designed to find common security issues in Python code.
Stars: ✭ 3,763 (+1006.76%)
Mutual labels:  linter, static-code-analysis
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (-86.47%)
Mutual labels:  static-code-analysis, linter

RuboCop Performance

Gem Version CircleCI

Performance optimization analysis for your projects, as an extension to RuboCop.

Installation

Just install the rubocop-performance gem

gem install rubocop-performance

or if you use bundler put this in your Gemfile

gem 'rubocop-performance', require: false

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.

require: rubocop-performance

Alternatively, use the following array notation when specifying multiple extensions.

require:
  - rubocop-other-extension
  - rubocop-performance

Now you can run rubocop and it will automatically load the RuboCop Performance cops together with the standard cops.

Command line

rubocop --require rubocop-performance

Rake task

RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-performance'
end

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:

Performance/Size:
  Exclude:
    - lib/example.rb

Documentation

You can read a lot more about RuboCop Performance in its official docs.

Compatibility

RuboCop Performance complies with the RuboCop core compatibility.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].