Skip to content
Snippets Groups Projects
Commit 12ee2753 authored by gfyoung's avatar gfyoung
Browse files

Enable even more frozen string in app/controllers

Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
parent 912d068d
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
module InvalidUTF8ErrorHandler
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
class Projects::ApplicationController < ApplicationController
include CookiesHelper
include RoutableActions
Loading
Loading
# frozen_string_literal: true
class Projects::ArtifactsController < Projects::ApplicationController
include ExtractsPath
include RendersBlob
Loading
Loading
# frozen_string_literal: true
class Projects::AutocompleteSourcesController < Projects::ApplicationController
before_action :load_autocomplete_service, except: [:members]
 
Loading
Loading
# frozen_string_literal: true
class Projects::AvatarsController < Projects::ApplicationController
include SendsBlob
 
Loading
Loading
# frozen_string_literal: true
class Projects::BadgesController < Projects::ApplicationController
layout 'project_settings'
before_action :authorize_admin_project!, only: [:index]
Loading
Loading
# frozen_string_literal: true
# Controller for viewing a file's blame
class Projects::BlameController < Projects::ApplicationController
include ExtractsPath
Loading
Loading
# frozen_string_literal: true
# Controller for viewing a file's blame
class Projects::BlobController < Projects::ApplicationController
include ExtractsPath
Loading
Loading
# frozen_string_literal: true
class Projects::BoardsController < Projects::ApplicationController
include BoardsResponses
include IssuableCollections
Loading
Loading
# frozen_string_literal: true
class Projects::BranchesController < Projects::ApplicationController
include ActionView::Helpers::SanitizeHelper
include SortingHelper
Loading
Loading
# frozen_string_literal: true
class Projects::BuildArtifactsController < Projects::ApplicationController
include ExtractsPath
include RendersBlob
Loading
Loading
# frozen_string_literal: true
class Projects::BuildsController < Projects::ApplicationController
before_action :authorize_read_build!
 
Loading
Loading
# frozen_string_literal: true
class Projects::Ci::LintsController < Projects::ApplicationController
before_action :authorize_create_pipeline!
 
Loading
Loading
# frozen_string_literal: true
class Projects::Clusters::ApplicationsController < Projects::ApplicationController
before_action :cluster
before_action :application_class, only: [:create]
Loading
Loading
# frozen_string_literal: true
class Projects::ClustersController < Projects::ApplicationController
before_action :cluster, except: [:index, :new, :create_gcp, :create_user]
before_action :authorize_read_cluster!
Loading
Loading
# frozen_string_literal: true
# Controller for a specific Commit
#
# Not to be confused with CommitsController, plural.
Loading
Loading
# frozen_string_literal: true
require "base64"
 
class Projects::CommitsController < Projects::ApplicationController
Loading
Loading
# frozen_string_literal: true
require 'addressable/uri'
 
class Projects::CompareController < Projects::ApplicationController
Loading
Loading
# frozen_string_literal: true
module Projects
module CycleAnalytics
class EventsController < Projects::ApplicationController
Loading
Loading
# frozen_string_literal: true
class Projects::CycleAnalyticsController < Projects::ApplicationController
include ActionView::Helpers::DateHelper
include ActionView::Helpers::TextHelper
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