|
| 1 | +# Common configuration. |
| 2 | +AllCops: |
| 3 | + # Include common Ruby source files. |
| 4 | + Include: |
| 5 | + - '**/*.gemspec' |
| 6 | + - '**/*.podspec' |
| 7 | + - '**/*.jbuilder' |
| 8 | + - '**/*.rake' |
| 9 | + - '**/*.opal' |
| 10 | + - '**/config.ru' |
| 11 | + - '**/Gemfile' |
| 12 | + - '**/Rakefile' |
| 13 | + - '**/Capfile' |
| 14 | + - '**/Podfile' |
| 15 | + - '**/Thorfile' |
| 16 | + - '**/Vagrantfile' |
| 17 | + - '**/Berksfile' |
| 18 | + - '**/Cheffile' |
| 19 | + - '**/Vagabondfile' |
| 20 | + Exclude: |
| 21 | + - 'vendor/**/*' |
| 22 | + - 'config/**/*' |
| 23 | + - 'db/**/*' |
| 24 | + - 'Gemfile*' |
| 25 | + - 'bin/**/*' |
| 26 | + - 'Guardfile*' |
| 27 | + |
| 28 | + # Cop names are not displayed in offense messages by default. Change behavior |
| 29 | + # by overriding DisplayCopNames, or by giving the -D/--display-cop-names |
| 30 | + # option. |
| 31 | + DisplayCopNames: true |
| 32 | + # Style guide URLs are not displayed in offense messages by default. Change |
| 33 | + # behavior by overriding DisplayStyleGuide, or by giving the |
| 34 | + # -S/--display-style-guide option. |
| 35 | + DisplayStyleGuide: true |
| 36 | + # Additional cops that do not reference a style guide rule may be enabled by |
| 37 | + # default. Change behavior by overriding StyleGuideCopsOnly, or by giving |
| 38 | + # the --only-guide-cops option. |
| 39 | + StyleGuideCopsOnly: false |
| 40 | + # All cops except the ones in disabled.yml are enabled by default. Change |
| 41 | + # this behavior by overriding DisabledByDefault. When DisabledByDefault is |
| 42 | + # true, all cops in the default configuration are disabled, and and only cops |
| 43 | + # in user configuration are enabled. This makes cops opt-in instead of |
| 44 | + # opt-out. Note that when DisabledByDefault is true, cops in user |
| 45 | + # configuration will be enabled even if they don't set the Enabled parameter. |
| 46 | + DisabledByDefault: false |
| 47 | + # Enables the result cache if true. Can be overridden by the --cache command |
| 48 | + # line option. |
| 49 | + UseCache: true |
| 50 | + # Threshold for how many files can be stored in the result cache before some |
| 51 | + # of the files are automatically removed. |
| 52 | + MaxFilesInCache: 20000 |
| 53 | + # The cache will be stored in "rubocop_cache" under this directory. The name |
| 54 | + # "/tmp" is special and will be converted to the system temporary directory, |
| 55 | + # which is "/tmp" on Unix-like systems, but could be something else on other |
| 56 | + # systems. |
| 57 | + CacheRootDirectory: /tmp |
| 58 | + |
| 59 | +Metrics/LineLength: |
| 60 | + Max: 80 |
| 61 | + |
| 62 | +Style/Documentation: |
| 63 | + Enabled: false |
| 64 | + |
| 65 | +Style/StringLiterals: |
| 66 | + Enabled: false |
0 commit comments