config/routes.rb
Block has too many lines. [49/25]
Missing magic comment `# frozen_string_literal: true`.Hello::Engine.routes.draw do # root 'management/profiles#show' # # REGISTRATION # scope module: 'registration' do get 'sign_up' => 'sign_up#index' post 'sign_up' => 'sign_up#create' get 'sign_up/widget' => 'sign_up#widget'Use `%i` or `%I` for an array of symbols. match 'sign_up/disabled' => 'sign_up#disabled', via: [:get, :post] end # # AUTHENTICATION # scope module: 'authentication' doUse `%i` or `%I` for an array of symbols. resources :sessions, only: [:index, :new, :show, :destroy] delete 'sign_out' => 'sessions#sign_out' get 'sign_in' => 'sign_in#index' post 'sign_in' => 'sign_in#authenticate' get 'sudo_mode' => 'sudo_mode#form' patch 'sudo_mode' => 'sudo_mode#authenticate' get 'sudo_mode/expire' => 'sudo_mode#expire' end # # MANAGEMENT #Block has too many lines. [28/25] scope module: 'management' doUse `%i` or `%I` for an array of symbols. resources :accesses, only: [:index, :destroy] root 'profiles#show'Use `%i` or `%I` for an array of symbols. resource :profile, only: [:show, :update, :destroy] do member do get :cancel end end Use `%i` or `%I` for an array of symbols. resources :emails, only: [:index, :create, :destroy] do member do post 'deliver' get 'confirm/:token' => 'confirm_emails#confirm', as: 'confirm' end collection do get 'expired_confirmation_token' => 'confirm_emails#expired_confirmation_token' end end Use `%i` or `%I` for an array of symbols. resources :passwords, only: [:index, :show, :update] do collection do get 'forgot' => 'forgot_password#index' post 'forgot' => 'forgot_password#forgot' end member do scope '/reset/:user_id/:token' do get '/' => 'reset_password#index', as: 'reset' post '/' => 'reset_password#update', as: nil end end end end # # INTERNATIONALIZATION # scope module: 'internationalization' do get 'locale' => 'locale#index' post 'locale' => 'locale#update' endExtra empty line detected at block body end. end