[Credo][CI] Add readability as it’s fixed
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 5 Mar 2019 05:07:21 +0000 (06:07 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 13 Mar 2019 03:26:56 +0000 (04:26 +0100)
.credo.exs
.gitlab-ci.yml
lib/mix/tasks/pleroma/uploads.ex
lib/pleroma/uploaders/uploader.ex
lib/pleroma/web/nodeinfo/nodeinfo.ex [deleted file]

index 620b4abddbdd99146e3ae1d1d4aee3daf0a2ee2c..46d45d015716267a6ee5c224afe9c2db9d34681d 100644 (file)
@@ -81,7 +81,9 @@
         {Credo.Check.Readability.ParenthesesOnZeroArityDefs},
         {Credo.Check.Readability.ParenthesesInCondition},
         {Credo.Check.Readability.PredicateFunctionNames},
-        {Credo.Check.Readability.PreferImplicitTry},
+        # lanodan: I think PreferImplicitTry should be consistency, and the behaviour seems
+        # inconsistent, see: https://github.com/rrrene/credo/issues/224
+        {Credo.Check.Readability.PreferImplicitTry, false},
         {Credo.Check.Readability.RedundantBlankLines},
         {Credo.Check.Readability.StringSigils},
         {Credo.Check.Readability.TrailingBlankLine},
index d5b4630009bb0fdf203d2c425a8f8b013b1a2ac4..0d7f92c9ee05f0670336047d476e3bcfefd2d115 100644 (file)
@@ -42,4 +42,4 @@ unit-testing:
 analysis:
   stage: analysis
   script:
-    - mix credo list --only=warnings,todo,fixme,consistency
+    - mix credo list --only=warnings,todo,fixme,consistency,readability
index 9ca123a9b267fb96861cf8fc63cee4be29eb614b..106fcf443fbf6a0e881e2904a350edebdc8da51d 100644 (file)
@@ -20,7 +20,6 @@ defmodule Mix.Tasks.Pleroma.Uploads do
    Options:
    - `--delete` - delete local uploads after migrating them to the target uploader
 
-
    A list of available uploaders can be seen in config.exs
   """
   def run(["migrate_local", target_uploader | args]) do
index ce83cbbbc76584afdc0dc45de40e64b33f0cae2f..bf15389fcde3c46ed9ecf9f8a1c5f3ebcd514813 100644 (file)
@@ -29,7 +29,6 @@ defmodule Pleroma.Uploaders.Uploader do
   * `{:error, String.t}` error information if the file failed to be saved to the backend.
   * `:wait_callback` will wait for an http post request at `/api/pleroma/upload_callback/:upload_path` and call the uploader's `http_callback/3` method.
 
-
   """
   @type file_spec :: {:file | :url, String.t()}
   @callback put_file(Pleroma.Upload.t()) ::
diff --git a/lib/pleroma/web/nodeinfo/nodeinfo.ex b/lib/pleroma/web/nodeinfo/nodeinfo.ex
deleted file mode 100644 (file)
index 8b13789..0000000
+++ /dev/null
@@ -1 +0,0 @@
-