Skip to content
Permalink
Browse files

Merge pull request #115 from Lctrs/sync

Synchronize with Lctrs/php-library-skeleton
  • Loading branch information
Lctrs committed Feb 13, 2020
2 parents 745c3c9 + f9b8e69 commit 06042bba106d928d6965e7be4d3a1da48e714e0f
@@ -3,37 +3,21 @@
version: 1

update_configs:
- default_assignees:
- "Lctrs"
default_labels:
- default_labels:
- "dependency"
default_reviewers:
- "Lctrs"
directory: "/"
package_manager: "github_actions"
update_schedule: "daily"
update_schedule: "monthly"

- automerged_updates:
- match:
dependency_type: "development"
commit_message:
include_scope: true
prefix: "Build"
default_assignees:
- "Lctrs"
default_labels:
- "dependency"
default_reviewers:
- "Lctrs"
directory: "/"
package_manager: "php:composer"
update_schedule: "live"
update_schedule: "monthly"
version_requirement_updates: "increase_versions"
ignored_updates:
- match:
dependency_name: "phpunit/phpunit"
version_requirement: ">= 8.0.0"
- match:
dependency_name: "symfony/config"
- match:
dependency_name: "symfony/dependency-injection"
@@ -18,3 +18,6 @@ indent_style = tab

[*.{yml,yaml}{,.dist}]
indent_size = 2

[Makefile]
indent_style = tab
@@ -1,12 +1,13 @@
/.dependabot/ export-ignore
/.github/ export-ignore
/tests/ export-ignore
/test/ export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/Makefile export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm-baseline.xml export-ignore
/psalm.xml export-ignore
/psalm-baseline.xml export-ignore
@@ -0,0 +1,73 @@
# CONTRIBUTING

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

For details, see [`workflows/continuous-integration.yml`](workflows/continuous-integration.yml).

## Coding Standards

We are using [`doctrine/coding-standard`](https://github.com/doctrine-coding-standard) to enforce coding standards.

Run

```
$ make coding-standards
```

to automatically fix coding standard violations.

## Dependency Analysis

We are using [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code.

Run

```
$ make dependency-analysis
```

to run a dependency analysis.

## Static Code Analysis

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

Run

```
$ make static-code-analysis
```

to run a static code analysis.

We are also using the baseline features of [`phpstan/phpstan`](https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff) and [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file).

Run

```
$ make static-code-analysis-baseline
```

to regenerate the baselines in [`../phpstan-baseline.neon`](../phpstan-baseline.neon) and [`../psalm-baseline.xml`](../psalm-baseline.xml).

:exclamation: Ideally, the baselines should shrink over time.

## Extra lazy?

Run

```
$ make
```

to enforce coding standards, run a dependency analysis, and run a static code analysis!

## Help

:bulb: Run

```
$ make help
```

to display a list of available targets with corresponding descriptions.
@@ -1,8 +1,7 @@
This PR

* [x]
* [ ]
* [ ]
* [x]
* [ ]

Follows #.
Related to #.
@@ -1,7 +1,11 @@
# https://github.com/probot/settings

branches:
- name: master
- name: "master"

# https://developer.github.com/v3/repos/branches/#remove-branch-protection
# https://developer.github.com/v3/repos/branches/#update-branch-protection

protection:
enforce_admins: false
required_pull_request_reviews:
@@ -10,7 +14,7 @@ branches:
required_approving_review_count: 1
required_status_checks:
contexts:
- "Coding Standards (7.2, locked)"
- "Coding Standards (7.4, locked)"
- "Dependency Analysis (7.4, locked)"
- "Static Code Analysis (7.4, locked)"
- "Tests on Chrome stable with chromedriver (7.2, lowest)"
@@ -34,11 +38,7 @@ branches:
- "codecov/patch"
- "codecov/project"
strict: false
restrictions:
apps:
- "dependabot-preview"
teams: []
users: []
restrictions: null

# https://developer.github.com/v3/issues/labels/#create-a-label
# https://developer.github.com/v3/issues/labels/#update-a-label
@@ -74,7 +74,9 @@ repository:
allow_merge_commit: true
allow_rebase_merge: false
allow_squash_merge: false
default_branch: master
archived: false
default_branch: "master"
delete_branch_on_merge: true
description: ""
has_downloads: true
has_issues: true

0 comments on commit 06042bb

Please sign in to comment.
You can’t perform that action at this time.