Guest User

Untitled

a guest
Nov 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. AllCops:
  2. TargetRubyVersion: 2.5
  3. # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
  4. # to ignore them, so only the ones explicitly set in this file are enabled.
  5. DisabledByDefault: true
  6. Include:
  7. - '**/*.podspec'
  8. - '**/*.jbuilder'
  9. - '**/*.rake'
  10. - '**/*.opal'
  11. - '**/*.rb'
  12. - '**/config.ru'
  13. - '**/Rakefile'
  14. - '**/Capfile'
  15. - '**/Guardfile'
  16. - '**/Podfile'
  17. - '**/Thorfile'
  18. - '**/Vagrantfile'
  19. - '**/Berksfile'
  20. - '**/Cheffile'
  21. - '**/Vagabondfile'
  22. - '**/Fastfile'
  23. - '**/*Fastfile'
  24. Exclude:
  25. - '**/*.gemspec'
  26. - '**/Gemfile*'
  27. - 'Gemfile*'
  28. - 'vendor/**/*'
  29. - 'db/schema.rb'
  30. - 'db/migrate/**/*.rb'
  31. - 'config/**/*'
  32. - 'bin/**/*'
  33. - 'tmp/**/*'
  34. - 'var/**/*'
  35. - '.git/**/*'
  36. - 'node_modules/**/*'
  37. - 'infra/**/*'
  38. - 'db/**/*'
  39. # Prefer &&/|| over and/or.
  40. Style/AndOr:
  41. Enabled: false
  42.  
  43. FactoryBot/AttributeDefinedStatically:
  44. Enabled: true
  45.  
  46. # Do not use braces for hash literals when they are the last argument of a
  47. # method call.
  48. Style/BracesAroundHashParameters:
  49. Enabled: true
  50.  
  51. # Align `when` with `case`.
  52. Layout/CaseIndentation:
  53. Enabled: true
  54.  
  55. # Align comments with method definitions.
  56. Layout/CommentIndentation:
  57. Enabled: true
  58.  
  59. # No extra empty lines.
  60. Layout/EmptyLines:
  61. Enabled: true
  62.  
  63. # In a regular class definition, no empty lines around the body.
  64. Layout/EmptyLinesAroundClassBody:
  65. Enabled: true
  66.  
  67. # In a regular method definition, no empty lines around the body.
  68. Layout/EmptyLinesAroundMethodBody:
  69. Enabled: true
  70.  
  71. # In a regular module definition, no empty lines around the body.
  72. Layout/EmptyLinesAroundModuleBody:
  73. Enabled: true
  74.  
  75. # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
  76. Style/HashSyntax:
  77. Enabled: true
  78.  
  79. # Method definitions after `private` or `protected` isolated calls need one
  80. # extra level of indentation.
  81. Layout/IndentationConsistency:
  82. Enabled: true
  83. EnforcedStyle: rails
  84.  
  85. # Two spaces, no tabs (for indentation).
  86. Layout/IndentationWidth:
  87. Width: 2
  88. Enabled: true
  89.  
  90. Layout/SpaceAfterColon:
  91. Enabled: true
  92.  
  93. Layout/SpaceAfterComma:
  94. Enabled: true
  95.  
  96. Layout/SpaceAroundEqualsInParameterDefault:
  97. Enabled: true
  98.  
  99. Layout/SpaceAroundKeyword:
  100. Enabled: true
  101.  
  102. Layout/SpaceAroundOperators:
  103. Enabled: true
  104.  
  105. Layout/SpaceBeforeFirstArg:
  106. Enabled: true
  107.  
  108. # Defining a method with parameters needs parentheses.
  109. Style/MethodDefParentheses:
  110. Enabled: true
  111.  
  112. # Use `foo {}` not `foo{}`.
  113. Layout/SpaceBeforeBlockBraces:
  114. Enabled: true
  115.  
  116. # Use `foo { bar }` not `foo {bar}`.
  117. Layout/SpaceInsideBlockBraces:
  118. Enabled: true
  119.  
  120. # Use `{ a: 1 }` not `{a:1}`.
  121. Layout/SpaceInsideHashLiteralBraces:
  122. Enabled: true
  123.  
  124. Layout/SpaceInsideParens:
  125. Enabled: true
  126.  
  127. # Check quotes usage according to lint rule below.
  128. Style/StringLiterals:
  129. Enabled: false
  130. EnforcedStyle: double_quotes
  131.  
  132. # Detect hard tabs, no hard tabs.
  133. Layout/Tab:
  134. Enabled: true
  135.  
  136. # Blank lines should not have any spaces.
  137. Layout/TrailingBlankLines:
  138. Enabled: true
  139.  
  140. # No trailing whitespace.
  141. Layout/TrailingWhitespace:
  142. Enabled: true
  143.  
  144. # Use quotes for string literals when they are enough.
  145. Style/UnneededPercentQ:
  146. Enabled: true
  147.  
  148. # Align `end` with the matching keyword or starting expression except for
  149. # assignments, where it should be aligned with the LHS.
  150. Layout/EndAlignment:
  151. Enabled: true
  152. EnforcedStyleAlignWith: keyword
  153.  
  154. # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
  155. Lint/RequireParentheses:
  156. Enabled: true
Add Comment
Please, Sign In to add comment