Commit cb36156e authored by Shubham Kumar's avatar Shubham Kumar Committed by Kerri Miller

Resolves rubocop offense Style/RedundantFileExtensionInRequire

parent 31f45d7b
......@@ -876,11 +876,6 @@ Style/RedundantFetchBlock:
- 'spec/lib/gitlab/null_request_store_spec.rb'
- 'spec/lib/gitlab/safe_request_store_spec.rb'
# Offense count: 26
# Cop supports --auto-correct.
Style/RedundantFileExtensionInRequire:
Enabled: false
# Offense count: 206
# Cop supports --auto-correct.
Style/RedundantInterpolation:
......
---
title: Resolves rubocop offense Style/RedundantFileExtensionInRequire
merge_request: 57963
author: Shubham Kumar (@imskr)
type: fixed
# frozen_string_literal: true
require_relative '../concerns/saml_authorization.rb'
require_relative '../concerns/saml_authorization'
class Groups::SamlProvidersController < Groups::ApplicationController
include SamlAuthorization
......
# frozen_string_literal: true
require_relative '../../app/models/concerns/token_authenticatable.rb'
require_relative '../../app/models/concerns/token_authenticatable_strategies/base.rb'
require_relative '../../app/models/concerns/token_authenticatable_strategies/insecure.rb'
require_relative '../../app/models/concerns/token_authenticatable_strategies/digest.rb'
require_relative '../../app/models/concerns/token_authenticatable'
require_relative '../../app/models/concerns/token_authenticatable_strategies/base'
require_relative '../../app/models/concerns/token_authenticatable_strategies/insecure'
require_relative '../../app/models/concerns/token_authenticatable_strategies/digest'
namespace :tokens do
desc "Reset all GitLab incoming email tokens"
......
# frozen_string_literal: true
require_relative 'cluster_with_prometheus.rb'
require_relative 'cluster_with_prometheus'
module QA
RSpec.describe 'Monitor', :orchestrated, :kubernetes, :requires_admin, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/241448', type: :investigating } do
......
# frozen_string_literal: true
require 'pathname'
require_relative '../../../browser_ui/8_monitor/cluster_with_prometheus.rb'
require_relative '../../../browser_ui/8_monitor/cluster_with_prometheus'
module QA
RSpec.describe 'Monitor', :orchestrated, :kubernetes, :requires_admin, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/241448', type: :investigating } do
......
# frozen_string_literal: true
require_relative '../../qa'
require 'net/protocol.rb'
require 'net/protocol'
# This script revokes all personal access tokens with the name of 'api-test-token' on the host specified by GITLAB_ADDRESS
# Required environment variables: GITLAB_USERNAME, GITLAB_PASSWORD and GITLAB_ADDRESS
# Run `rake revoke_personal_access_tokens`
......
# frozen_string_literal: true
require_relative '../../code_reuse_helpers.rb'
require_relative '../../code_reuse_helpers'
module RuboCop
module Cop
......
# frozen_string_literal: true
require_relative '../../code_reuse_helpers.rb'
require_relative '../../code_reuse_helpers'
module RuboCop
module Cop
......
# frozen_string_literal: true
require_relative '../../code_reuse_helpers.rb'
require_relative '../../code_reuse_helpers'
module RuboCop
module Cop
......
# frozen_string_literal: true
require_relative '../../code_reuse_helpers.rb'
require_relative '../../code_reuse_helpers'
module RuboCop
module Cop
......
# frozen_string_literal: true
require_relative '../../code_reuse_helpers.rb'
require_relative '../../code_reuse_helpers'
module RuboCop
module Cop
......
......@@ -5,7 +5,7 @@
require 'png_quantizator'
require 'open3'
require 'parallel'
require_relative '../tooling/lib/tooling/images.rb'
require_relative '../tooling/lib/tooling/images'
generator = ARGV[0]
milestone = ARGV[1]
......
# frozen_string_literal: true
require 'spec_helper'
require_relative '../../config/initializers/6_validations.rb'
require_relative '../../config/initializers/6_validations'
RSpec.describe '6_validations' do
describe 'validate_storages_config' do
......
......@@ -3,7 +3,7 @@
require 'fast_spec_helper'
require 'mail'
require_relative '../../config/initializers/mail_encoding_patch.rb'
require_relative '../../config/initializers/mail_encoding_patch'
RSpec.describe 'Mail quoted-printable transfer encoding patch and Unicode characters' do
shared_examples 'email encoding' do |email|
......
# frozen_string_literal: true
require 'spec_helper'
require_relative 'shared_example.rb'
require_relative 'shared_example'
RSpec.describe Gitlab::ImportExport::JSON::LegacyReader::File do
it_behaves_like 'import/export json legacy reader' do
......
# frozen_string_literal: true
require 'spec_helper'
require_relative 'shared_example.rb'
require_relative 'shared_example'
RSpec.describe Gitlab::ImportExport::JSON::LegacyReader::Hash do
it_behaves_like 'import/export json legacy reader' do
......
# frozen_string_literal: true
require 'fast_spec_helper'
require_relative '../../../../rubocop/cop/performance/ar_count_each.rb'
require_relative '../../../../rubocop/cop/performance/ar_count_each'
RSpec.describe RuboCop::Cop::Performance::ARCountEach do
subject(:cop) { described_class.new }
......
# frozen_string_literal: true
require 'fast_spec_helper'
require_relative '../../../../rubocop/cop/performance/ar_exists_and_present_blank.rb'
require_relative '../../../../rubocop/cop/performance/ar_exists_and_present_blank'
RSpec.describe RuboCop::Cop::Performance::ARExistsAndPresentBlank do
subject(:cop) { described_class.new }
......
# frozen_string_literal: true
require 'spec_helper'
require_relative 'shared_processing_service.rb'
require_relative 'shared_processing_service_tests_with_yaml.rb'
require_relative 'shared_processing_service'
require_relative 'shared_processing_service_tests_with_yaml'
RSpec.describe Ci::PipelineProcessing::AtomicProcessingService do
it_behaves_like 'Pipeline Processing Service'
......
# frozen_string_literal: true
require 'spec_helper.rb'
require 'spec_helper'
RSpec.describe Issues::BuildService do
let_it_be(:project) { create(:project, :repository) }
......
# frozen_string_literal: true
require 'spec_helper.rb'
require 'spec_helper'
RSpec.describe Issues::ReferencedMergeRequestsService do
def create_referencing_mr(attributes = {})
......
# frozen_string_literal: true
require 'spec_helper.rb'
require 'spec_helper'
RSpec.describe Issues::ResolveDiscussions do
let(:project) { create(:project, :repository) }
......
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