From face87b7bb3af2188fd42f47fa0d43d46dafbc78 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 30 May 2016 11:55:00 +0200 Subject: Enable Style/Semicolon rubocop style cop See #17478 --- .rubocop.yml | 2 +- app/models/network/graph.rb | 2 +- lib/gitlab/middleware/go.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index eece9ec69d8..784697aaaa8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -514,7 +514,7 @@ Style/SelfAssignment: # Don't use semicolons to terminate expressions. Style/Semicolon: - Enabled: false + Enabled: true # Checks for proper usage of fail and raise. Style/SignalException: diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb index 1ac37e0307f..39ffb2d8f8b 100644 --- a/app/models/network/graph.rb +++ b/app/models/network/graph.rb @@ -164,7 +164,7 @@ module Network i != range.last && @commits[i].spaces.include?(overlap_space) - return true; + return true end end diff --git a/lib/gitlab/middleware/go.rb b/lib/gitlab/middleware/go.rb index 50b0dd32380..5764ab15652 100644 --- a/lib/gitlab/middleware/go.rb +++ b/lib/gitlab/middleware/go.rb @@ -39,7 +39,7 @@ module Gitlab request_url = URI.join(base_url, project_path) domain_path = strip_url(request_url.to_s) - "\n"; + "\n" end def strip_url(url) -- cgit v1.2.1