Skip to content

Support defining TODO rules in configuration file (phpstan.neon) instead of code comments #166

@devnix

Description

@devnix

I was wondering if it would be possible to support defining TODO rules directly in the phpstan.neon configuration file, rather than only through code comments?

In some scenarios, it would be great to centralize certain TODO rules in the configuration.

Something like this could work:

parameters:
  todo_by:
    rules:
      - version: 'acme/api-client:2.0'
        message: 'uninstall package xyz as it\'s not necessary anymore'

Is this something you'd consider?

I totally understand if this goes against the philosophy of the package (keeping TODOs close to the code), but thought it was worth asking. Either way, thanks again for the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions