Rather than pepper the code with ignore comments, I would much rather configure a set of patterns that a codemod should ignore in a file at the root of a repo, similar to how dart_dev works.
https://github.com/Workiva/dart_dev#project-level-configuration