mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
Rubocop updates (#1118)
* Minimal code style enforcement * Formatting and lint code updates (no change in functionality)
This commit is contained in:
parent
359bceb58e
commit
eef4c2643b
41 changed files with 529 additions and 519 deletions
7
.editorconfig
Normal file
7
.editorconfig
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
25
.rubocop.yml
25
.rubocop.yml
|
@ -1,12 +1,15 @@
|
||||||
# Omakase Ruby styling for Rails
|
inherit_gem:
|
||||||
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
|
rubocop-rails-omakase: rubocop.yml
|
||||||
|
|
||||||
# Overwrite or add rules to create your own house style
|
Layout/IndentationWidth:
|
||||||
#
|
Enabled: true
|
||||||
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
|
|
||||||
# Layout/SpaceInsideArrayLiteralBrackets:
|
Layout/IndentationStyle:
|
||||||
# Enabled: false
|
EnforcedStyle: spaces
|
||||||
Layout/ElseAlignment:
|
IndentationWidth: 2
|
||||||
Enabled: false
|
|
||||||
Layout/EndAlignment:
|
Layout/IndentationConsistency:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
||||||
|
Enabled: true
|
Loading…
Add table
Add a link
Reference in a new issue