Approach to semver for breaking changes
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The issue names WPCS 2.1, the Composer constraint ^2, and semver but no files or tests. Start by reviewing the project’s release and versioning guidance and how breaking sniff changes are documented. Done means the project’s semver policy and the handling of such changes are clearly decided and recorded.
Written by the indexing model from the issue text.
Description
I was surprised to see that WPCS 2.1 introduced a new sniff and moved some sniffs out of Extra and into Core. These are breaking changes because, for example, code that previously used ini_set( ... ) without consequence now gets flagged as an error.
I would have expected these changes to be released as 3.0.0 according to semver rules, so that a package that requires wp-coding-standards/wpcs ^2 would not receive breaking change updates.
Does WPCS follow semver or should packages assume that minor version updates can contain breaking changes? Or was this just an oversight?
Cheers!
- Dominant language
- PHP
- Stars
- 2.8k
- Forks
- 521
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 1
Contributor guide
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 WordPress/WordPress-Coding-Standards
-
Component: Core Focus: DB Type: Bug
Difficulty 2/5 Half a day Newbie friendliness 68/100
WordPress/WordPress-Coding-Standards#2720 · 1 comment ·
-
Component: Extra Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
WordPress/WordPress-Coding-Standards#2516 · 3 comments ·
-
WordPress.Security.EscapeOutput: Wiki misses hint about lower case entry for customEscapingFunctions Open
Difficulty 1/5 Under an hour Newbie friendliness 62/100
WordPress/WordPress-Coding-Standards#2508 · 3 comments ·
-
Status: Good first issue Status: Help wanted Type: Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
WordPress/WordPress-Coding-Standards#1722 · 15 comments ·
-
Component: Helpers Priority: Low Type: Bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in WordPress/WordPress-Coding-Standards
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100