Guide / Every rule
A job worker takes its job type from the method name
The check code/implicit-job-type, in the group Diagrams and code.
Why it matters
A @JobWorker without a type answers to its method name, so renaming the method changes the contract with the diagram without anything saying so.
How to fix it
Name the type in the annotation, so the method can be renamed freely.
Where you see it
The Problems tab lists it under Code. In a terminal, penstock code reports it with the file and line. This check is part of Penstock Pro, and Team in a pipeline.
Rule details
| Id | code/implicit-job-type |
| Group | Diagrams and code |
| Level | Advice: it works, and reads or runs better without it |
Read more: Code links. All rules: Every rule.