← All recipes
Moderne licensed

Find socket.getfqdn() usage

Recipe IDorg.openrewrite.python.migrate.FindSocketGetFQDNArtifactopenrewrite-migrate-python

Find usage of socket.getfqdn() which can be slow and unreliable. Consider using socket.gethostname() instead.

Single recipepythonsocketcode-qualityProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.python.migrate.FindSocketGetFQDN

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python