Browse Source

[Credo] Fix the consistency

tags/v1.1.4
Haelwenn (lanodan) Monnier 5 years ago
parent
commit
4c440f12c3
No known key found for this signature in database GPG Key ID: D5B7A8E43C997DEE
3 changed files with 14 additions and 4 deletions
  1. +1
    -1
      .gitlab-ci.yml
  2. +3
    -1
      lib/pleroma/thread_mute.ex
  3. +10
    -2
      lib/pleroma/web/twitter_api/twitter_api_controller.ex

+ 1
- 1
.gitlab-ci.yml View File

@@ -42,4 +42,4 @@ unit-testing:
analysis:
stage: analysis
script:
- mix credo list --only=warnings,todo,fixme
- mix credo list --only=warnings,todo,fixme,consistency

+ 3
- 1
lib/pleroma/thread_mute.ex View File

@@ -4,7 +4,9 @@

defmodule Pleroma.ThreadMute do
use Ecto.Schema
alias Pleroma.{Repo, User, ThreadMute}
alias Pleroma.Repo
alias Pleroma.User
alias Pleroma.ThreadMute
require Ecto.Query

schema "thread_mutes" do


+ 10
- 2
lib/pleroma/web/twitter_api/twitter_api_controller.ex View File

@@ -8,9 +8,17 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
import Pleroma.Web.ControllerHelper, only: [json_response: 3]

alias Ecto.Changeset
alias Pleroma.Web.TwitterAPI.{TwitterAPI, UserView, ActivityView, NotificationView, TokenView}
alias Pleroma.Web.TwitterAPI.TwitterAPI
alias Pleroma.Web.TwitterAPI.UserView
alias Pleroma.Web.TwitterAPI.ActivityView
alias Pleroma.Web.TwitterAPI.NotificationView
alias Pleroma.Web.TwitterAPI.TokenView
alias Pleroma.Web.CommonAPI
alias Pleroma.{Repo, Activity, Object, User, Notification}
alias Pleroma.Repo
alias Pleroma.Activity
alias Pleroma.Object
alias Pleroma.User
alias Pleroma.Notification
alias Pleroma.Web.OAuth.Token
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.Visibility


Loading…
Cancel
Save