-
Notifications
You must be signed in to change notification settings - Fork 56
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
Make all annotations useful by default #108
Make all annotations useful by default #108
Conversation
e0c7c47
to
a95e66c
Compare
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.
🤷♂️
Only option I see is creating a new sniff maintained by us that keeps old behaviour. Other than that, nothing we can do.
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.
@Majkl578 could you provide a reference to the discussion of the deprecation?
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.
I honestly fail to see the value of maintaining a whitelist and a blacklist, do think this is a good thing.
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.
@ORM\
This one is more about a fix alias for Doctrine annotations, which is used by the documentation, but excludes other alias choices for the same annotations. Technically, the annotations of Doctrine were excluded.
@morozov I don't think there was discussion about this - it was deprecated at the moment |
There was discussion among all Slevomat CS developers so between me and nobody else :D It's better to have special (and smaller) sniffs to solve special tasks. |
Why didn't we update to Slevomat/CS v5.0 first? |
@carusogabriel Because this was pre-requisite for the upgrade. |
Slevomat CS 5.0 drops
usefulAnnotations
so we are forced to switch toallAnnotationsAreUseful
instead.From now on there is no whitelist for useful annotations, only the blacklist provided by ForbiddenAnnotations.
Sadly I'm still not convinced this is a good step forward though.