Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln authored Nov 12, 2024
0 parents commit dbc6f5c
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.json]
insert_final_newline = false
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: remindgmbh/commitlint-action@v1.0.0
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: intl
tools: composer:v2
- run: composer install
- run: composer run-script static-analysis
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release

on:
push:
branches:
- "main"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: remindgmbh/semantic-release-action@v2.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/public
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"benjaminkott.typo3-typoscript",
"devsense.phptools-vscode",
"obliviousharmony.vscode-php-codesniffer"
],
"unwantedRecommendations": []
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"phpCodeSniffer.exec.linux": "./vendor/bin/phpcs",
"phpCodeSniffer.standard": "Custom",
"phpCodeSniffer.standardCustom": "./phpcs.xml",
"phpCodeSniffer.exclude": []
}
61 changes: 61 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "remind/name",
"type": "typo3-cms-extension",
"description": "[DESCRIPTION]",
"license": [ "GPL-3.0-or-later" ],
"authors": [
{
"name": "REMIND GmbH",
"email": "technik@remind.de"
}
],
"autoload": {
"psr-4": {
"Remind\\[NAME]\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"Remind\\[NAME]\\Tests\\": "Tests"
}
},
"config": {
"optimize-autoloader": true,
"apcu-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
},
"require": {
"typo3/cms-core": "^12.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"remind/coding-standard": "^1.0",
"saschaegerer/phpstan-typo3": "^1.10",
"slevomat/coding-standard": "^8.15",
"squizlabs/php_codesniffer": "^3.10"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"typo3/cms": {
"extension-key": "rmnd_name"
}
},
"scripts": {
"phpcs": "@php ./vendor/bin/phpcs --standard=phpcs.xml --extensions=php --report=full -n .",
"phpcbf": "@php ./vendor/bin/phpcbf --standard=phpcs.xml --extensions=php .",
"phpstan": "@php ./vendor/bin/phpstan analyse -c phpstan.neon",
"static-analysis": [
"@composer phpcs",
"@composer phpstan"
]
}
}
9 changes: 9 additions & 0 deletions ext_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer">
<exclude-pattern type="relative">public/*</exclude-pattern>
<exclude-pattern type="relative">vendor/*</exclude-pattern>
<rule ref="RemindCodingStandard"></rule>
</ruleset>
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
level: 8
paths:
- .
excludePaths:
- public
- vendor

0 comments on commit dbc6f5c

Please sign in to comment.