Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish quality standards #20

Merged
merged 7 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ root = true

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

[{.jshintrc,*.json,*.yml}]
[*.md]
trim_trailing_whitespace = false

[{*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
13 changes: 13 additions & 0 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build, test & measure

on:
workflow_call:
pull_request:
push:
branches:
['main']

jobs:
call-workflow-build-test-measure:
uses: figuren-theater/code-quality/.github/workflows/build-test-measure.yml@main
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/ft-issue-gardening.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Issue gardening for figuren.theater

on:
issues:
types:
- opened
jobs:
call-workflow-ft-issue-gardening:
uses: figuren-theater/.github/.github/workflows/issue-gardening.yml@main
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/prerelease-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'pre-Release Changelog Update'

on:
workflow_call:
release:
types: [prereleased]

jobs:
call-workflow-update-changelog:
uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@main
secrets: inherit

19 changes: 19 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Draft or update the next release

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

jobs:
call-workflow-release-drafter:
uses: figuren-theater/.github/.github/workflows/release-drafter.yml@main
secrets: inherit
24 changes: 17 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
.DS_Store
phpcs.xml
phpunit.xml
Thumbs.db
wp-cli.local.yml
node_modules/
/build/
/node_modules
/vendor
*.sql
*.tar.gz
*.zip
/wiki
.vscode

# Generated via bin/transform-readme.php
/readme.txt
/.wp-env.override.json

# misc
.DS_Store
Thumbs.db

/vendor/
# is created during composer install,
# when package is tested
# and not running within ft-platform
/wp-content/
32 changes: 32 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<ruleset name="ft-privacy">
<description>Coding standards for ft-privacy</description>

<file>.</file>

<!--
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern> -->

<!--
is created during composer install,
when package is tested
and not running within ft-platform
-->
<exclude-pattern>*/wp-content/*</exclude-pattern>
<exclude-pattern>*/inc/wptt-webfont-loader/wptt-webfont-loader/*</exclude-pattern>

<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />

<!--
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="figurentheater"/>
</property>
</properties>
</rule> -->

</ruleset>
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased](https://github.com/figuren-theater/ft-privacy/compare/1.0.25...HEAD)



6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</p>
</div>

## About
## About


This is the long desc
Expand Down Expand Up @@ -67,7 +67,7 @@ Figuren_Theater::API\get_...()

## Plugins included

This package contains the following plugins.
This package contains the following plugins.
Thoose are completely managed by code and lack of their typical UI.

* [Embed Privacy](https://wordpress.org/plugins/embed-privacy/#developers)
Expand Down Expand Up @@ -117,7 +117,7 @@ who participated in this project.

## License

This project is licensed under the [GPL-3.0-or-later](LICENSE.md), see the [LICENSE](LICENSE) file for
This project is licensed under the **GPL-3.0-or-later**, see the [LICENSE](/LICENSE) file for
details

## Acknowledgments
Expand Down
71 changes: 45 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"name": "figuren-theater/ft-privacy",
"description": "Privacy first! And this is the code that does it. Curated for the WordPress multisite network figuren.theater",
"homepage": "https://websites.fuer.figuren.theater",
"type": "wordpress-muplugin",
"keywords": ["wordpress", "privacy", "GDPR", "analytics", "emoji", "fonts"],
"license": "GPL-3.0-or-later",
"type": "wordpress-muplugin",
"keywords": [
"wordpress",
"privacy",
"GDPR",
"analytics",
"emoji",
"fonts"
],
"authors": [
{
"name": "figuren.theater",
Expand All @@ -17,45 +23,58 @@
"role": "Developer"
}
],
"homepage": "https://websites.fuer.figuren.theater",
"support": {
"email": "info@figuren.theater",
"issues": "https://github.com/figuren-theater/ft-privacy/issues",
"source": "https://github.com/figuren-theater/ft-privacy"
},
"require": {
"php": ">=7.1",
"figuren-theater/ft-options": "^1",
"koodimonni/composer-dropin-installer": "^1.4",
"wpackagist-plugin/compressed-emoji": "^1.5",
"wpackagist-plugin/embed-privacy": "^1.7",
"wpackagist-plugin/koko-analytics": "^1.0",
"wpackagist-plugin/surbma-gdpr-multisite-privacy": "^2"
},
"require-dev": {
"figuren-theater/code-quality": "^0.6.6"
},
"suggest": {
"figuren-theater/ft-onboarding": "Contains the mandatory filter, which will help to pseudo-activate the Embed-Privacy-Plugin, if available."
},
"repositories": [
{
"type": "git",
"url": "https://github.com/figuren-theater/ft-options"
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"autoload": {
"classmap": [
"inc/"
],
"files": [
"inc/compressed-emoji/namespace.php",
"inc/embed-privacy/namespace.php",
"inc/koko-analytics/namespace.php",
"inc/surbma-gdpr-multisite-privacy/namespace.php",
"inc/wptt-webfont-loader/namespace.php",
"inc/namespace.php"
],
"classmap": [
"inc/"
]
},
"repositories": [
{
"type": "git",
"url" : "https://github.com/figuren-theater/ft-options"
},
{
"type": "composer",
"url" : "https://wpackagist.org"
"config": {
"allow-plugins": {
"koodimonni/composer-dropin-installer": true,
"composer/installers": true,
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true
}
],
"require": {
"php": ">=7.1",
"figuren-theater/ft-options": "^1",
"wpackagist-plugin/compressed-emoji":"^1.4",
"wpackagist-plugin/embed-privacy": "^1.7",
"wpackagist-plugin/koko-analytics": "^1.0",
"wpackagist-plugin/surbma-gdpr-multisite-privacy": "^2",
"koodimonni/composer-dropin-installer": "^1.4"
},
"suggest": {
"figuren-theater/ft-onboarding": "Contains the mandatory filter, which will help to pseudo-activate the Embed-Privacy-Plugin, if available."
},
"extra": {
"altis": {
Expand Down
Loading