Skip to content

DX: Add composer keywords#6781

Merged
keradus merged 7 commits intoPHP-CS-Fixer:masterfrom
staabm:patch-3
Feb 26, 2023
Merged

DX: Add composer keywords#6781
keradus merged 7 commits intoPHP-CS-Fixer:masterfrom
staabm:patch-3

Conversation

@staabm
Copy link
Copy Markdown
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
Copy Markdown

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

Comment thread composer.json Outdated
"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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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

Comment thread composer.json Outdated
@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
Copy Markdown
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.

4 participants