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: add "force" option to PhpUnitDataProviderStaticFixer #6757

Merged
merged 3 commits into from
Mar 26, 2023
Merged

feature: add "force" option to PhpUnitDataProviderStaticFixer #6757

merged 3 commits into from
Mar 26, 2023

Conversation

kubawerlos
Copy link
Contributor

Follow up to #6696 to help fully migrate to static data providers.

@coveralls
Copy link

coveralls commented Jan 21, 2023

Pull Request Test Coverage Report for Build 4520417842

  • 22 of 22 (100.0%) changed or added relevant lines in 1 file are covered.
  • 268 unchanged lines in 25 files lost coverage.
  • Overall coverage increased (+0.06%) to 93.0%

Files with Coverage Reduction New Missed Lines %
src/Fixer/Basic/NoTrailingCommaInSinglelineFixer.php 1 98.39%
src/Fixer/ClassNotation/SelfStaticAccessorFixer.php 1 98.46%
src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php 1 96.67%
src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php 1 97.51%
src/Fixer/Operator/BinaryOperatorSpacesFixer.php 1 99.74%
src/Fixer/Phpdoc/PhpdocSeparationFixer.php 1 99.17%
src/Fixer/ReturnNotation/ReturnAssignmentFixer.php 1 98.02%
src/Console/Command/ListSetsCommand.php 2 81.48%
src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php 2 97.73%
src/Fixer/Phpdoc/PhpdocAlignFixer.php 2 98.35%
Totals Coverage Status
Change from base Build 3973757502: 0.06%
Covered Lines: 22692
Relevant Lines: 24400

💛 - Coveralls

doc/list.rst Outdated Show resolved Hide resolved
Rule sets
---------

The rule is part of the following rule set:

@PHPUnit100Migration:risky
Using the `@PHPUnit100Migration:risky <./../../ruleSets/PHPUnit100MigrationRisky.rst>`_ rule set will enable the ``php_unit_data_provider_static`` rule.
Using the `@PHPUnit100Migration:risky <./../../ruleSets/PHPUnit100MigrationRisky.rst>`_ rule set will enable the ``php_unit_data_provider_static`` rule with the default config.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can have the new option used in some ruleset. I have a feeling that if we do not, the ppl will not be aware about this option and not using it.

[no good answer to this, myself]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's for a start do it in @PhpCsFixer:risky, but in separate PR as there are quite few changes (including sorting of function that makes diff big).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding force option to @PHPUnit100Migration:risky might have more sense as without it the migration might not be successful (with it also as it will break the test suite, but will make it closer to successful migration).

@kubawerlos kubawerlos merged commit f2f9048 into PHP-CS-Fixer:master Mar 26, 2023
@kubawerlos kubawerlos deleted the add_PhpUnitDataProviderStaticFixer_force_option branch March 26, 2023 09:35
@Wirone
Copy link
Member

Wirone commented Mar 26, 2023

Thank you @kubawerlos 🍻

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

Successfully merging this pull request may close these issues.

None yet

4 participants