Skip to content

ALL-DUPL0002 · examples

These examples come directly from ALL-DUPL0002. Read their source.

Bad

The same transport topic is repeated across independent modules with one stable role.
.. code-block:: python
transport.publish(topic="audit-events")
transport.publish(topic="audit-events")
transport.publish(topic="audit-events")
Good

A domain-owned value makes the policy explicit, while unrelated human text remains local.

.. code-block:: python

transport.publish(topic=AuditTopic.EVENTS) logger.info(“audit-events”) field. str = Field(alias=“schema”)