Commit e0dbb592 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '343244_Fix_remaining_cop_offenses_for_Naming/FileName' into 'master'

Fixed remaining cop offenses for Naming/FileName

See merge request gitlab-org/gitlab!72638
parents 668e9888 eb8e562c
...@@ -130,6 +130,7 @@ Naming/FileName: ...@@ -130,6 +130,7 @@ Naming/FileName:
- 'qa/spec/**/*' - 'qa/spec/**/*'
- 'qa/qa/specs/**/*' - 'qa/qa/specs/**/*'
- 'qa/tasks/**/*.rake' - 'qa/tasks/**/*.rake'
- '**/*.ru'
IgnoreExecutableScripts: true IgnoreExecutableScripts: true
AllowedAcronyms: AllowedAcronyms:
...@@ -151,6 +152,23 @@ Naming/FileName: ...@@ -151,6 +152,23 @@ Naming/FileName:
- CI - CI
- CD - CD
- OAuth - OAuth
- CSP
- CSV
- SCA
- SAN
- CIDR
- SPDX
- MR
- SSE
- JWT
- HLL
- VSCode
- GPG
- OTP
- GID
- AR
- RSpec
- Javascript
# default ones: # default ones:
- CLI - CLI
- DSL - DSL
......
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
cal = Icalendar::Calendar.new cal = Icalendar::Calendar.new
...@@ -17,3 +18,5 @@ end ...@@ -17,3 +18,5 @@ end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
cal.to_ical cal.to_ical
# rubocop:enable Naming/FileName
...@@ -5,7 +5,7 @@ require 'rails' ...@@ -5,7 +5,7 @@ require 'rails'
require 'png_quantizator' require 'png_quantizator'
require 'parallel' require 'parallel'
require 'rainbow/ext/string' require 'rainbow/ext/string'
require_relative '../tooling/lib/tooling/images' require_relative '../tooling/lib/tooling/image'
return if Rails.env.production? return if Rails.env.production?
......
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Dast module Dast
...@@ -13,3 +14,5 @@ module Dast ...@@ -13,3 +14,5 @@ module Dast
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ApplicationClassProxy = Elastic::Latest::ApplicationClassProxy ApplicationClassProxy = Elastic::Latest::ApplicationClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ApplicationInstanceProxy = Elastic::Latest::ApplicationInstanceProxy ApplicationInstanceProxy = Elastic::Latest::ApplicationInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -6,3 +7,5 @@ module Elastic ...@@ -6,3 +7,5 @@ module Elastic
IssueConfig = Elastic::Latest::IssueConfig IssueConfig = Elastic::Latest::IssueConfig
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
IssueClassProxy = Elastic::Latest::IssueClassProxy IssueClassProxy = Elastic::Latest::IssueClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
IssueInstanceProxy = Elastic::Latest::IssueInstanceProxy IssueInstanceProxy = Elastic::Latest::IssueInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
MergeRequestClassProxy = Elastic::Latest::MergeRequestClassProxy MergeRequestClassProxy = Elastic::Latest::MergeRequestClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
MergeRequestInstanceProxy = Elastic::Latest::MergeRequestInstanceProxy MergeRequestInstanceProxy = Elastic::Latest::MergeRequestInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
MilestoneClassProxy = Elastic::Latest::MilestoneClassProxy MilestoneClassProxy = Elastic::Latest::MilestoneClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
MilestoneInstanceProxy = Elastic::Latest::MilestoneInstanceProxy MilestoneInstanceProxy = Elastic::Latest::MilestoneInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
NoteClassProxy = Elastic::Latest::NoteClassProxy NoteClassProxy = Elastic::Latest::NoteClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
NoteInstanceProxy = Elastic::Latest::NoteInstanceProxy NoteInstanceProxy = Elastic::Latest::NoteInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ProjectClassProxy = Elastic::Latest::ProjectClassProxy ProjectClassProxy = Elastic::Latest::ProjectClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ProjectInstanceProxy = Elastic::Latest::ProjectInstanceProxy ProjectInstanceProxy = Elastic::Latest::ProjectInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ProjectWikiClassProxy = Elastic::Latest::ProjectWikiClassProxy ProjectWikiClassProxy = Elastic::Latest::ProjectWikiClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
ProjectWikiInstanceProxy = Elastic::Latest::ProjectWikiInstanceProxy ProjectWikiInstanceProxy = Elastic::Latest::ProjectWikiInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
RepositoryClassProxy = Elastic::Latest::RepositoryClassProxy RepositoryClassProxy = Elastic::Latest::RepositoryClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
RepositoryInstanceProxy = Elastic::Latest::RepositoryInstanceProxy RepositoryInstanceProxy = Elastic::Latest::RepositoryInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
Routing = Elastic::Latest::Routing Routing = Elastic::Latest::Routing
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
SnippetClassProxy = Elastic::Latest::SnippetClassProxy SnippetClassProxy = Elastic::Latest::SnippetClassProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Elastic module Elastic
...@@ -5,3 +6,5 @@ module Elastic ...@@ -5,3 +6,5 @@ module Elastic
SnippetInstanceProxy = Elastic::Latest::SnippetInstanceProxy SnippetInstanceProxy = Elastic::Latest::SnippetInstanceProxy
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -25,3 +26,5 @@ module Gitlab ...@@ -25,3 +26,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -8,3 +9,5 @@ module Gitlab ...@@ -8,3 +9,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -144,3 +145,5 @@ module Gitlab ...@@ -144,3 +145,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -14,3 +15,5 @@ module Gitlab ...@@ -14,3 +15,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -5,3 +6,5 @@ module Gitlab ...@@ -5,3 +6,5 @@ module Gitlab
Metric = Struct.new(:name, :value, :labels) Metric = Struct.new(:name, :value, :labels)
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -12,3 +13,5 @@ module Gitlab ...@@ -12,3 +13,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -13,3 +14,5 @@ module Gitlab ...@@ -13,3 +14,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -14,3 +15,5 @@ module Gitlab ...@@ -14,3 +15,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -51,3 +52,5 @@ module Gitlab ...@@ -51,3 +52,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -5,3 +6,5 @@ module Gitlab ...@@ -5,3 +6,5 @@ module Gitlab
Result = Struct.new(:type, :message) Result = Struct.new(:type, :message)
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
module Gitlab module Gitlab
...@@ -155,3 +156,5 @@ module Gitlab ...@@ -155,3 +156,5 @@ module Gitlab
end end
end end
end end
# rubocop:enable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true # frozen_string_literal: true
# Auto-require all cops under `rubocop/cop/**/*.rb` # Auto-require all cops under `rubocop/cop/**/*.rb`
Dir[File.join(__dir__, 'cop', '**', '*.rb')].sort.each(&method(:require)) Dir[File.join(__dir__, 'cop', '**', '*.rb')].sort.each(&method(:require))
# rubocop:enable Naming/FileName
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
require 'png_quantizator' require 'png_quantizator'
require 'open3' require 'open3'
require 'parallel' require 'parallel'
require_relative '../tooling/lib/tooling/images' require_relative '../tooling/lib/tooling/image'
generator = ARGV[0] generator = ARGV[0]
milestone = ARGV[1] milestone = ARGV[1]
......
# frozen_string_literal: true # frozen_string_literal: true
require 'fast_spec_helper' 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 RSpec.describe RuboCop::Cop::Gitlab::ChangeTimezone do
subject(:cop) { described_class.new } subject(:cop) { described_class.new }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment