Skip to content
This repository was archived by the owner on Apr 4, 2020. It is now read-only.

Commit 8e4987d

Browse files
committed
Initial commit
0 parents  commit 8e4987d

17 files changed

+679
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.editorconfig export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.scrutinizer.yml export-ignore
9+
/.styleci.yml export-ignore
10+
/.travis.yml export-ignore
11+
/phpunit.xml.dist export-ignore
12+
/scrutinizer.yml export-ignore
13+
/tests/ export-ignore

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 21
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- on hold
9+
- security
10+
# Label to use when marking an issue as stale
11+
staleLabel: stale
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: false

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.idea/
2+
/build/
3+
/composer.lock
4+
/vendor/

.scrutinizer.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
filter:
2+
excluded_paths: [tests/*]
3+
4+
checks:
5+
php:
6+
code_rating: true
7+
remove_extra_empty_lines: true
8+
remove_php_closing_tag: true
9+
remove_trailing_whitespace: true
10+
fix_use_statements:
11+
remove_unused: true
12+
preserve_multiple: false
13+
preserve_blanklines: true
14+
order_alphabetically: true
15+
fix_php_opening_tag: true
16+
fix_linefeed: true
17+
fix_line_ending: true
18+
fix_identation_4spaces: true
19+
fix_doc_comments: true
20+
21+
tools:
22+
external_code_coverage:
23+
timeout: 600
24+
runs: 3
25+
php_analyzer: true
26+
php_code_coverage: false
27+
php_code_sniffer:
28+
config:
29+
standard: PSR2
30+
filter:
31+
paths: ['src']
32+
php_cpd:
33+
enabled: true
34+
excluded_dirs: [vendor, tests]
35+
php_loc:
36+
enabled: true
37+
excluded_dirs: [vendor, tests]
38+
php_pdepend: true
39+
php_sim: true

.styleci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
preset: recommended
2+
3+
enabled:
4+
- concat_with_spaces
5+
- no_useless_else
6+
- strict
7+
8+
disabled:
9+
- concat_without_spaces
10+
- no_trailing_comma_in_list_call
11+
- phpdoc_summary
12+
- post_increment
13+
- self_accessor

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
- 7.2
6+
- 7.3
7+
8+
env:
9+
matrix:
10+
- COMPOSER_FLAGS=""
11+
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
12+
13+
sudo: false
14+
15+
before_script:
16+
- travis_retry composer self-update
17+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
18+
19+
script:
20+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
21+
22+
after_script:
23+
- wget https://github.com/scrutinizer-ci/ocular/releases/download/1.5.2/ocular.phar
24+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased][unreleased]
9+
10+
Initial release!
11+
12+
[unreleased]: https://github.com/thephpleague/commonmark-ext-external-link

CONDUCT.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

CONTRIBUTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via Pull Requests on [Github](https://github.com/thephpleague/commonmark-ext-external-link).
6+
7+
## Pull Requests
8+
9+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
10+
11+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
12+
13+
- **Adhere to the spec!** - Any changes should align with the (official GFM spec)[https://github.github.com/gfm/]
14+
15+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
16+
17+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
18+
19+
- **Create feature branches** - Don't ask us to pull from your master branch.
20+
21+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
22+
23+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
24+
25+
- **Docblocks** - All files should start with the following docblock:
26+
27+
~~~
28+
/*
29+
* This file is part of the league/commonmark-ext-external-link package.
30+
*
31+
* (c) Colin O'Dell <[email protected]>
32+
*
33+
* For the full copyright and license information, please view the LICENSE
34+
* file that was distributed with this source code.
35+
*/
36+
~~~
37+
38+
The "Authored by" line is optional.
39+
40+
41+
## Running Tests
42+
43+
``` bash
44+
$ composer test
45+
```
46+
47+
48+
**Happy coding**!

0 commit comments

Comments
 (0)