loadsys / loadsys/loadsys_codesniffer
Add Code Sniff to catch imports that are not used
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Display warnings on importing a class that isn't used in a class.
Possible lead on solutions: https://github.com/squizlabs/PHP_CodeSniffer/issues/801
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reading the linked PHP_CodeSniffer issue for approaches to detecting unused imports, then inspect this repository's existing sniffs and their tests. Done means the Code Sniffer reports a warning when a class import is unused within a class.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100