Add @NullMarked to package-info.java for an allowlist of packages
ProprietaryAdds the JSpecify @NullMarked annotation to the package-info.java of an explicit allowlist of packages. The allowlist supports exact package names and a trailing .* prefix wildcard; an empty allowlist is a no-op. When generateMissing is enabled, an allowlisted package that has Java sources but no package-info.java gets one generated. Idempotent and Java only.
io. moderne. nullability. AddNullMarkedToPackageInfoRequired
The allowlist of packages to null-mark. Each entry is either an exact package name (for example com.airbnb.payments) or a trailing .* prefix wildcard (for example com.airbnb.payments.*, which matches that package and every sub-package). If empty, the recipe is a no-op. Separate values with commas.
Optional
When true, for an allowlisted package that has at least one Java source but no package-info.java, generate one containing @NullMarked. Defaults to false.
mod run . --recipe= io. moderne. nullability. AddNullMarkedToPackageInfo \
-P packages= 'com. airbnb. payments. *'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.