Formats a warning using this rule’s ID and messages and adds it to the linter’s results.
Only targets belonging to the user project are collected: library, compiler,
synthetic, and NoTarget findings are ignored. The program later reports collected findings.