autofix incomplete version constraints
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the linked pull requests #268 and #308 in phpstan/phpstan-phpunit, then trace where incomplete version constraints are diagnosed and where autofixes are handled. The examples define the expected outcome: constraints with one- or two-part versions should be made autofixable by adding the missing components.
Written by the indexing model from the issue text.
Description
I think we could think about whether errors like
Version requirement is incomplete.
can be made autofixable...?
most obvious examples would be
- #[RequiresPhp('^8.0')]
+ #[RequiresPhp('^8.0.0')]
- #[RequiresPhp('>=8.0')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhp('>=8')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhpunit('>=12')]
+- #[RequiresPhpunit('>=12.0.0')]
in which the comparison operator is given, but the version is not 3 digits
see
- Dominant language
- PHP
- Stars
- 544
- Forks
- 58
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phpstan/phpstan-phpunit
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
phpstan/phpstan-phpunit#332 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-phpunit#321 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
phpstan/phpstan-phpunit#299 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
phpstan/phpstan-phpunit#292 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
phpstan/phpstan-phpunit#291 ·
All issues in phpstan/phpstan-phpunit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
a11y admissions.uiowa.edu needs grooming SiteImprove best practice
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Save States Menu Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pluginsGLPI/datainjection#673 ·