Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
4b73ca63
Verified
Commit
4b73ca63
authored
Mar 05, 2019
by
Haelwenn
Browse files
[Credo][CI] Add readability as it’s fixed
parent
23960309
Changes
5
Hide whitespace changes
Inline
Side-by-side
.credo.exs
View file @
4b73ca63
...
...
@@ -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
},
...
...
.gitlab-ci.yml
View file @
4b73ca63
...
...
@@ -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
lib/mix/tasks/pleroma/uploads.ex
View file @
4b73ca63
...
...
@@ -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
...
...
lib/pleroma/uploaders/uploader.ex
View file @
4b73ca63
...
...
@@ -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
())
::
...
...
lib/pleroma/web/nodeinfo/nodeinfo.ex
deleted
100644 → 0
View file @
23960309
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment