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

Commit

Permalink
PHPStan Level 8
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Jan 29, 2020
1 parent 6da5470 commit da4fcea
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# PiggyBackpacks

## Contribution Guidelines

### Issues
If you are submitting an issue ticket, you must:
* Must be PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
* Issue must have not been reported previously
* Must be on latest version of PMMP & PiggyBackpacks
* Have a detailed title.
* If possible, provide crashdumps/errors related to the issue.

### Pull Requests
If you are submitting a pull request, you must:
* Use same formatting
* Changes must have been tested on PMMP.
* Unless it is a minor code modification, you must use an IDE.
* Have a detailed title.

<i>Last updated: January 29, 2020.</i>
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!-- DO NOT REMOVE THIS:
failing to complete the required fields will result in the issue being closed due to insufficient information.
-->
Please make sure your issue complies with these guidelines:
- * [ ] Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
- * [ ] Issue must have not been reported previously
- * [ ] Make sure you are on the latest version of PMMP & PiggyBackpacks
- * [ ] Have a detailed title.
- * [ ] If possible, provide crashdumps/errors related to the issue.

#### **General**
<!-- Briefly describe what is wrong. -->

#### **Version:**
<!-- Do /version PiggyBackpacks to check, do not input "latest". -->
- PiggyBackpacks:
<!-- Do /version to check, do not input "latest". -->
- PMMP:
<!-- The operating system your server is running on. -->
- OS:

#### **Steps to Reproduce the Issue**
<!-- How do you reproduce the issue? -->
1.

#### **Extra Information**
<!-- Anything else we should know? -->
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- DO NOT REMOVE THIS:
failing to complete the required fields will result in the issue being closed due to insufficient information.
-->
Please make sure your pull request complies with these guidelines:
- * [ ] Use same formatting
- * [ ] Changes must have been tested on PMMP.
- * [ ] Unless it is a minor code modification, you must use an IDE.
- * [ ] Have a detailed title.

#### **What does the PR change?**
<!--
Does your Pull Request:
- resolve a bug? If so, link the issue with the PR and add explain what caused the issue.
- enhance the plugin? If so, explain what this adds, including why it should be added.
-->

#### **Testing Environment**
<!-- PHP and OS version required, pmmp build link required. -->
- PHP:
- PMMP:
- OS:

#### **Extra Information**
<!-- Anything else we should know? -->
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PHPStan

on: [push, pull_request]

jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Create Vendor Directory
run: |
echo Making directory...
mkdir vendor
echo Directory made.
- name: wget virions, InvMenu
uses: wei/wget@v1
with:
args: -O vendor/InvMenu.phar https://poggit.pmmp.io/r/73860/InvMenu_dev-84.phar
- name: Run PHPStan
uses: nxtlvlsoftware/pmmp-phpstan-action@3
with:
phpstan-config: phpstan.neon.dist
13 changes: 13 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
parameters:
paths:
- /source/src
level: 8
autoload_files:
- phar:///pocketmine/PocketMine-MP.phar/vendor/autoload.php
autoload_directories:
- /source/src
- phar:///source/vendor/InvMenu.phar/src/
excludes_analyse:
- source/vendor
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false

0 comments on commit da4fcea

Please sign in to comment.