Compare commits
8 Commits
d28b044752
...
66a48358c7
Author | SHA1 | Date |
---|---|---|
Krzysztof Sikorski | 66a48358c7 | |
Krzysztof Sikorski | 2d2e9161f3 | |
Krzysztof Sikorski | dbcc3f7fa5 | |
Krzysztof Sikorski | 987f3ad16c | |
Krzysztof Sikorski | 4ebe695f55 | |
Krzysztof Sikorski | dedd8a497d | |
Krzysztof Sikorski | 0cbbdfa6b6 | |
Krzysztof Sikorski | a446502783 |
14
.ecrc
14
.ecrc
|
@ -1,12 +1,20 @@
|
|||
{
|
||||
"Version": "2.7.0",
|
||||
"Verbose": false,
|
||||
"Version": "2.7.2",
|
||||
"Verbose": true,
|
||||
"Debug": false,
|
||||
"IgnoreDefaults": false,
|
||||
"SpacesAftertabs": false,
|
||||
"NoColor": false,
|
||||
"Exclude": [
|
||||
"^doc/wayback_machine/"
|
||||
"^.idea/",
|
||||
"^.php-cs-fixer.cache$",
|
||||
"^doc/wayback_machine/",
|
||||
"^legacy/",
|
||||
"^website/assets/vendor/",
|
||||
"^website/public/assets/",
|
||||
"^website/public/bundles/",
|
||||
"^website/var/",
|
||||
"^website/vendor/"
|
||||
],
|
||||
"AllowedContentTypes": [],
|
||||
"PassedFiles": [],
|
||||
|
|
|
@ -5,8 +5,6 @@ declare(strict_types=1);
|
|||
use PhpCsFixer\Config;
|
||||
use PhpCsFixer\Finder;
|
||||
|
||||
require_once __DIR__ . '/tools/php-cs-fixer/vendor/autoload.php';
|
||||
|
||||
$rules = [
|
||||
// rule sets
|
||||
'@PER-CS2.0' => true,
|
||||
|
|
37
Makefile
37
Makefile
|
@ -20,42 +20,17 @@ git_push_tags:
|
|||
|
||||
# clean all temporary files (cache, logs, etc)
|
||||
.PHONY: clean_all
|
||||
clean_all: tools_clean_all website_clean_all
|
||||
clean_all: website_clean_all
|
||||
|
||||
# tools: clean all temporary files (cache, dependencies, etc)
|
||||
.PHONY: tools_clean_all
|
||||
tools_clean_all: tools_clean_cache tools_uninstall
|
||||
|
||||
# tools: uninstall all dependencies
|
||||
.PHONY: tools_uninstall
|
||||
tools_uninstall:
|
||||
rm --force --recursive --verbose tools/editorconfig-checker/vendor
|
||||
rm --force --recursive --verbose tools/php-cs-fixer/vendor
|
||||
|
||||
# tools: remove all cache files
|
||||
.PHONY: tools_clean_cache
|
||||
tools_clean_cache:
|
||||
rm --force --verbose .php-cs-fixer.cache
|
||||
|
||||
# tools: install "EditorConfig Checker" library
|
||||
.PHONY: tools_install_editorconfig_checker
|
||||
tools_install_editorconfig_checker:
|
||||
composer --working-dir=tools/editorconfig-checker install
|
||||
|
||||
# tools: lint PHP coding style across all directories
|
||||
# tools: lint all files against EditorConfig settings
|
||||
.PHONY: lint_editorconfig
|
||||
lint_editorconfig: tools_install_editorconfig_checker
|
||||
tools/editorconfig-checker/vendor/bin/ec
|
||||
|
||||
# tools: install "PHP Coding Standards Fixer" library
|
||||
.PHONY: tools_install_php_cs_fixer
|
||||
tools_install_php_cs_fixer:
|
||||
composer --working-dir=tools/php-cs-fixer install
|
||||
lint_editorconfig:
|
||||
docker container run --rm --user=$$UID --volume=$$PWD:/check mstruebing/editorconfig-checker:2.7.2
|
||||
|
||||
# tools: lint PHP coding style across all directories
|
||||
.PHONY: lint_coding_style
|
||||
lint_coding_style: tools_install_php_cs_fixer
|
||||
tools/php-cs-fixer/vendor/bin/php-cs-fixer check -vvv
|
||||
lint_coding_style:
|
||||
docker container run --rm --user=$$UID --volume=$$PWD:/code ghcr.io/php-cs-fixer/php-cs-fixer:3.47-php8.3 check -vvv
|
||||
|
||||
# website: clean all temporary files (cache, logs, etc)
|
||||
.PHONY: website_clean_all
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/vendor/
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"name": "quintolin/editorconfig-checker-bundle",
|
||||
"description": "Dummy project to load editorconfig-checker package.",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"require-dev": {
|
||||
"editorconfig-checker/editorconfig-checker": "^10.4"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true,
|
||||
"notify-on-install": false,
|
||||
"platform-check": true
|
||||
}
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "5268c369c2b08196997a588b0dbf0fa3",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "editorconfig-checker/editorconfig-checker",
|
||||
"version": "10.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/editorconfig-checker/editorconfig-checker.php.git",
|
||||
"reference": "f81b62b934064c665cb412f828efff20a59b2eda"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/editorconfig-checker/editorconfig-checker.php/zipball/f81b62b934064c665cb412f828efff20a59b2eda",
|
||||
"reference": "f81b62b934064c665cb412f828efff20a59b2eda",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-coveralls/php-coveralls": "^2.1",
|
||||
"phpstan/phpstan": "^1.4",
|
||||
"phpunit/phpunit": "^8.5.23",
|
||||
"squizlabs/php_codesniffer": "^3.6"
|
||||
},
|
||||
"bin": [
|
||||
"bin/editorconfig-checker",
|
||||
"bin/ec"
|
||||
],
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"EditorconfigChecker\\": "src/EditorconfigChecker"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Max Strübing",
|
||||
"email": "mxstrbng@gmail.com",
|
||||
"homepage": "https://github.com/mstruebing",
|
||||
"role": "Maintainer"
|
||||
}
|
||||
],
|
||||
"description": "A tool to verify that your files follow the rules of your .editorconfig",
|
||||
"support": {
|
||||
"issues": "https://github.com/editorconfig-checker/editorconfig-checker.php/issues",
|
||||
"source": "https://github.com/editorconfig-checker/editorconfig-checker.php"
|
||||
},
|
||||
"time": "2023-05-26T06:20:54+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"prefer-stable": true,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
/vendor/
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"name": "quintolin/php-cs-fixer-bundle",
|
||||
"description": "Dummy project to load php-cs-fixer package.",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^v3.42"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true,
|
||||
"notify-on-install": false,
|
||||
"platform-check": true
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue