Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Feb 11, 2022
0 parents commit db69bd0
Show file tree
Hide file tree
Showing 27 changed files with 1,187 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

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

[{*.php,*.xml}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
37 changes: 37 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# text files
* text=auto
*.markdown text eol=lf
*.md text eol=lf
*.js text eol=lf
*.css text eol=lf
*.json text eol=lf
*.lock text eol=lf
*.html text eol=lf
*.php text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.xml text eol=lf
*.dist text eol=lf
*.txt text eol=lf
*.ini text eol=lf
*.sh text eol=lf
*.tmp text eol=lf

# binary files
*.zip -text binary

# files/folders to ignore
/.* export-ignore
.editorconfig export-ignore text eol=lf
.gitattributes export-ignore text eol=lf
.gitignore export-ignore text eol=lf
.php-cs-fixer.php export-ignore text eol=lf
codecov.yml export-ignore text eol=lf
infection.json export-ignore text eol=lf
phpcs.xml export-ignore text eol=lf
phpmd.ruleset.xml export-ignore text eol=lf
phpstan.neon export-ignore text eol=lf
phpunit.xml export-ignore text eol=lf
rector.php export-ignore text eol=lf
/tests export-ignore
/.github export-ignore
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mimmi20
60 changes: 60 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# CONTRIBUTING

We are using [GitHub Actions](https://github.com/features/actions) as a continuous integration system.

For details, take a look at the following workflow configuration files:

- [`workflows/continuous-integration.yaml`](workflows/continuous-integration.yaml)
- [`workflows/lock-closed-issues.yaml`](workflows/lock-closed-issues.yaml)
- [`workflows/stale.yaml`](workflows/stale.yaml)

## Coding Standards

We are using [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`.

We are using [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) and [`squizlabs/php_codesniffer`](https://github.com/squizlabs/PHP_CodeSniffer) to enforce coding standards in PHP files.

Run

```sh
vendor/bin/phpcs
vendor/bin/php-cs-fixer fix --dry-run
```

to automatically fix coding standard violations.

## Static Code Analysis

We are using [`phpstan/phpstan`](https://github.com/phpstan/phpstan) to statically analyze the code.

Run

```sh
vendor/bin/phpstan analyse -c phpstan.neon
```

to run a static code analysis.

## Tests

We are using [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) to drive the development.

Run

```sh
vendor/bin/phpunit -c phpunit.xml
```

to run all the tests.

## Mutation Tests

We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.

Enable `pcov` or `Xdebug` and run

```sh
vendor/bin/infection
```

to run mutation tests.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#### Steps required to reproduce the problem

1.
2.
3.

#### Expected Result

*

#### Actual Result

*
46 changes: 46 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
time: "04:00"
timezone: "Europe/Berlin"
open-pull-requests-limit: 10
reviewers:
- "mimmi20"
assignees:
- "mimmi20"
labels:
- "dependencies"
versioning-strategy: "widen"
commit-message:
include: "scope"
prefix: "composer"
# ignore:
# - dependency-name: infection/infection
# versions:
# - ">= 0"
# - dependency-name: phpunit/phpunit
# versions:
# - ">= 0"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "04:00"
timezone: "Europe/Berlin"
open-pull-requests-limit: 10
reviewers:
- "mimmi20"
assignees:
- "mimmi20"
labels:
- "dependencies"
commit-message:
include: "scope"
prefix: "github-actions"
61 changes: 61 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# Default GitHub labels
- color: ee0701
name: "bug"
description: "Something isn't working"
- color: cccccc
name: "duplicate"
description: "This issue or pull request already exists"
- color: a2eeef
name: "enhancement"
description: "New feature or request"
- color: 7057ff
name: "good first issue"
description: "Good for newcomers"
- color: 128a0c
name: "help wanted"
description: "Extra attention is needed"
- color: e6e6e6
name: "invalid"
description: "This doesn't seem right"
- color: cc317c
name: "question"
description: "Further information is requested"
- color: ffffff
name: "wontfix"
description: "This will not be worked on"

# other Labels to all mimmi20 repos
- color: 0025ff
name: "dependencies"
description: "Pull requests that update a dependency file"
- color: f9d0c4
name: "stale"
description: "no activity"
- color: b60205
name: "BC Break"
description: ""
- color: f4e99c
name: "maintenance"
description: "Maintenance"
- color: fbca04
name: "wishlist"
description: ""
- color: d1260f
name: "security"
description: ""
- color: e6e6e6
name: "removed"
description: ""
- color: b60205
name: "deprecated"
description: ""
- color: 0075ca
name: "documentation"
description: "Improvements or additions to documentation"

# other Labels to mimmi20/template
#- color: 5319e7
# name: "new useragents"
# description: ""

38 changes: 38 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
template: |
## What’s Changed
$CHANGES
exclude-labels:
- duplicate
- question
- invalid
- wontfix
categories:
- title: '**💥 Breaking:**'
labels:
- 'BC Break'
- title: '**🍰 Enhancements:**'
labels:
- 'enhancement'
- title: '**🐞 Bugs:**'
labels:
- 'bug'
- title: '**💀 Deprecated:**'
labels:
- 'deprecated'
- title: '**🗑 Removed:**'
labels:
- 'removed'
- title: '**🛡 Security:**'
labels:
- 'security'
- title: '**🕸 Dependencies:**'
labels:
- 'dependencies'
- title: '**🧹 Maintenance:**'
labels:
- 'maintenance'
# other Labels to mimmi20/template
#- title: '**📦 new Useragents:**'
# labels:
# - 'new useragents'
Loading

0 comments on commit db69bd0

Please sign in to comment.