Skip to content
/ mcode Public

📺 PHP quality assurance for ModernTV projects.

License

Notifications You must be signed in to change notification settings

moderntv/mcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mCODE

📺 PHP quality assurance for ModernTV projects.

🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x


Usage

To install latest version of mcode/mcode use Composer.

composer require mcode/mcode

Documentation

Codesniffer

  1. Install this package.
  2. Create ruleset.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
  <rule ref="./vendor/mcode/mcode/src/codesniffer.xml"/>
</ruleset>
  1. Run codesniffer.
vendor/bin/phpcs --cache=var/codesniffer.dat --standard=ruleset.xml app

Phpstan

  1. Install this package.

  2. Create phpstan.neon file.

    includes:
    	- vendor/mcode/mcode/src/phpstan.neon
    	- phpstan-baseline.neon
    
    parameters:
    	level: 9
    	phpVersion: 80200
    
    	tmpDir: %currentWorkingDirectory%/temp/phpstan
    
    	fileExtensions:
    		- php
    		- phpt
    
    	paths:
    		- app

Development

This package is currently maintained by these authors.