-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from UseMuffin/cake-4.x
Cake 4.x
- Loading branch information
Showing
30 changed files
with
342 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Remove files for archives generated using `git archive` | ||
CONTRIBUTING.md export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.semver export-ignore | ||
phpunit.xml.dist export-ignore | ||
.travis.yml export-ignore | ||
.scrutinizer.yml export-ignore | ||
tests export-ignore | ||
docs export-ignore | ||
.github export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/composer.lock | ||
/plugins | ||
/vendor | ||
*.pyc | ||
docs/_build | ||
phpunit.xml | ||
vendor/ | ||
composer.lock | ||
tmp | ||
.phpunit.result.cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# How to contribute | ||
|
||
Tags loves to welcome your contributions. There are several ways to help out: | ||
* Create a ticket in GitHub, if you have found a bug | ||
* Write testcases for open bug tickets | ||
* Write patches for open bug/feature tickets, preferably with testcases included | ||
* Contribute to the documentation/readme | ||
|
||
There are a few guidelines that we need contributors to follow so that we have a | ||
chance of keeping on top of things. | ||
|
||
## Getting Started | ||
|
||
* Make sure you have a [GitHub account](https://github.com/signup/free) | ||
* Submit a ticket for your issue, assuming one does not already exist. | ||
* Clearly describe the issue including steps to reproduce when it is a bug. | ||
* Make sure you fill in the earliest version that you know has the issue. | ||
* Fork the repository on GitHub. | ||
|
||
## Making Changes | ||
|
||
* Create a topic branch from where you want to base your work. | ||
* This is usually the develop branch | ||
* To quickly create a topic branch based on master; `git branch | ||
master/my_contribution master` then checkout the new branch with `git | ||
checkout master/my_contribution`. Better avoid working directly on the | ||
`master` branch, to avoid conflicts if you pull in updates from origin. | ||
* Make commits of logical units. | ||
* Check for unnecessary whitespace with `git diff --check` before committing. | ||
* Use descriptive commit messages and reference the #ticket number | ||
* Core testcases should continue to pass. You can run tests locally or enable | ||
[travis-ci](https://travis-ci.org/) for your fork, so all tests and codesniffs | ||
will be executed. | ||
* Your work should apply the CakePHP coding standards. | ||
|
||
## Which branch to base the work | ||
|
||
* Bugfix branches will be based on develop branch. | ||
* New features that are backwards compatible will be based on develop branch | ||
* New features or other non-BC changes will go in the next major release branch. | ||
|
||
## Submitting Changes | ||
|
||
* Push your changes to a topic branch in your fork of the repository. | ||
* Submit a pull request to the repository with the correct target branch. | ||
|
||
## Testcases and codesniffer | ||
|
||
Tags tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) | ||
8.5.0 or higher. To run the testcases locally use the following command: | ||
|
||
phpunit | ||
|
||
To run the sniffs for CakePHP coding standards | ||
|
||
phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=vendor --ignore=docs src/ tests/ | ||
|
||
Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer) | ||
repository to setup the CakePHP standard. The README contains installation info | ||
for the sniff and phpcs. | ||
|
||
# Additional Resources | ||
|
||
* [CakePHP coding standards](https://book.cakephp.org/4/en/contributing/cakephp-coding-conventions.html) | ||
* [Bug tracker](https://github.com/UseMuffin/Tags/issues) | ||
* [General GitHub documentation](https://help.github.com/) | ||
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/) | ||
* #cakephp IRC channel on freenode.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,58 @@ | ||
{ | ||
"name" : "muffin/tags", | ||
"description" : "Tags plugin for CakePHP 3.x", | ||
"type" : "cakephp-plugin", | ||
"keywords" : [ | ||
"cakephp", | ||
"muffin", | ||
"tags" | ||
], | ||
"homepage" : "https://github.com/usemuffin/tags", | ||
"license" : "MIT", | ||
"authors" : [{ | ||
"name" : "Jad Bitar", | ||
"homepage" : "http://jadb.io", | ||
"role" : "Author" | ||
}, { | ||
"name" : "ADmad", | ||
"homepage" : "https://github.com/ADmad", | ||
"role" : "Author" | ||
}, { | ||
"name" : "Others", | ||
"homepage" : "https://github.com/usemuffin/tags/graphs/contributors" | ||
} | ||
], | ||
"support" : { | ||
"issues" : "https://github.com/usemuffin/tags/issues", | ||
"source" : "https://github.com/usemuffin/tags" | ||
}, | ||
"require" : { | ||
"cakephp/orm" : "^3.5", | ||
"cakephp/migrations" : "^2.0" | ||
}, | ||
"require-dev" : { | ||
"cakephp/cakephp" : "^3.5", | ||
"phpunit/phpunit" : "^5.7.14|^6.0", | ||
"muffin/slug" : "^1.4" | ||
}, | ||
"autoload" : { | ||
"psr-4" : { | ||
"Muffin\\Tags\\" : "src" | ||
} | ||
}, | ||
"autoload-dev" : { | ||
"psr-4" : { | ||
"Muffin\\Tags\\Test\\" : "tests" | ||
} | ||
} | ||
} | ||
"name": "muffin/tags", | ||
"description": "Tags plugin for CakePHP", | ||
"type": "cakephp-plugin", | ||
"keywords": [ | ||
"cakephp", | ||
"muffin", | ||
"tags" | ||
], | ||
"homepage": "https://github.com/usemuffin/tags", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Jad Bitar", | ||
"homepage": "http://jadb.io", | ||
"role": "Author" | ||
}, | ||
{ | ||
"name": "ADmad", | ||
"homepage": "https://github.com/ADmad", | ||
"role": "Author" | ||
}, | ||
{ | ||
"name": "Others", | ||
"homepage": "https://github.com/usemuffin/tags/graphs/contributors" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/usemuffin/tags/issues", | ||
"source": "https://github.com/usemuffin/tags" | ||
}, | ||
"require": { | ||
"cakephp/orm": "^4.0", | ||
"cakephp/utility": "^4.0" | ||
}, | ||
"require-dev": { | ||
"cakephp/cakephp": "^4.0", | ||
"cakephp/cakephp-codesniffer": "^4.0", | ||
"phpunit/phpunit": "~8.5.0" | ||
}, | ||
"suggest": { | ||
"muffin/slug": "For adding slugs to tags" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Muffin\\Tags\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Muffin\\Tags\\Test\\": "tests", | ||
"Muffin\\Tags\\Test\\App\\": "tests/test_app/src" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parameters: | ||
level: 6 | ||
checkGenericClassInNonGenericObjectType: false | ||
checkMissingIterableValueType: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
totallyTyped="false" | ||
resolveFromConfigFile="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<MissingClosureReturnType errorLevel="info" /> | ||
|
||
<PropertyNotSetInConstructor errorLevel="info" /> | ||
<MissingConstructor errorLevel="info" /> | ||
<MissingClosureParamType errorLevel="info" /> | ||
|
||
<DocblockTypeContradiction errorLevel="info" /> | ||
<RedundantConditionGivenDocblockType errorLevel="info" /> | ||
|
||
<UndefinedPropertyFetch errorLevel="info" /> | ||
<UndefinedThisPropertyFetch errorLevel="info" /> | ||
<UndefinedPropertyAssignment errorLevel="info" /> | ||
</issueHandlers> | ||
</psalm> |
Oops, something went wrong.