This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 4612f50e 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 6f85bb919286
# frozen_string_literal: true
module InvalidUTF8ErrorHandler
extend ActiveSupport::Concern
......
# frozen_string_literal: true
class Projects::ApplicationController < ApplicationController
include CookiesHelper
include RoutableActions
......
# frozen_string_literal: true
class Projects::ArtifactsController < Projects::ApplicationController
include ExtractsPath
include RendersBlob
......
# frozen_string_literal: true
class Projects::AutocompleteSourcesController < Projects::ApplicationController
before_action :load_autocomplete_service, except: [:members]
......
# frozen_string_literal: true
class Projects::AvatarsController < Projects::ApplicationController
include SendsBlob
......
# frozen_string_literal: true
class Projects::BadgesController < Projects::ApplicationController
layout 'project_settings'
before_action :authorize_admin_project!, only: [:index]
......
# frozen_string_literal: true
# Controller for viewing a file's blame
class Projects::BlameController < Projects::ApplicationController
include ExtractsPath
......
# frozen_string_literal: true
# Controller for viewing a file's blame
class Projects::BlobController < Projects::ApplicationController
include ExtractsPath
......
# frozen_string_literal: true
class Projects::BoardsController < Projects::ApplicationController
include BoardsResponses
include IssuableCollections
......
# frozen_string_literal: true
class Projects::BranchesController < Projects::ApplicationController
include ActionView::Helpers::SanitizeHelper
include SortingHelper
......
# frozen_string_literal: true
class Projects::BuildArtifactsController < Projects::ApplicationController
include ExtractsPath
include RendersBlob
......
# frozen_string_literal: true
class Projects::BuildsController < Projects::ApplicationController
before_action :authorize_read_build!
......
# frozen_string_literal: true
class Projects::Ci::LintsController < Projects::ApplicationController
before_action :authorize_create_pipeline!
......
# frozen_string_literal: true
class Projects::Clusters::ApplicationsController < Projects::ApplicationController
before_action :cluster
before_action :application_class, only: [:create]
......
# frozen_string_literal: true
class Projects::ClustersController < Projects::ApplicationController
before_action :cluster, except: [:index, :new, :create_gcp, :create_user]
before_action :authorize_read_cluster!
......
# frozen_string_literal: true
# Controller for a specific Commit
#
# Not to be confused with CommitsController, plural.
......
# frozen_string_literal: true
require "base64"
class Projects::CommitsController < Projects::ApplicationController
......
# frozen_string_literal: true
require 'addressable/uri'
class Projects::CompareController < Projects::ApplicationController
......
# frozen_string_literal: true
module Projects
module CycleAnalytics
class EventsController < Projects::ApplicationController
......
# frozen_string_literal: true
class Projects::CycleAnalyticsController < Projects::ApplicationController
include ActionView::Helpers::DateHelper
include ActionView::Helpers::TextHelper
......
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