diff --git a/.rubocop.yml b/.rubocop.yml index eece9ec69d8d1681491612b286d6331309113ce4..784697aaaa897b8ce49c539b72ef7e62a3282acd 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 1ac37e0307f8e683e4adadad3720c07954747764..39ffb2d8f8b3cca0d959b9607f1ec041da4f9dd0 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 50b0dd32380325268496a65674056c676d30f4a8..5764ab1565279617829350145d1b020286745955 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) - "<!DOCTYPE html><html><head><meta content='#{domain_path} git #{request_url}.git' name='go-import'></head></html>\n"; + "<!DOCTYPE html><html><head><meta content='#{domain_path} git #{request_url}.git' name='go-import'></head></html>\n" end def strip_url(url)