File tree Expand file tree Collapse file tree 5 files changed +52
-37
lines changed Expand file tree Collapse file tree 5 files changed +52
-37
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"plugins": [
3
3
"remark-preset-lint-consistent",
4
- "remark-preset-lint-recommended"
4
+ "remark-preset-lint-recommended",
5
+ [
6
+ "remark-lint-list-item-indent",
7
+ "space"
8
+ ]
5
9
]
6
10
}
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ include:
23
23
Examples of unacceptable behavior by participants include:
24
24
25
25
* The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
26
+ advances
27
27
* Trolling, insulting/derogatory comments, and personal or political attacks
28
28
* Public or private harassment
29
29
* Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
30
+ address, without explicit permission
31
31
* Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
32
+ professional setting
33
33
34
34
## Our Responsibilities
35
35
Original file line number Diff line number Diff line change 1
1
# Contributing
2
2
3
3
## Getting Started
4
- * Fork, then clone the repo:
4
+
5
+ * Fork, then clone the repo:
6
+
5
7
``` bash
6
8
git clone
[email protected] :your-username/php-jsonrpc-http-server-swagger-doc-sdk.git
7
- ````
9
+ ```
10
+
11
+ * Make sure everything goes well:
8
12
9
- * Make sure everything goes well:
10
13
``` bash
11
14
make build
12
15
make test
13
16
```
14
17
15
- * Make your changes (Add/Update tests according to your changes).
16
- * Make sure tests are still green:
18
+ * Make your changes (Add/Update tests according to your changes).
19
+ * Make sure tests are still green:
20
+
17
21
``` bash
18
22
make test
19
23
```
20
24
21
- * To check code coverage, launch
25
+ * To check code coverage, launch
26
+
22
27
``` bash
23
28
make coverage
24
29
```
25
30
26
- * Push to your fork and [submit a pull request](https://github.com/yoanm/php-jsonrpc-http-server-swagger-doc-sdk/compare/).
27
- * Wait for feedback or merge.
31
+ * Push to your fork and [ submit a pull request] ( https://github.com/yoanm/php-jsonrpc-http-server-swagger-doc-sdk/compare/ ) .
32
+ * Wait for feedback or merge.
33
+
34
+ Some stuff that will increase your pull request's acceptance:
28
35
29
- Some stuff that will increase your pull request' s acceptance:
30
- * Write tests.
31
- * Follow PSR-2 coding style.
32
- * Write good commit messages.
33
- * Do not rebase or squash your commits when a review has been made.
36
+ * Write tests.
37
+ * Follow PSR-2 coding style.
38
+ * Write good commit messages.
39
+ * Do not rebase or squash your commits when a review has been made.
Original file line number Diff line number Diff line change @@ -109,5 +109,13 @@ scrutinizer-behat:
109
109
create-build-directories :
110
110
mkdir -p ${PHPUNIT_COVERAGE_DIRECTORY} ${BEHAT_COVERAGE_DIRECTORY} ${REPORTS_DIRECTORY}
111
111
112
+ .PHONY : configure-dev-env
113
+ configure-dev-env :
114
+ npm install --global remark-cli remark-preset-lint-consistent remark-preset-lint-recommended remark-lint-list-item-indent
115
+
116
+ .PHONY : lint-markdown
117
+ lint-markdown :
118
+ npx remark . --output
119
+
112
120
.PHONY : build install configure test test-unit test-functional codestyle create-build-directories scrutinizer-behat scrutinizer-phpunit
113
121
.DEFAULT : build
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
-
3
2
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4
3
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
- xsi : noNamespaceSchemaLocation =" http ://schema.phpunit.de/4.8 /phpunit.xsd"
4
+ xsi : noNamespaceSchemaLocation =" https ://schema.phpunit.de/9.3 /phpunit.xsd"
6
5
backupStaticAttributes =" false"
7
6
colors =" true"
8
7
processIsolation =" false"
24
23
25
24
bootstrap =" vendor/autoload.php"
26
25
>
27
- <listeners >
28
- <listener class =" Yoanm\PhpUnitExtended\Listener\YoanmTestsStrategyListener" />
29
- </listeners >
30
-
31
- <testsuites >
32
- <testsuite name =" functional" >
33
- <directory >tests/Functional/*</directory >
34
- </testsuite >
35
- <testsuite name =" technical" >
36
- <directory >tests/Technical/*</directory >
37
- </testsuite >
38
- </testsuites >
39
-
40
- <filter >
41
- <whitelist >
42
- <directory >src</directory >
43
- </whitelist >
44
- </filter >
26
+ <coverage >
27
+ <include >
28
+ <directory >src</directory >
29
+ </include >
30
+ </coverage >
31
+ <listeners >
32
+ <listener class =" Yoanm\PhpUnitExtended\Listener\YoanmTestsStrategyListener" />
33
+ </listeners >
34
+ <testsuites >
35
+ <testsuite name =" functional" >
36
+ <directory >tests/Functional</directory >
37
+ </testsuite >
38
+ <testsuite name =" technical" >
39
+ <directory >tests/Technical</directory >
40
+ </testsuite >
41
+ </testsuites >
45
42
</phpunit >
You can’t perform that action at this time.
0 commit comments