Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Baseline generation #662

Open
gms8994 opened this issue May 9, 2024 · 1 comment
Open

[FEATURE REQUEST] Baseline generation #662

gms8994 opened this issue May 9, 2024 · 1 comment

Comments

@gms8994
Copy link

gms8994 commented May 9, 2024

Is your feature request related to a problem? Please describe.

When adding prospector to an existing codebase, many errors may appear, and many of them may not be immediately solvable.

Describe the solution you'd like

It would be nice if a baseline file could be generated which would be the errors to ignore going forward. Any changes to the errors reported as it relates to the baseline could be considered an error. See https://phpstan.org/user-guide/baseline for an example.

Describe alternatives you've considered

None

@sbrunner
Copy link
Member

phpstand example file: https://github.com/coenjacobs/mozart/pull/153/files#diff-995edee38ad4f8387e58ebd52c31bcc04c56cc2448d331b1cf5e0b35c57b9efa

Proposed file:

files:
  <relative file name>:
    tools:
      <tool name>:
        errors:
          <error code>: 
            number: <number>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants