Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

297
Vistas
PHP codesniffer path to whole project

I`m new to this but i have installed composer and with it installed PHP Codesniffer. Now, how can i use php codesnifer to check for files in my entire project folder? My directory structure is something like this:

ProjectName
    functions
        functions.php
    templates
        template.php
    myFunctions.php
    vendor
        bin
            phpcs.exe

If i try to run

phpcs --standard=PSR2 functions 

it will check the files inside of the functions files inside of the functions directory but i need it to check all the php files in the ProjectName directory.

Thank you!

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You can use dot sign "." to check current directory.

phpcs --standard=PSR2 .
about 4 years ago · Santiago Trujillo Denunciar

0

there should be an option called "extensions" to fit your use

phpcs --extensions=php --standard=PSR2 .

where you should run this code in your project root directory since "." points to the current directory

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda