Стандарт кодирования PHPCBF не установлен, но используется путь xml.Php

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Стандарт кодирования PHPCBF не установлен, но используется путь xml.

Сообщение Anonymous »

Использование PHP_CodeSniffer версии 3.7.2 (стабильной) от Squiz (http://www.squiz.net)
Проверяю это на своем терминале и "C:\ Program Files\PHP_Tools\phpcbf.bat" -s -q -d Memory_limit=-1 --extensions=php --no-colors --standard=C:/xampp7/htdocs/Dolibarr16.0.3/dev/setup/codesniffer/ Ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true
Я получаю ОШИБКУ: "C:/xampp7/htdocs/Dolibarr16.0.3/dev /setup/codesniffer/ruleset.xml» стандарт кодирования не установлен. Установленные стандарты кодирования: MySource, PEAR, PSR1, PSR2, PSR12, Squiz и Zend
Почему он не понимает, что это не стандартное имя, а путь к файлу XML? Клянусь, совсем недавно это сработало.
& "C:\Program Files\PHP_Tools\phpcbf.bat" --help

Usage: phpcbf [-nwli] [-d key[=value]] [--ignore-annotations] [--bootstrap=]
[--standard=] [--sniffs=] [--exclude=] [--suffix=]
[--severity=] [--error-severity=] [--warning-severity=]
[--tab-width=] [--encoding=] [--parallel=
]
[--basepath=] [--extensions=] [--ignore=]
[--stdin-path=] [--file-list=] [--filter=] - ...

- Fix STDIN instead of local files and directories
-n Do not fix warnings (shortcut for --warning-severity=0)
-w Fix both warnings and errors (on by default)
-l Local directory only, no recursion
-p Show progress of the run
-q Quiet mode; disables progress and verbose output
-v Print processed files
-vv Print ruleset and token output
-vvv Print sniff processing information
-i Show a list of installed coding standards
-d Set the [key] php.ini value to [value] or [true] if value is omitted

--help Print this help message
--version Print version information
--ignore-annotations Ignore all phpcs: annotations in code comments

A path to strip from the front of file paths inside reports
A comma separated list of files to run before processing begins
The encoding of the files being fixed (default is utf-8)
A comma separated list of file extensions to fix
The type of the file can be specified using: ext/type
e.g., module/php,es/js
One or more files and/or directories to fix
A file containing a list of files and/or directories to fix (one per line)
Use either the "gitmodified" or "gitstaged" filter,
or specify the path to a custom filter class
A comma separated list of patterns to ignore files and directories
How many files should be fixed simultaneously (default is 1)
The minimum severity required to fix an error or warning
A comma separated list of sniff codes to include or exclude from fixing
(all sniffs must be part of the specified standard)
The name or path of the coding standard to use
If processing STDIN, the file path that STDIN will be processed as
Write modified files to a filename using this suffix
("diff" and "patch" are not used in this mode)
The number of spaces each tab represents

и bat-файл
@echo off

C:\xampp7\php\php.exe "C:\Program Files\PHP_Tools\phpcbf" %*


Подробнее здесь: https://stackoverflow.com/questions/783 ... g-xml-path
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»