Skip to content

Commit bdfa05b

Browse files
committed
Added .rubocop.yml with configuration for IndentationConsistency
1 parent 0089b3a commit bdfa05b

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Style/IndentationConsistency:
2+
EnforcedStyle: rails

app/controllers/ember_index_controller.rb

+13-13
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ def index
1717

1818
private
1919

20-
def fetch_revision
21-
rev = params[:revision]
22-
if rev =~ SHORT_UUID_V4_REGEXP
23-
rev
20+
def fetch_revision
21+
rev = params[:revision]
22+
if rev =~ SHORT_UUID_V4_REGEXP
23+
rev
24+
end
2425
end
25-
end
2626

27-
def process_index(index)
28-
return "INDEX NOT FOUND" unless index
27+
def process_index(index)
28+
return "INDEX NOT FOUND" unless index
2929

30-
index.sub!('/ember-cli-live-reload', 'http://localhost:4200/ember-cli-live-reload') if Rails.env.development?
30+
index.sub!('/ember-cli-live-reload', 'http://localhost:4200/ember-cli-live-reload') if Rails.env.development?
3131

32-
index
33-
end
32+
index
33+
end
3434

35-
def set_response_format
36-
request.format = :html
37-
end
35+
def set_response_format
36+
request.format = :html
37+
end
3838
end

0 commit comments

Comments
 (0)