Prefer errors.Is for os permission checks
ProprietaryReplace deprecated os.IsPermission(err) with errors.Is(err, fs.ErrPermission) (Go 1.16+).
org. openrewrite. golang. codequality. PreferErrorsIsForPermissionmod run . --recipe= org. openrewrite. golang. codequality. PreferErrorsIsForPermissionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.