Skip to content

Make DirectDB sniff output less noisy #1217

@ernilambar

Description

@ernilambar

Problem

PluginCheck.Security.DirectDB (DirectDBSniff) messages are too long and noisy:

  • The full SQL query is embedded in each message.
  • Extra context can add multiple lines (assignment traces + full code snippets).

This clutters CI/IDE output and makes real issues harder to scan.

Expected

  • Shorter messages: omit or truncate the query; cap/shorten extra context to one line (e.g. variable + line number only).

Affected

  • phpcs-sniffs/PluginCheck/Helpers/AbstractEscapingCheckSniff.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions