Pixta's RuboCop Settings.
You need to add or modify the following files to use our rubocop configuration.
- .gitignore
- .rubocop.yml
- spec/.rubocop.yml
Ignore .rubocop-http* files which are cached files.
.rubocop-http*
Inherit rubocop.yml and add specific settings for each repository like AllCops.
inherit_from:
- https://raw.githubusercontent.com/pixta-dev/pixta-rubocop/master/rubocop.yml
# Normally additional configs of AllCops/Include and AllCops/Exclude override to RuboCops's defaults.
# But you'd like to apply both RuboCops's defaults and addtional configs of AllCops/Include and AllCops/Exclude.
# ref: https://docs.rubocop.org/en/stable/configuration/#unusual-files-that-would-not-be-included-by-default
inherit_mode:
merge:
- Include
- Exclude
AllCops:
TargetRubyVersion: TODO
Exclude:
- 'Gemfile'
- 'bin/*'
- 'config/**/*'
- 'db/**/*'
- 'deploy/**/*'Inherit parental .rubocop.yml and rubocop_for_spec.yml.
inherit_from:
- ../.rubocop.yml
- https://raw.githubusercontent.com/pixta-dev/pixta-rubocop/master/rubocop_for_spec.ymlA sample rails project adopting our RuboCop configuration is placed in pixta-rubocop/sample_rails_root.