Netbeans Integration

Last updated on
20 October 2018

To integrate Drupal Code Sniffer into Netbeans you need the following:

  • PHP CodeSniffer Netbeans Plugin
  • Run pear config-get php_dir to know the path to your PEAR folder
  • Put the folder with the PHP_CodeSniffer coding standard inside PEAR/pear/PHP/CodeSniffer/Standards folder
  • Edit PEAR/pear/PHP/CodeSniffer.php and add the extensions to $allowedFileExtensions
    this can look like :
     array(
      'php' => 'PHP',
      'inc' => 'PHP',
      'module' => 'PHP',
      'install' => 'PHP',
      'test' => 'PHP',
      'profile' => 'PHP',
      'theme' => 'PHP',
      'js' => 'JS',
      'css' => 'CSS',
    );

Help improve this page

Page status: No known problems

You can: