Adapt .editorconfig

- Add .json rule
- Add .xml rule
pull/12850/head
Philipp 2023-02-27 20:34:46 +01:00
rodzic 3c7184513c
commit ae5fe47c03
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 24A7501396EB5432
3 zmienionych plików z 27 dodań i 12 usunięć

Wyświetl plik

@ -10,6 +10,7 @@ indent_style = tab
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single
max_line_length = off
[*.js]
quote_type = double
@ -19,5 +20,13 @@ ij_javascript_use_double_quotes = true
indent_style = space
indent_size = 2
[*.xml]
indent_style = space
indent_size = 4
[*.json]
indent_style = space
indent_size = 2
[composer.json]
indent_size = tab
indent_style = tab

Wyświetl plik

@ -132,7 +132,13 @@
"test": "phpunit",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l",
"cs:install": "@composer install --working-dir=bin/dev/php-cs-fixer",
"cs:check": ["@cs:install", "bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff"],
"cs:fix": ["@cs:install", "bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix"]
"cs:check": [
"@cs:install",
"bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff"
],
"cs:fix": [
"@cs:install",
"bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix"
]
}
}

Wyświetl plik

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<docblox>
<parser>
<target>data/output</target>
</parser>
<transformer>
<target>data/output</target>
</transformer>
<files>
<directory>.</directory>
</files>
<parser>
<target>data/output</target>
</parser>
<transformer>
<target>data/output</target>
</transformer>
<files>
<directory>.</directory>
</files>
</docblox>