-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PhpdocToCommentFixer - Add ignored_tags
option
#5572
Conversation
75356c6
to
cf4d6ca
Compare
Hi @keradus, this is my first PR on this project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VincentLanglet to fix failing tests you have to regenerate docs: php ./dev-tools/doc.php
.
cf4d6ca
to
2c22ac4
Compare
But this command is changing the example 2. |
I don't thin I get it - you already updated the docs with example 2 (as it's visible in diff), but it looks like you made some changes later. I believe if you regenerate docs the diff in this PR will look correctly. |
The doc update does
Basically it replaces my second example by the first one. |
@VincentLanglet not really, these are the changes from - your - 2nd example, they are just produce exactly the same as 1st example. To see it more clearly change something in your example, like variable |
2c22ac4
to
f6c24a7
Compare
Oh, I see. Since
is untouched, it's not in the diff ! |
Exactly, I address this issue in #5585 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's have 2 more test cases:
- one with tag in different casing in code and config
- with PHPDoc having 2 different tags and only one of them in config
f6c24a7
to
77582e2
Compare
Done @kubawerlos :) |
@VincentLanglet for "PHPDoc having 2 different tags and only one of them in config" I meant PHPDoc like this:
and ignored tags only |
9d0dc8b
to
1420e74
Compare
@kubawerlos Done, tahnks to this test, I discovered I should use matchAll. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VincentLanglet I cannot fint that test with PHPDoc having multiple tags
1420e74
to
f33b527
Compare
I have added an example but no tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last question for this PR is: should target aim master
or 3.0
instead of 2.18
?
@keradus how should new features be handled now? There is not milestone 2.19
- does it mean 2.18
is last minor in v2
series and new features should aim 3.0
?
(each new) feature should be targetting master, imho |
@keradus @kubawerlos Is there any interest in this PR or should I close it ? |
@VincentLanglet I think this feature is interesting and should be merged, but this requires time and maitainers don't have much these days, please be patient :) |
11f582f
to
c740f28
Compare
Sure, I understand this. I was just expecting at least one comment to be sure I don't rebase (and fix the conflict) regularly for nothing. The branch is now up to date. Let's wait and see 🤞🏻 =) |
This is definitely something worth merging, but only @keradus, @SpacePossum and @julienfalque can do it, approving running workflow before that. |
Friendly ping @keradus |
@keradus Would it be possible to get some review ? :) |
ignored_tags
option
I think we could do with 2 examples, one with default config and one with a single excluded tag. |
There is already 4 examples
|
Yeah I saw the 4, but I think 2 is enough if we would update the docs stating the ignored tags are matched case insensitive. Having more tests would be better than more examples. Like a test with |
c740f28
to
92a84e7
Compare
Done @SpacePossum |
thanks 👍 if the pipeline succeeds than RTM from me |
Tests were failing because of the doc, it might be better now I hope. |
711e463
to
db400cf
Compare
Thank you @VincentLanglet. |
Sometimes, the docblock are necessary inside the code. This is the case for
This option allow to ignore some comments.
Closes: #5505