We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#107 message says:
Constants must have short description if they add information beyond what the constant name supplies.
This is missleading message as this warning is shown for all the constants. Even obvious ones as NUMBER_PI=3.14.
NUMBER_PI=3.14
The message shall say: Constants must have short description
Constants must have short description
Less missleading
The text was updated successfully, but these errors were encountered:
Hi @krisdante. Could you please share the whole code snipped including PHP DocBlock? Let me share the expected behavior of this rule.
Not OK (Description duplicates the name):
/** * Nesting separator. */ const NESTING_SEPARATOR = '->';
OK (no description):
const NESTING_SEPARATOR = '->';
OK (meaningful description):
/** * Some additional description beyond what the constant name supplies. */ const NESTING_SEPARATOR = '->';
Sorry, something went wrong.
Yes, you are right. I got confused by the message.
Merge pull request #163 from magento-commerce/develop
73d4423
Develop to master v19
No branches or pull requests
Description
#107 message says:
Constants must have short description if they add information beyond what the constant name supplies.
This is missleading message as this warning is shown for all the constants. Even obvious ones as
NUMBER_PI=3.14
.Expected behavior
The message shall say:
Constants must have short description
Benefits
Less missleading
The text was updated successfully, but these errors were encountered: