SAST - PHP CodeSniffer orienté sécurité dans Visual Studio (sous Debian)
18 Juillet 2022
Installation
$ sudo apt-get install php-codesniffer
Lecture des listes de paquets... Fait
Dépaquetage de php-codesniffer (3.6.2-1)$ which phpcs
/usr/bin/phpcs$ ls -l /usr/share/php/PHP/CodeSniffer/src
total 228
-rw-r--r-- 1 root root 66054 Jun 18 16:57 Config.php
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Exceptions
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Files
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Filters
-rw-r--r-- 1 root root 23868 Jun 18 16:57 Fixer.php
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Generators
-rw-r--r-- 1 root root 13445 Jun 18 16:57 Reporter.php
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Reports
-rw-r--r-- 1 root root 50807 Jun 18 16:57 Ruleset.php
-rw-r--r-- 1 root root 31532 Jun 18 16:57 Runner.php
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Sniffs
drwxr-xr-x 10 root root 4096 Jul 19 00:42 Standards
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Tokenizers
drwxr-xr-x 2 root root 4096 Jul 19 00:42 Util


Références
PrécédentSAST - PHP CodeSniffer orienté sécurité dans Visual Studio (sous Windows)SuivantEst-il possible de contourner la fonction PHP htmlspecialchars() ?
Mis à jour