Skip to content

Commit

Permalink
standardize various files, change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
acalvino4 committed May 4, 2023
1 parent 294e046 commit c7d5ded
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 36 deletions.
19 changes: 15 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MIT License
# The MIT License (MIT)

Copyright (c) 2023-present, Augustine Calvino

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
57 changes: 29 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 8
paths:
- ecs.php
- src
- ecs.php

0 comments on commit c7d5ded

Please sign in to comment.