diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c57bac..ac1b248 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,30 @@ -# acalvino4/craft-twigruleset Changelog +# Changelog ## Unreleased +## [1.0.3] - 2023-04-06 + +- Nitpick some files +- Fix composer.json formatting +- Change namespace name to `acalvino4\crafttwigruleset` +- Fix changelog formatting - Add README.md contents -## 1.0.2 - 2023-04-06 +## [1.0.2] - 2023-04-06 - Fix incorrect class name -## 1.0.1 - 2023-04-06 +## [1.0.1] - 2023-04-06 - Fix namespacing -## 1.0.0 - 2023-04-06 +## [1.0.0] - 2023-04-06 - Added ruleset that extends from the official twigcs ruleset - Added customization to the RegEngine to allow the ??? operator - Removed the rule that enforces snake_case variable names, since the convention in the craft community is camelCase + +[1.0.3]: (https://github.com/acalvino4/craft-twigruleset/releases/tag/0.1.1) +[1.0.2]: (https://github.com/acalvino4/craft-twigruleset/releases/tag/0.1.1) +[1.0.1]: (https://github.com/acalvino4/craft-twigruleset/releases/tag/0.1.1) +[1.0.0]: (https://github.com/acalvino4/craft-twigruleset/releases/tag/0.1.0) diff --git a/LICENSE.md b/LICENSE.md index f36d76a..11fd42e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -# MIT License +# The MIT License (MIT) Copyright (c) 2023-present, Augustine Calvino diff --git a/README.md b/README.md index 1d6cc51..5da8752 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The ruleset provided here maintains the official ruleset, with the exception of declare(strict_types=1); -use Acalvino4\CraftTwigRuleset\CraftRuleset; +use acalvino4\crafttwigruleset\CraftRuleset; use FriendsOfTwig\Twigcs\Config\Config; use FriendsOfTwig\Twigcs\Finder\TemplateFinder; diff --git a/composer.json b/composer.json index a94efdd..b3b5f11 100644 --- a/composer.json +++ b/composer.json @@ -1,30 +1,31 @@ { - "name": "acalvino4/craft-twig-ruleset", - "description": "A twig coding style ruleset for the Craft community", - "version": "1.0.3", - "homepage": "https://github.com/acalvino4/craft-twigruleset", - "license": "MIT", - "authors": [ - { - "name": "acalvino4" - } - ], - "require": { - "friendsoftwig/twigcs": "^6.2" - }, - "require-dev": { - "craftcms/ecs": "dev-main", - "craftcms/phpstan": "dev-main" - }, - "autoload": { - "psr-4": { - "acalvino4\\crafttwigruleset\\": "src/" - } - }, - "scripts": { - "test": "ecs check --ansi && phpstan --memory-limit=1G", - "fix": "ecs check --ansi --fix" - }, - "minimum-stability": "dev", - "prefer-stable": true + "name": "acalvino4/craft-twig-ruleset", + "description": "A twig coding style ruleset for the Craft community", + "version": "1.0.3", + "homepage": "https://github.com/acalvino4/craft-twigruleset", + "license": "MIT", + "authors": [ + { + "name": "acalvino4", + "homepage": "https://github.com/acalvino4" + } + ], + "require": { + "friendsoftwig/twigcs": "^6.2" + }, + "require-dev": { + "craftcms/ecs": "dev-main", + "craftcms/phpstan": "dev-main" + }, + "autoload": { + "psr-4": { + "acalvino4\\crafttwigruleset\\": "src/" + } + }, + "scripts": { + "test": "ecs check --ansi && phpstan --memory-limit=1G", + "fix": "ecs check --ansi --fix" + }, + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/ecs.php b/ecs.php index 8a755e3..5183d48 100644 --- a/ecs.php +++ b/ecs.php @@ -8,8 +8,8 @@ return static function(ECSConfig $ecsConfig): void { $ecsConfig->parallel(); $ecsConfig->paths([ - __DIR__ . '/ecs.php', __DIR__ . '/src', + __FILE__, ]); $ecsConfig->sets([SetList::CRAFT_CMS_4]); diff --git a/phpstan.neon b/phpstan.neon index 296f47f..3655edd 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: level: 8 paths: - - ecs.php - src + - ecs.php