From 53bf080f676a70cfa18851727c42883fe3a83c55 Mon Sep 17 00:00:00 2001
From: Grzegorz Bizon <grzesiek.bizon@gmail.com>
Date: Mon, 30 May 2016 14:36:28 +0200
Subject: [PATCH] Enable Style/SpaceBeforeComment rubocop cop

See #17478
---
 .rubocop.yml                      | 2 +-
 config/initializers/doorkeeper.rb | 2 +-
 lib/event_filter.rb               | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.rubocop.yml b/.rubocop.yml
index 2d8eb4077f3a1..7c0f7d87cbd24 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -574,7 +574,7 @@ Style/SpaceBeforeComma:
 
 # Checks for missing space between code and a comment on the same line.
 Style/SpaceBeforeComment:
-  Enabled: false
+  Enabled: true
 
 # Checks that exactly one space is used between a method name and the first
 # argument for method calls without parentheses.
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index 66ac88e9f4af7..393ad909b45ad 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -71,7 +71,7 @@
   # The value can be any string. Use nil to disable this feature. When disabled, clients must provide a valid URL
   # (Similar behaviour: https://developers.google.com/accounts/docs/OAuth2InstalledApp#choosingredirecturi)
   #
-  native_redirect_uri nil#'urn:ietf:wg:oauth:2.0:oob'
+  native_redirect_uri nil # 'urn:ietf:wg:oauth:2.0:oob'
 
   # Specify what grant flows are enabled in array of Strings. The valid
   # strings and the flows they enable are:
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index f15b2cfd23109..668d2fa41b306 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -27,7 +27,7 @@ def initialize(params)
     @params = if params
                 params.dup
               else
-                []#EventFilter.default_filter
+                [] # EventFilter.default_filter
               end
   end
 
-- 
GitLab