Skip to content
Snippets Groups Projects
Commit 9e211091 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Enable Style/EmptyLines cop, remove redundant ones

parent b2273559
No related branches found
No related tags found
No related merge requests found
Showing
with 1 addition and 24 deletions
Loading
Loading
@@ -193,7 +193,7 @@ Style/EmptyLineBetweenDefs:
 
# Don't use several empty lines in a row.
Style/EmptyLines:
Enabled: false
Enabled: true
 
# Keep blank lines around access modifiers.
Style/EmptyLinesAroundAccessModifier:
Loading
Loading
Loading
Loading
@@ -22,7 +22,6 @@ class Admin::HooksController < Admin::ApplicationController
redirect_to admin_hooks_path
end
 
def test
@hook = SystemHook.find(params[:hook_id])
data = {
Loading
Loading
class ConfirmationsController < Devise::ConfirmationsController
def almost_there
flash[:notice] = nil
render layout: "devise_empty"
Loading
Loading
class Import::BaseController < ApplicationController
private
 
def get_or_create_namespace
Loading
Loading
Loading
Loading
@@ -5,7 +5,6 @@ class Import::FogbugzController < Import::BaseController
rescue_from Fogbugz::AuthenticationException, with: :fogbugz_unauthorized
 
def new
end
 
def callback
Loading
Loading
@@ -22,7 +21,6 @@ class Import::FogbugzController < Import::BaseController
end
 
def new_user_map
end
 
def create_user_map
Loading
Loading
Loading
Loading
@@ -44,5 +44,4 @@ class Import::GitoriousController < Import::BaseController
def verify_gitorious_import_enabled
render_404 unless gitorious_import_enabled?
end
end
Loading
Loading
@@ -3,7 +3,6 @@ class Import::GoogleCodeController < Import::BaseController
before_action :user_map, only: [:new_user_map, :create_user_map]
 
def new
end
 
def callback
Loading
Loading
@@ -34,7 +33,6 @@ class Import::GoogleCodeController < Import::BaseController
end
 
def new_user_map
end
 
def create_user_map
Loading
Loading
Loading
Loading
@@ -5,7 +5,6 @@ class InvitesController < ApplicationController
respond_to :html
 
def show
end
 
def accept
Loading
Loading
Loading
Loading
@@ -76,7 +76,6 @@ class Projects::IssuesController < Projects::ApplicationController
render json: @issue.to_json(include: [:milestone, :labels])
end
end
end
 
def create
Loading
Loading
Loading
Loading
@@ -7,7 +7,6 @@ class Projects::NetworkController < Projects::ApplicationController
before_action :authorize_download_code!
 
def show
@url = namespace_project_network_path(@project.namespace, @project, @ref, @options.merge(format: :json))
@commit_url = namespace_project_commit_path(@project.namespace, @project, 'ae45ca32').gsub("ae45ca32", "%s")
 
Loading
Loading
Loading
Loading
@@ -124,5 +124,4 @@ class Projects::WikisController < Projects::ApplicationController
def wiki_params
params[:wiki].slice(:title, :content, :format, :message)
end
end
module EmailsHelper
# Google Actions
# https://developers.google.com/gmail/markup/reference/go-to-action
def email_action(url)
Loading
Loading
module IssuablesHelper
def sidebar_gutter_toggle_icon
sidebar_gutter_collapsed? ? icon('angle-double-left') : icon('angle-double-right')
end
Loading
Loading
module SearchHelper
def search_autocomplete_opts(term)
return unless current_user
 
Loading
Loading
Loading
Loading
@@ -58,7 +58,6 @@ module Issuable
scope :references_project, -> { references(:project) }
scope :non_archived, -> { join_project.where(projects: { archived: false }) }
 
delegate :name,
:email,
to: :author,
Loading
Loading
Loading
Loading
@@ -15,7 +15,6 @@ class ProjectMember < Member
before_destroy :delete_member_todos
 
class << self
# Add users to project teams with passed access option
#
# access can be an integer representing a access code
Loading
Loading
class BugzillaService < IssueTrackerService
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
 
def title
Loading
Loading
@@ -21,5 +20,4 @@ class BugzillaService < IssueTrackerService
def to_param
'bugzilla'
end
end
class CustomIssueTrackerService < IssueTrackerService
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
 
def title
Loading
Loading
@@ -31,5 +30,4 @@ class CustomIssueTrackerService < IssueTrackerService
{ type: 'text', name: 'new_issue_url', placeholder: 'New Issue url' }
]
end
end
class DroneCiService < CiService
prop_accessor :drone_url, :token, :enable_ssl_verification
 
validates :drone_url, presence: true, url: true, if: :activated?
Loading
Loading
class IssueTrackerService < Service
validates :project_url, :issues_url, :new_issue_url, presence: true, url: true, if: :activated?
 
default_value_for :category, 'issue_tracker'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment