当我输入phpcs --version时,我得到的不是版本号,而是如下所示:
/Applications/drupal/php/bin/phpcs: line 2: ?php: No such file or directory
/Applications/drupal/php/bin/phpcs: line 3: /Applications: is a directory
/Applications/drupal/php/bin/phpcs: line 4: Applications: command not found
/Applications/drupal/php/bin/phpcs:
我让复制粘贴默认的paste崇高设置到用户,并将phpcs_execute_on_save设置为true,但它不起作用。它显示了一个错误
Exception in thread Thread-9:
Traceback (most recent call last):
File "./python3.3/subprocess.py", line 1104, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of
我已经在运行的Windows开发机器上安装了WAMPserver。
在上面的URL中,我需要运行npm run build,然后收到一个错误:
在1.91 s 16:34:30“php”后完成的“图像”在5.92 s 16:34:30的错误后被错误的插件“吞咽-phpcs”消息:找不到"C:\wamp64\www\wprig.local\wp-content\themes\wprig-master/vendor/bin/phpcs"16:34:30 'buildDev‘在5.94秒后出错
因此,我通过导航到/wp-content/themes/wprig-mas
我想在VScode中添加phpcs CodeSniffer。我在visual studio中收到一个错误的phpcs: Request workspace/configuration failed with message: Unable to locate phpcs. Please add phpcs to your global path or use composer dependency manager to install it in your project locally.。我还安装了PHPCS和PEAR。我在用户设置和工作空间设置中尝试的这些代码也可以在VScode中使用
我在visual studio中得到了这个错误:
phpcs: The "WordPress" coding standard is not installed. Please review your configuration an try again.
在settings.json中
"php.suggest.basic": true,
"php.validate.run": "onSave",
"php.validate.executablePath": "/usr/bin/p
我目前正在尝试在vim for PHP文件中使用(PEAR)。我已经找到了两个站点,它们给出了添加到$HOME/.vim/plugin/phpcs.vim文件中的代码。我添加了代码,我“认为”它是工作的,但我看不到结果,我只看到在vim最底部的一行,上面写着(1 of 32),但我看不到32条错误中的任何一条。
这是我的.vimrc文件
" Backup Options -> Some People may not want this... it generates extra files
set backup " Enable Backups
set back
我已经在我的Sublime Text3中使用@install包安装了PHPCS。我可以看到工具->PHP代码嗅探器:嗅探这个文件命令,但是当我选择‘嗅探这个文件’命令时,没有任何反应。这是我的首选项->包设置->PHP代码嗅探器->设置默认值
{
// Plugin settings
// Turn the debug output on/off
"show_debug": false,
// Which file types (file extensions), do you want the plugin to
// execute for
我试图使用Php代码嗅探器与崇高,但在崇高终端,我得到以下每次我试图嗅探一个文件:
Traceback (most recent call last):
File "./sublime_plugin.py", line 350, in run_
File "./phpcs.py", line 382, in run
File "./phpcs.py", line 270, in run
File "./phpcs.py", line 98, in get_errors
File "./phpcs.py", line
我已经为phpcs安装了。运行phpcs -i确认了这一点:
The installed coding standards are MySource, PEAR, PHPCS,
PSR1, PSR2, Squiz, Zend, WordPress, WordPress-Core,
WordPress-Docs, WordPress-Extra and WordPress-VIP
然而,在运行phpcbf -i时,phpcbf似乎看不到这些:
The installed coding standards are MySource, PEAR, PSR1,
PSR2, Squiz and Z
我刚刚通过包管理器在崇高文本2上安装了phpcs。当我使用工具时
traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./phpcs.py", line 599, in run
File "./phpcs.py", line 424, in run
File "./phpcs.py", line 139, in get_errors
File "./phpcs.py", li
问题与错误
已经使用Emacs几年了。最近决定尝试前奏版本的。安装进行顺利(在Win7上使用Cygwin),但是有几天无法使用php错误检查。我想让php错误检查与Flycheck一起工作。现在对我来说不起作用了。
当前,当我破坏一个php脚本时,flycheck.el (@I 2551)返回两个错误:
Checker php returned non-zero exit code 1, but no errors from output:
Could not open input file: /tmp/flycheck4728Btc/myPhpFile.php
Checker defin
我正在尝试通过包含GitLab's SAST template来使用phpcs-security-audit。它按预期生成报告,但报告中充满了来自库的警告和特定的警告,我希望忽略这些警告才能使报告有用。 如果我自己运行phpcs和phpcs-security-audit,我可以store settings in a config file。在.phpcs.xml中存储设置在本地工作,但对GitLab的phpcs-security-audit analyzer没有影响。我找不到任何关于它的文档。可以配置分析仪吗?如果可以,如何配置?
我安装了用于崇高文本3的PHPCS插件,并按如下方式设置了用户配置文件:
{
// Path to php on windows installation
// This is needed as we cannot run phars on windows, so we run it through php
"phpcs_php_prefix_path": "C:\\wamp\bin\\php\\php5.4.12\\php.exe",
// This is the path to the bat file when we installed PHP_Co