diff --git a/.rubocop.yml b/.rubocop.yml
index 2d8eb4077f3a1f707b366c731b1ec6cb9fd449a0..7cf985383b64c1691ac04c8e995349a812aec414 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -222,7 +222,7 @@ Style/EndBlock:
 
 # Use Unix-style line endings.
 Style/EndOfLine:
-  Enabled: false
+  Enabled: true
 
 # Favor the use of Fixnum#even? && Fixnum#odd?
 Style/EvenOdd:
diff --git a/app/controllers/projects/find_file_controller.rb b/app/controllers/projects/find_file_controller.rb
index 54a0c447aee9928506dc65b1bb65017ebd30af83..cf53ad0a670afc87baa90ace785696ac567e772c 100644
--- a/app/controllers/projects/find_file_controller.rb
+++ b/app/controllers/projects/find_file_controller.rb
@@ -1,26 +1,26 @@
-# Controller for viewing a repository's file structure
-class Projects::FindFileController < Projects::ApplicationController
-  include ExtractsPath
-  include ActionView::Helpers::SanitizeHelper
-  include TreeHelper
-
-  before_action :require_non_empty_project
-  before_action :assign_ref_vars
-  before_action :authorize_download_code!
-
-  def show
-    return render_404 unless @repository.commit(@ref)
-
-    respond_to do |format|
-      format.html
-    end
-  end
-
-  def list
-    file_paths = @repo.ls_files(@ref)
-
-    respond_to do |format|
-      format.json { render json: file_paths }
-    end
-  end
-end
+# Controller for viewing a repository's file structure
+class Projects::FindFileController < Projects::ApplicationController
+  include ExtractsPath
+  include ActionView::Helpers::SanitizeHelper
+  include TreeHelper
+
+  before_action :require_non_empty_project
+  before_action :assign_ref_vars
+  before_action :authorize_download_code!
+
+  def show
+    return render_404 unless @repository.commit(@ref)
+
+    respond_to do |format|
+      format.html
+    end
+  end
+
+  def list
+    file_paths = @repo.ls_files(@ref)
+
+    respond_to do |format|
+      format.json { render json: file_paths }
+    end
+  end
+end