Automattic / phpcs-neutron-standard

A set of phpcs sniffs for PHP >7 development
MIT License
94 stars 7 forks source link

Check for explicit `use` when referencing functions and constants #45

Closed sirbrillig closed 6 years ago

sirbrillig commented 6 years ago

Check for consistent use statements, perhaps excluding namespace imports in favor of explicitly mentioning each function/const/etc (like eslint-plugin-imports's import/no-namespace).

Props @stuwest for the idea.

sirbrillig commented 6 years ago

Fixed by ImportDetection.

Hywan commented 6 years ago

:+1: