squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.63k stars 1.48k forks source link

Add an exception to a file for substring checking or exclude use or namespace checking #3903

Open todo-username opened 8 months ago

todo-username commented 8 months ago

Discussed in https://github.com/squizlabs/PHP_CodeSniffer/discussions/3902

Originally posted by **todo-username** October 19, 2023 How can I add an exception to a file for substring checking or exclude use or namespace checking? For example, is "use Service/Folder1/Folder2/..." more than 120 characters?
jrfnl commented 8 months ago

Answered in #3902