Skip to content
Snippets Groups Projects
Commit 7c4f0b8d authored by Vitali Tatarintev's avatar Vitali Tatarintev
Browse files

Fix Layout/EmptyLinesAroundAttributeAccessor offences

Fix and enable `Layout/EmptyLinesAroundAttributeAccessor`
parent 0428d3e6
No related branches found
No related tags found
1 merge request!81264Fix Layout/EmptyLinesAroundAttributeAccessor offences
Showing
with 19 additions and 7 deletions
......@@ -32,13 +32,6 @@ Graphql/IDType:
Layout/ArgumentAlignment:
Enabled: false
# Offense count: 54
# Cop supports --auto-correct.
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
# Offense count: 771
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
......
......@@ -7,6 +7,7 @@ class ApplicationMailer < ActionMailer::Base
helper MarkupHelper
attr_accessor :current_user
helper_method :current_user, :can?
default from: proc { default_sender_address.format }
......
......@@ -4,6 +4,7 @@ class LfsDownloadObject
include ActiveModel::Validations
attr_accessor :oid, :size, :link, :headers
delegate :sanitized_url, :credentials, to: :sanitized_uri
validates :oid, format: { with: /\A\h{64}\z/ }
......
......@@ -3,6 +3,7 @@
module Storage
class Hashed
attr_accessor :container
delegate :gitlab_shell, :repository_storage, to: :container
REPOSITORY_PATH_PREFIX = '@hashed'
......
......@@ -3,6 +3,7 @@
module Storage
class LegacyProject
attr_accessor :project
delegate :namespace, :gitlab_shell, :repository_storage, to: :project
def initialize(project)
......
......@@ -45,6 +45,7 @@ def to_key
# The GitLab Wiki instance.
attr_reader :wiki
delegate :container, to: :wiki
# The raw Gitlab::Git::WikiPage instance.
......
......@@ -17,6 +17,7 @@ def perform_if_needed
MAX_TRACKABLE_FAILURES = 200
attr_reader :pipeline
delegate :project, to: :pipeline
def initialize(pipeline)
......
......@@ -57,6 +57,7 @@ def evaluated_scope_for(service)
prepended do
attr_accessor :rate_limiter_bypassed
cattr_accessor :rate_limiter_scoped_and_keyed
def self.rate_limit(key:, opts:, rate_limiter: ::Gitlab::ApplicationRateLimiter)
......
......@@ -6,6 +6,7 @@ module UpdateRepositoryStorageMethods
Error = Class.new(StandardError)
attr_reader :repository_storage_move
delegate :container, :source_storage_name, :destination_storage_name, to: :repository_storage_move
def initialize(repository_storage_move)
......
......@@ -4,6 +4,7 @@ module NotificationRecipients
module Builder
class MergeRequestUnmergeable < Base
attr_reader :target
def initialize(merge_request)
@target = merge_request
end
......
......@@ -4,6 +4,7 @@ module NotificationRecipients
module Builder
class NewNote < Base
attr_reader :note
def initialize(note)
@note = note
end
......
......@@ -4,6 +4,7 @@ module NotificationRecipients
module Builder
class NewReview < Base
attr_reader :review
def initialize(review)
@review = review
end
......
......@@ -18,6 +18,7 @@
class NotificationService
class Async
attr_reader :parent
delegate :respond_to_missing, to: :parent
def initialize(parent)
......
......@@ -3,6 +3,7 @@
module Projects
class BaseMoveRelationsService < BaseService
attr_reader :source_project
def execute(source_project, remove_remaining_elements: true)
return if source_project.blank?
......
......@@ -11,6 +11,7 @@ class LfsDownloadService < BaseService
LARGE_FILE_SIZE = 1.megabytes
attr_reader :lfs_download_object
delegate :oid, :size, :credentials, :sanitized_url, :headers, to: :lfs_download_object, prefix: :lfs
def initialize(project, lfs_download_object)
......
......@@ -34,6 +34,7 @@ def post_connection_check(hostname)
class Net::HTTP
attr_accessor :hostname_override
SSL_IVNAMES << :@hostname_override
SSL_ATTRIBUTES << :hostname_override
......
......@@ -37,6 +37,7 @@ def execute
private
attr_reader :pipeline, :params
delegate :project, :has_security_findings?, to: :pipeline, private: true
def findings
......
......@@ -22,6 +22,7 @@ def execute
attr_reader :pipeline
attr_reader :runner_minutes
delegate :project, to: :pipeline
def validate_build_matchers
......
......@@ -34,6 +34,7 @@ def execute
private
attr_reader :user, :vulnerability, :link_type, :external_provider, :external_provider_service, :external_issue_link
delegate :project, to: :vulnerability
def create_external_issue
......
......@@ -7,6 +7,7 @@ class ResponseCheck
include ActiveModel::Model
attr_reader :xml_response, :identity
delegate :name_id, :name_id_format, :xml, to: :xml_response
validate :response_error_passthrough!
......
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