Fixed remaining cop offenses for Naming/FileName
This commit is contained in:
parent
7d567806c8
commit
eb8e562cb8
18
.rubocop.yml
18
.rubocop.yml
|
@ -130,6 +130,7 @@ Naming/FileName:
|
|||
- 'qa/spec/**/*'
|
||||
- 'qa/qa/specs/**/*'
|
||||
- 'qa/tasks/**/*.rake'
|
||||
- '**/*.ru'
|
||||
|
||||
IgnoreExecutableScripts: true
|
||||
AllowedAcronyms:
|
||||
|
@ -151,6 +152,23 @@ Naming/FileName:
|
|||
- CI
|
||||
- CD
|
||||
- OAuth
|
||||
- CSP
|
||||
- CSV
|
||||
- SCA
|
||||
- SAN
|
||||
- CIDR
|
||||
- SPDX
|
||||
- MR
|
||||
- SSE
|
||||
- JWT
|
||||
- HLL
|
||||
- VSCode
|
||||
- GPG
|
||||
- OTP
|
||||
- GID
|
||||
- AR
|
||||
- RSpec
|
||||
- Javascript
|
||||
# default ones:
|
||||
- CLI
|
||||
- DSL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
cal = Icalendar::Calendar.new
|
||||
|
@ -17,3 +18,5 @@ end
|
|||
# rubocop: enable CodeReuse/ActiveRecord
|
||||
|
||||
cal.to_ical
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -5,7 +5,7 @@ require 'rails'
|
|||
require 'png_quantizator'
|
||||
require 'parallel'
|
||||
require 'rainbow/ext/string'
|
||||
require_relative '../tooling/lib/tooling/images'
|
||||
require_relative '../tooling/lib/tooling/image'
|
||||
|
||||
return if Rails.env.production?
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Dast
|
||||
|
@ -13,3 +14,5 @@ def exists
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ApplicationClassProxy = Elastic::Latest::ApplicationClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ApplicationInstanceProxy = Elastic::Latest::ApplicationInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -6,3 +7,5 @@ module V12p1
|
|||
IssueConfig = Elastic::Latest::IssueConfig
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
IssueClassProxy = Elastic::Latest::IssueClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
IssueInstanceProxy = Elastic::Latest::IssueInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
MergeRequestClassProxy = Elastic::Latest::MergeRequestClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
MergeRequestInstanceProxy = Elastic::Latest::MergeRequestInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
MilestoneClassProxy = Elastic::Latest::MilestoneClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
MilestoneInstanceProxy = Elastic::Latest::MilestoneInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
NoteClassProxy = Elastic::Latest::NoteClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
NoteInstanceProxy = Elastic::Latest::NoteInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ProjectClassProxy = Elastic::Latest::ProjectClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ProjectInstanceProxy = Elastic::Latest::ProjectInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ProjectWikiClassProxy = Elastic::Latest::ProjectWikiClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
ProjectWikiInstanceProxy = Elastic::Latest::ProjectWikiInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
RepositoryClassProxy = Elastic::Latest::RepositoryClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
RepositoryInstanceProxy = Elastic::Latest::RepositoryInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
Routing = Elastic::Latest::Routing
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
SnippetClassProxy = Elastic::Latest::SnippetClassProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Elastic
|
||||
|
@ -5,3 +6,5 @@ module V12p1
|
|||
SnippetInstanceProxy = Elastic::Latest::SnippetInstanceProxy
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -25,3 +26,5 @@ def eql?(other)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -8,3 +9,5 @@ module Storage
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -144,3 +145,5 @@ def full_git_ref_name_unavailable?
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -14,3 +15,5 @@ module Migrations
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -5,3 +6,5 @@ module HealthChecks
|
|||
Metric = Struct.new(:name, :value, :labels)
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -12,3 +13,5 @@ def success?
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -13,3 +14,5 @@ def payload
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -14,3 +15,5 @@ def call(env)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -51,3 +52,5 @@ def validate_key!(key)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -5,3 +6,5 @@ module SlashCommands
|
|||
Result = Struct.new(:type, :message)
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
|
@ -155,3 +156,5 @@ class Transformer < Parslet::Transform
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
# rubocop:disable Naming/FileName
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Auto-require all cops under `rubocop/cop/**/*.rb`
|
||||
Dir[File.join(__dir__, 'cop', '**', '*.rb')].sort.each(&method(:require))
|
||||
|
||||
# rubocop:enable Naming/FileName
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
require 'png_quantizator'
|
||||
require 'open3'
|
||||
require 'parallel'
|
||||
require_relative '../tooling/lib/tooling/images'
|
||||
require_relative '../tooling/lib/tooling/image'
|
||||
|
||||
generator = ARGV[0]
|
||||
milestone = ARGV[1]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'fast_spec_helper'
|
||||
require_relative '../../../../rubocop/cop/gitlab/change_timzone'
|
||||
require_relative '../../../../rubocop/cop/gitlab/change_timezone'
|
||||
|
||||
RSpec.describe RuboCop::Cop::Gitlab::ChangeTimezone do
|
||||
subject(:cop) { described_class.new }
|
||||
|
|
Loading…
Reference in a new issue