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

CommentToPhpdocFixer - allow to ignore tags #4385

Merged
merged 1 commit into from Jul 25, 2019
Merged

CommentToPhpdocFixer - allow to ignore tags #4385

merged 1 commit into from Jul 25, 2019

Conversation

kubawerlos
Copy link
Contributor

Resolves #3628

Ping @julienfalque for review, I've made the list case insensitive - I figured it's more natural, would you agree?

@keradus
Copy link
Member

keradus commented Jun 1, 2019

ping @julienfalque , can you take a look please?

<?php /* header comment */ $foo = true;

// @todo do something later
$foo = 1;
Copy link
Member

Choose a reason for hiding this comment

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

Please add a test case with a comment before a structural element, I think the added tests here would still pass without the ignored_tags, thus they don't prove the option works as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean? Isn't this case with a comment before a structural element? Can you prepare the one you are thinking about?

Copy link
Member

Choose a reason for hiding this comment

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

Actually I misunderstood the code, sorry.

@SpacePossum SpacePossum added the RTM Ready To Merge label Jul 25, 2019
@SpacePossum SpacePossum added this to the 2.16.0 milestone Jul 25, 2019
@SpacePossum
Copy link
Contributor

Thank you @kubawerlos.

@SpacePossum SpacePossum merged commit 0a46405 into PHP-CS-Fixer:master Jul 25, 2019
SpacePossum added a commit that referenced this pull request Jul 25, 2019
This PR was merged into the 2.16-dev branch.

Discussion
----------

CommentToPhpdocFixer - allow to ignore tags

Resolves #3628

Ping @julienfalque for review, I've made the list case insensitive - I figured it's more natural, would you agree?

Commits
-------

0a46405 CommentToPhpdocFixer - allow to ignore tags
@SpacePossum SpacePossum removed the RTM Ready To Merge label Jul 25, 2019
@kubawerlos kubawerlos deleted the feature/com-to-doc-ignore-tags branch July 25, 2019 15:00
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