magento / magento/magento-coding-standard
Do not allow slash the beginning of the class pass in use
Open
@konarshankar07 is already working on this.
Since Feb 4, 2020.
accepted
Progress: dev in progress
Progress: good first issue
- Dominant language
- PHP
- Stars
- 375
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Description
use section does not actually need \ at the beginning of the classpath (leading backslash).
Let’s enforce it by static tests to prevent appearing such cases in future
Originally posted by @ihor-sviziev in https://github.com/magento/magento2/pull/26129#issuecomment-567404199
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.
Assessment
This issue has not been assessed yet.