--- title: Rubocop sidebar_label: Rubocop description: CodeRabbit's guide to Rubocop. --- [Rubocop](https://rubocop.org/) A Ruby static code analyzer and formatter, based on the community Ruby style guide. ## Files Rubocop will run on the following files and extensions: - `.rb` - `.arb` - `.axlsx` - `.builder` - `.fcgi` - `.gemfile` - `.gemspec` - `.god` - `.jb` - `.jbuilder` - `.mspec` - `.opal` - `.pluginspec` - `.podspec` - `.rabl` - `.rake` - `.rbuild` - `.rbw` - `.rbx` - `.ru` - `.ruby` - `.schema` - `.spec` - `.thor` - `.watchr` - `.irbrc` - `.pryrc` - `.simplecov` - `buildfile` - `Appraisals` - `Berksfile` - `Brewfile` - `Buildfile` - `Capfile` - `Cheffile` - `Dangerfile` - `Deliverfile` - `Fastfile` - `Fastfile` - `Gemfile` - `Guardfile` - `Jarfile` - `Mavenfile` - `Podfile` - `Puppetfile` - `Rakefile` - `rakefile` - `Schemafile` - `Snapfile` - `Steepfile` - `Thorfile` - `Vagabondfile` - `Vagrantfile` ## Configuration Rubocop uses a YAML style configuration file. We look for the following files anywhere in the repository: - `.rubocop.yml` - `.rubocop.yaml` CodeRabbit will use the default settings based on the profile selected if no config file is found. ## Links - [Rubocop Configuration](https://docs.rubocop.org/rubocop/1.65/configuration.html/)