Skip to content

Commit

Permalink
fix: add moduledoc to files missing it :c
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Nov 30, 2023
1 parent 5e4417d commit da81df7
Show file tree
Hide file tree
Showing 93 changed files with 192 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/api/json_api.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule JsonApi.Item do
@moduledoc false

defstruct [:type, :id, :attributes, :relationships]

@type t :: %JsonApi.Item{
Expand All @@ -10,6 +12,8 @@ defmodule JsonApi.Item do
end

defmodule JsonApi.Error do
@moduledoc false

defstruct [:code, :source, :detail, :meta]

@type t :: %__MODULE__{
Expand All @@ -21,6 +25,8 @@ defmodule JsonApi.Error do
end

defmodule JsonApi do
@moduledoc false

defstruct data: []
@type t :: %JsonApi{data: list(JsonApi.Item.t())}

Expand Down
2 changes: 2 additions & 0 deletions lib/concentrate/data_discrepancy.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Concentrate.DataDiscrepancy do
@moduledoc false

@type t :: %__MODULE__{
attribute: String.t(),
sources: [source()]
Expand Down
2 changes: 2 additions & 0 deletions lib/concentrate/pipeline/stop_time_updates_pipeline.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Concentrate.Pipeline.StopTimeUpdatesPipeline do
@moduledoc false

@behaviour Concentrate.Pipeline
alias Concentrate.Pipeline

Expand Down
2 changes: 2 additions & 0 deletions lib/concentrate/pipeline/vehicle_positions_pipeline.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Concentrate.Pipeline.VehiclePositionsPipeline do
@moduledoc false

@behaviour Concentrate.Pipeline
alias Concentrate.Pipeline

Expand Down
2 changes: 2 additions & 0 deletions lib/geonames.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Geonames do
@moduledoc false

require Logger

@spec nearest_intersection(String.t(), String.t()) :: String.t() | nil
Expand Down
2 changes: 2 additions & 0 deletions lib/helpers.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Helpers do
@moduledoc false

@doc """
Apply a function to all of the values in a map
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/bridge_status.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.BridgeStatus do
@moduledoc false

use Ecto.Type

@type t :: :raised | :lowered
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/db/block_waiver.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Db.BlockWaiver do
@moduledoc false

use Ecto.Schema
import Ecto.Changeset
alias Notifications.NotificationReason
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/db/bridge_movement.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Db.BridgeMovement do
@moduledoc false

use Ecto.Schema
import Ecto.Changeset

Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/db/notification.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Db.Notification do
@moduledoc false

use Ecto.Schema
import Ecto.Changeset

Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/db/notification_user.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Db.NotificationUser do
@moduledoc false

use Ecto.Schema

alias Notifications.Db.Notification, as: DbNotification
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/notification.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Notification do
@moduledoc false

import Skate.Repo

import Ecto.Query
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/notification_reason.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.NotificationReason do
@moduledoc false

use Ecto.Type

@type t ::
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/notification_server.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.NotificationServer do
@moduledoc false

use GenServer

alias Notifications.Bridge
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/notification_state.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.NotificationState do
@moduledoc false

use Ecto.Type

@type t ::
Expand Down
2 changes: 2 additions & 0 deletions lib/notifications/supervisor.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Notifications.Supervisor do
@moduledoc false

use Supervisor

def start_link([]) do
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/alerts_fetcher.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.AlertsFetcher do
@moduledoc false

use GenServer
require Logger
alias Schedule.Route
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/crowding.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Crowding do
@moduledoc false

@type t :: %__MODULE__{
load: non_neg_integer() | nil,
capacity: non_neg_integer() | nil,
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/data_status.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.DataStatus do
@moduledoc false

alias Realtime.Vehicle
require Logger

Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/data_status_alerter.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.DataStatusAlerter do
@moduledoc false

use GenServer
require Logger

Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/ghost.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Ghost do
@moduledoc false

alias Schedule.{AsDirected, Block, Route, Trip}
alias Schedule.Gtfs.{Direction, RoutePattern, StopTime, Timepoint}
alias Schedule.Piece
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/helpers.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Helpers do
@moduledoc false

@doc """
Returns the first element that matches the condition, and also the element that appears before it in the list.
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/route_status.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
defmodule Realtime.RouteStatus do
@moduledoc false

@type route_status :: :on_route | :laying_over | :pulling_out
end
2 changes: 2 additions & 0 deletions lib/realtime/stop_time_updates_by_trip.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.StopTimeUpdatesByTrip do
@moduledoc false

alias Concentrate.StopTimeUpdate
alias Schedule.Trip

Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/supervisor.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Supervisor do
@moduledoc false

use Supervisor

def start_link([]) do
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/time_period.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.TimePeriod do
@moduledoc false

@type t :: %__MODULE__{
time_period_id: String.t(),
day_type_id: day_type(),
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/timepoint_status.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.TimepointStatus do
@moduledoc false

alias Schedule.{Block, Route, Trip}
alias Schedule.Gtfs.{Direction, RoutePattern, Stop, StopTime}
alias Schedule.Hastus.Run
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/vehicle.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Vehicle do
@moduledoc false

alias Schedule.Gtfs.Timepoint
alias Concentrate.{DataDiscrepancy, VehiclePosition}
alias Schedule.{Block, Route, Trip}
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/vehicle_or_ghost.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.VehicleOrGhost do
@moduledoc false

alias Realtime.{Ghost, Server, Vehicle}

@type t :: Vehicle.t() | Ghost.t()
Expand Down
2 changes: 2 additions & 0 deletions lib/realtime/vehicles.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Realtime.Vehicles do
@moduledoc false

alias Realtime.{Ghost, Vehicle, VehicleOrGhost}
alias Schedule.{Block, Route, Trip}
alias Schedule.Gtfs.{Direction, Timepoint}
Expand Down
2 changes: 2 additions & 0 deletions lib/report.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Report do
@moduledoc false

@doc """
Exectutes a report against a given repo, returning the results or an error
"""
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/as_directed.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.AsDirected do
@moduledoc false

alias Schedule.Hastus.Place

@type t :: %__MODULE__{
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/block.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Block do
@moduledoc false

alias Schedule.AsDirected
alias Schedule.Gtfs.Service
alias Schedule.Hastus
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/break.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Break do
@moduledoc false

alias Schedule.Hastus.Activity
alias Schedule.Hastus.Place

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/fetcher.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Fetcher do
@moduledoc false

use GenServer, restart: :transient
require Logger

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/garage.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Garage do
@moduledoc false

alias Schedule.Gtfs.Route
alias Schedule.Trip
require Logger
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/calendar.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Calendar do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.Service

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/direction.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Direction do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.Route

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/feed_info.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.FeedInfo do
@moduledoc false

require Logger

alias Schedule.Csv
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/route.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Route do
@moduledoc false

alias Schedule.{Csv, Data, Garage}

@type id :: Schedule.Route.id()
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/route_pattern.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.RoutePattern do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.Direction
alias Schedule.Gtfs.Route
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/service.ex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
defmodule Schedule.Gtfs.Service do
@moduledoc false

@type id :: String.t()
end
4 changes: 4 additions & 0 deletions lib/schedule/gtfs/shape.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Shape do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.Shape.Point

Expand Down Expand Up @@ -44,6 +46,8 @@ defmodule Schedule.Gtfs.Shape do
end

defmodule Schedule.Gtfs.Shape.Point do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.Shape

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/stop.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Stop do
@moduledoc false

alias Schedule.Csv
alias Schedule.Gtfs.{Route, RoutePattern, StopTime}

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/timepoint.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Timepoint do
@moduledoc false

alias Schedule.Csv

@garage_names_by_id %{
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/gtfs/trip.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Gtfs.Trip do
@moduledoc false

alias Schedule.Block
alias Schedule.Csv
alias Schedule.Gtfs.{Direction, Route, RoutePattern, Service, Shape}
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/hastus/activity.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Hastus.Activity do
@moduledoc false

alias Schedule.AsDirected
alias Schedule.Block
alias Schedule.Break
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/hastus/place.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Hastus.Place do
@moduledoc false

@type id :: String.t()

@spec map_input_place_id(id) :: id
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/hastus/run.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Hastus.Run do
@moduledoc false

alias Schedule.Hastus.Schedule

@type id :: String.t()
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/hastus/trip.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Hastus.Trip do
@moduledoc false

alias Schedule.Csv
alias Schedule.{Block, Route, Trip}
alias Schedule.Hastus.{Place, Run, Schedule}
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/helpers.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Helpers do
@moduledoc false

@doc """
Returns a single list that attempts to keep items in order

Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/piece.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Piece do
@moduledoc false

alias Schedule.Block
alias Schedule.Hastus
alias Schedule.Hastus.Place
Expand Down
2 changes: 2 additions & 0 deletions lib/schedule/route.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Schedule.Route do
@moduledoc false

@type id :: String.t()
@type by_id(value) :: %{id() => value}
end
Loading

0 comments on commit da81df7

Please sign in to comment.