Jump. CredoChecks. UseObanProWorker
(Jump.CredoChecks v0.3.0)
View Source
Basics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of high and works with any version of Elixir.
Explanation
Ensures that Oban worker modules use the Oban.Pro.Worker module instead of Oban.Worker.
If your project integrates Oban Pro at all, it's worth ensuring you always use the Pro worker so that you get all the Pro features.
# ❌ Bad (misses Pro features)
defmodule MyWorker do
use Oban.Worker
end
# ✅ Good
defmodule MyWorker do
use Oban.Pro.Worker
endCheck-Specific Parameters
There are no specific parameters for this check.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.