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

DX: Add composer keywords #6781

Merged
merged 7 commits into from Feb 26, 2023
Merged

DX: Add composer keywords #6781

merged 7 commits into from Feb 26, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Feb 15, 2023

as per composer/composer#10960 this allows composer to warn the user, when installing the tool as a project dependency instead of a dev-dependency

@staabm staabm changed the title Add composer keywords DX: Add composer keywords Feb 15, 2023
@coveralls
Copy link

coveralls commented Feb 15, 2023

Pull Request Test Coverage Report for Build 4277031245

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.95%

Totals Coverage Status
Change from base Build 4138717353: 0.0%
Covered Lines: 22703
Relevant Lines: 24425

💛 - Coveralls

composer.json Outdated
@@ -2,6 +2,7 @@
"name": "friendsofphp/php-cs-fixer",
"description": "A tool to automatically fix PHP code style",
"license": "MIT",
"keywords": ["dev", "code style", "code-style", "fixer"],
Copy link
Member

Choose a reason for hiding this comment

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

cs, sca, ...

also, are code style and code-style really treated differently?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we coud add a lot of stuff here. the only important one is dev, to make composer work like described above.

we could add anything here. I am open to your suggestions :)

also, are code style and code-style really treated differently?

I don't know

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd go with fixer, standards and static analysis only, the dev is not really valuable keyword.

Copy link
Contributor Author

@staabm staabm Feb 15, 2023

Choose a reason for hiding this comment

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

Composer expects one of the following to trigger the desired behavior

dev, testing, static analysis

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adjusted per feedback

composer.json Outdated Show resolved Hide resolved
@keradus keradus removed the RTM Ready To Merge label Feb 26, 2023
@keradus keradus merged commit 8f4de80 into PHP-CS-Fixer:master Feb 26, 2023
@staabm staabm deleted the patch-3 branch February 26, 2023 21:34
@staabm
Copy link
Contributor Author

staabm commented Feb 26, 2023

thank you!

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