summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-02Pleroma.HTTP.RequestBuilder: fix gradient errorMark Felder
lib/pleroma/http/request_builder.ex: The variable key on line 69 is expected to have type String.t() but it has type atom()
2024-02-02Pleroma.MFA: fix gradient errorMark Felder
lib/pleroma/mfa.ex: The map %{error: msg} on line 80 is expected to have type {:ok, list(binary())} | {:error, String.t()} but it has type %{required(:error) => any()}
2024-02-02Pleroma.MFA.Totp.provisioning_uri/3: add @specMark Felder
2024-01-31Pleroma.Config.DeprecationWarnings: fix type errors detected by gradientMark Felder
lib/pleroma/config/deprecation_warnings.ex: The atom :error on line 278 is expected to have type :ok | nil but it has type :error lib/pleroma/config/deprecation_warnings.ex: The atom :error on line 292 is expected to have type :ok | nil but it has type :error lib/pleroma/config/deprecation_warnings.ex: The atom :error on line 390 is expected to have type :ok | nil but it has type :error lib/pleroma/config/deprecation_warnings.ex: The atom :error on line 413 is expected to have type :ok | nil but it has type :error
2024-01-31Fix dialyzer errors due to deprecated usage of put_layout/2Mark Felder
2024-01-31Pleroma.Web.Plugs.RateLimiter.Supervisor: dialyzer errorMark Felder
lib/pleroma/web/plugs/rate_limiter/supervisor.ex:12:no_return Function init/1 has no local return.
2024-01-31Pleroma.Web.OAuth.OAuthController: dialyzer errorMark Felder
validate_scopes/2 can never receive a map as it is only called in one place with a guard requiring a list lib/pleroma/web/o_auth/o_auth_controller.ex:615:guard_fail The guard test: is_map(_params :: maybe_improper_list()) can never succeed.
2024-01-31Pleroma.Web.PleromaAPI.MascotController: fix dialyzer error due to bad error ↵Mark Felder
match lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:37:pattern_match The pattern can never match the type. Pattern: {:content_type, _} Type: {:error, _} ________________________________________________________________________________ lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:40:pattern_match The pattern can never match the type. Pattern: {:upload, {:error, _}} Type: {:error, _}
2024-01-31Pleroma.Web.MastodonAPI.SearchController: fix dialyzer errorsMark Felder
Add a separate Pagination.paginate_list/2 function instead of overloading paginate/4 and complicating its matching and @spec
2024-01-31Pleroma.Web.ControllerHelper: fix @spec to resolve dialyzer errorsMark Felder
lib/pleroma/web/admin_api/controllers/user_controller.ex:333:no_return Function index/2 has no local return. ________________________________________________________________________________ lib/pleroma/web/admin_api/controllers/user_controller.ex:357:unused_fun Function maybe_parse_filters/1 will never be called. ________________________________________________________________________________ lib/pleroma/web/admin_api/controllers/user_controller.ex:366:no_return Function page_params/1 has no local return. ________________________________________________________________________________ lib/pleroma/web/admin_api/controllers/user_controller.ex:368:call The function call will not succeed. Pleroma.Web.ControllerHelper.fetch_integer_param(_params :: any(), :page, 1) breaks the contract (map(), String.t(), integer() | nil) :: integer() | nil
2024-01-31Merge branch 'dialyzer-fixes' into 'develop'feld
More dialyzer fixes See merge request pleroma/pleroma!4050
2024-01-31ChangelogMark Felder
2024-01-31Pleroma.Web.TwitterAPI.UtilController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.MastodonAPI.StatusController: fix dialzyer errors with ↵Mark Felder
replace_params: false
2024-01-31MascotController dialyzer errorMark Felder
lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:31:call The function call will not succeed. Pleroma.Web.ActivityPub.ActivityPub.upload(_file :: atom() | %{:content_type => _, _ => _}, [{:actor, <<_::56, _::size(8)>>}, ...]) :: :ok def a() do :ok end will never return since the 2nd arguments differ from the success typing arguments: (any(), [ {:activity_type | :description | :filters | :size_limit | :type | :uploader, atom() | binary() | [atom()] | non_neg_integer()} ])
2024-01-31Pleroma.Web.PleromaAPI.UserImportController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.PleromaAPI.NotificationController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.PleromaAPI.MascotController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.PleromaAPI.EmojiPackController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.PleromaAPI.EmojiFileController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-31Pleroma.Web.PleromaAPI.ChatController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.SearchController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.ScheduledActivityController: fix dialyzer errors ↵Mark Felder
with replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.PollController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.NotificationController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.MediaController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.ListController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.MastodonAPI.FollowRequestController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.UserController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.ReportController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.RelayController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.MediaProxyCacheController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.InviteController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.InstanceDocumentController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Pleroma.Web.AdminAPI.ConfigController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Phoenix.Endpoint.Cowboy2Handler does not existMark Felder
This should have always failed as it would not be an existing atom. Unclear how it worked since the upgrade to Phoenix 1.6.
2024-01-30Pleroma.Web.MastodonAPI.AccountController: fix dialyzer errors with ↵Mark Felder
replace_params: false
2024-01-30Merge branch 'dialyzer-fixes' into 'develop'feld
Dialyzer fixes, some reverts See merge request pleroma/pleroma!4049
2024-01-30Pleroma.Web.MastodonAPI.DomainBlockController: dialyzer fixes via ↵Mark Felder
:replace_params
2024-01-30Modify our CastAndValidate plug to include the new functionality provided by ↵Mark Felder
the :replace_params config option This allows us to configure Open API Spex to not overwrite the params with the casted versions which violates the Plug.Conn.t() contract https://github.com/open-api-spex/open_api_spex/issues/92 https://github.com/open-api-spex/open_api_spex/pull/425
2024-01-30Bump open_api_spexMark Felder
2024-01-30Revert "Pleroma.Web.AdminAPI.MediaProxyCacheController: dialyzer errors"Mark Felder
This reverts commit 8b02c858102232700826214ffb5d58e5b2f90edf.
2024-01-30Revert "Pleroma.Web.TwitterAPI.UtilController: dialyzer fixes"Mark Felder
This reverts commit 17f4251b19846401ca36ee31156294ec63de84ee.
2024-01-30Revert "Pleroma.Web.PleromaAPI.UserImportController: Dialyzer errors"Mark Felder
This reverts commit 52e18a624922e64eb4a7fd3f0d7a9aef06ea7fad.
2024-01-30Revert "Pleroma.Web.PleromaAPI.NotificationController: dialyzer errors"Mark Felder
This reverts commit 26a95e57873630491066687d2a216ab6e01549b0.
2024-01-30Revert "Pleroma.Web.AdminAPI.ConfigController: dialyzer error"Mark Felder
This reverts commit 60d89cb40455f9f70b683849dd95311975b0b6f7.
2024-01-30Revert "Pleroma.Web.PleromaAPI.MascotController: dialyzer errors"Mark Felder
This reverts commit 9c8055d4b3eeed04e2fc27b69e1bd2b8bae11bb8.
2024-01-30Revert "Pleroma.Web.PleromaAPI.EmojiPackController: dialyzer errors"Mark Felder
This reverts commit 77bf617c4b28fce84f268ca391fa4af6dd590c82.
2024-01-30Revert "Pleroma.Web.PleromaAPI.EmojiFileController: dialyzer errors"Mark Felder
This reverts commit dc912dc5909922f4100c6a56bec72a4bb9e0d5dc.
2024-01-30Revert "Pleroma.Web.PleromaAPI.ChatController: Dialyzer error"Mark Felder
This reverts commit 8d64eedbecec99d1ae19d300891a9c4cd3dbdf9d.