Add sorbet typing information to all the files

This commit is contained in:
Matt Rogers 2019-12-18 09:49:57 -06:00
parent 8b8db1ef7c
commit cabe2f80ed
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
263 changed files with 264 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# typed: false
require_dependency "login_system"
require_dependency "tracks/source_view"

View file

@ -1,3 +1,4 @@
# typed: false
class CalendarController < ApplicationController
skip_before_action :login_required, :only => [:show]
prepend_before_action :login_or_feed_token_required, :only => [:show]

View file

@ -1,3 +1,4 @@
# typed: false
class ContextsController < ApplicationController
helper :todos

View file

@ -1,3 +1,4 @@
# typed: false
class DataController < ApplicationController
require 'csv'

View file

@ -1,3 +1,4 @@
# typed: true
class FeedlistController < ApplicationController
helper :feedlist

View file

@ -1,3 +1,4 @@
# typed: true
class IntegrationsController < ApplicationController
require 'mail'

View file

@ -1,3 +1,4 @@
# typed: false
class LoginController < ApplicationController
layout 'login'

View file

@ -1,3 +1,4 @@
# typed: true
require 'openssl'
class MailgunController < ApplicationController

View file

@ -1,3 +1,4 @@
# typed: false
class NotesController < ApplicationController
before_action :set_source_view

View file

@ -1,3 +1,4 @@
# typed: false
class PreferencesController < ApplicationController
def index

View file

@ -1,3 +1,4 @@
# typed: false
class ProjectsController < ApplicationController
helper :application, :todos, :notes

View file

@ -1,3 +1,4 @@
# typed: true
module RecurringTodos
class FormHelper

View file

@ -1,3 +1,4 @@
# typed: false
class RecurringTodosController < ApplicationController
helper :todos, :recurring_todos

View file

@ -1,3 +1,4 @@
# typed: true
class SearchController < ApplicationController
helper :todos, :application, :notes, :projects, :contexts

View file

@ -1,3 +1,4 @@
# typed: false
class StatsController < ApplicationController
SECONDS_PER_DAY = 86400;

View file

@ -1,3 +1,4 @@
# typed: true
module Todos
class TodoCreateParamsHelper

View file

@ -1,3 +1,4 @@
# typed: false
class TodosController < ApplicationController
skip_before_action :login_required, :only => [:index, :tag, :list_deferred, :show, :list_hidden, :done]
@ -45,7 +46,7 @@ class TodosController < ApplicationController
@page_title = t('todos.mobile_todos_page_title')
@home = true
cookies[:mobile_url]= { :value => request.fullpath, :secure => SITE_CONFIG['secure_cookies']}
cookies[:mobile_url] = { :value => request.fullpath, :secure => SITE_CONFIG['secure_cookies']}
determine_down_count
render :action => 'index'.freeze

View file

@ -1,3 +1,4 @@
# typed: false
class UsersController < ApplicationController
before_action :admin_login_required, :only => [ :index, :show, :destroy ]