<?xml version="1.0"?> <rule version="1"> <pattern>Severity :: fromString \( "\w+" \)</pattern> <message> <id>ConstantSeverityFromString</id> <severity>style</severity> <summary>Constant severity lookups should be done via Severity::constant.</summary> </message> </rule>