mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +00:00
Adapt .editorconfig
- Add .json rule - Add .xml rule
This commit is contained in:
parent
3c7184513c
commit
ae5fe47c03
3 changed files with 27 additions and 12 deletions
|
@ -10,6 +10,7 @@ indent_style = tab
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
quote_type = single
|
quote_type = single
|
||||||
|
max_line_length = off
|
||||||
|
|
||||||
[*.js]
|
[*.js]
|
||||||
quote_type = double
|
quote_type = double
|
||||||
|
@ -19,5 +20,13 @@ ij_javascript_use_double_quotes = true
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.xml]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[composer.json]
|
[composer.json]
|
||||||
indent_size = tab
|
indent_style = tab
|
||||||
|
|
|
@ -132,7 +132,13 @@
|
||||||
"test": "phpunit",
|
"test": "phpunit",
|
||||||
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l",
|
"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: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:check": [
|
||||||
"cs:fix": ["@cs:install", "bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix"]
|
"@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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<docblox>
|
<docblox>
|
||||||
<parser>
|
<parser>
|
||||||
<target>data/output</target>
|
<target>data/output</target>
|
||||||
</parser>
|
</parser>
|
||||||
<transformer>
|
<transformer>
|
||||||
<target>data/output</target>
|
<target>data/output</target>
|
||||||
</transformer>
|
</transformer>
|
||||||
<files>
|
<files>
|
||||||
<directory>.</directory>
|
<directory>.</directory>
|
||||||
</files>
|
</files>
|
||||||
</docblox>
|
</docblox>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue