This commit is contained in:
		
							
								
								
									
										25
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,25 +0,0 @@
 | 
			
		||||
analyze: analyze-yaml analyze-phpmd analyze-phpstan analyze-psalm analyze-phpcs
 | 
			
		||||
 | 
			
		||||
analyze-yaml:
 | 
			
		||||
	vendor/bin/yaml-lint *.yml
 | 
			
		||||
analyze-phpmd:
 | 
			
		||||
	vendor/bin/phpmd src,tests text  cleancode,codesize,controversial,design,naming,unusedcode
 | 
			
		||||
analyze-phpstan:
 | 
			
		||||
	vendor/bin/phpstan analyze --level=8  --error-format=raw src/ backup tests
 | 
			
		||||
analyze-psalm:
 | 
			
		||||
	vendor/bin/psalm --no-cache
 | 
			
		||||
analyze-phpcs:
 | 
			
		||||
	vendor/bin/phpcs src backup tests --report=emacs  --standard=PSR12
 | 
			
		||||
 | 
			
		||||
docs:
 | 
			
		||||
	./phpDocumentor.phar --setting=graphs.enabled=true
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
	php composer.phar install --no-dev
 | 
			
		||||
install-dev:
 | 
			
		||||
	php composer.phar install
 | 
			
		||||
test:
 | 
			
		||||
	vendor/bin/phpunit tests --display-warnings
 | 
			
		||||
test-coverage:
 | 
			
		||||
	vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --path-coverage --testdox-html output/test.html  
 | 
			
		||||
	
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "furyfire/backup",
 | 
			
		||||
    "name": "furyfire/backupscript",
 | 
			
		||||
    "description": "Wrapper for Rclone based backup",
 | 
			
		||||
    "homepage": "https://jcktrue.dk",
 | 
			
		||||
    "version": "0.1.0",
 | 
			
		||||
@@ -23,5 +23,22 @@
 | 
			
		||||
        "vimeo/psalm": "^5.12",
 | 
			
		||||
        "phpmd/phpmd": "^2.13",
 | 
			
		||||
        "phpunit/phpunit": "^10.2"
 | 
			
		||||
    },
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "test":           "vendor/bin/phpunit tests --display-warnings",
 | 
			
		||||
        "test-coverage":  "vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --path-coverage --testdox-html output/test.html  ",
 | 
			
		||||
        "docs":           "./phpDocumentor.phar --setting=graphs.enabled=true",
 | 
			
		||||
        "analyze": [
 | 
			
		||||
            "@analyze-yaml",
 | 
			
		||||
            "@analyze-phpmd",
 | 
			
		||||
            "@analyze-phpstan",
 | 
			
		||||
            "@analyze-psalm",
 | 
			
		||||
            "@analyze-phpcs"
 | 
			
		||||
        ],
 | 
			
		||||
        "analyze-yaml":   "vendor/bin/yaml-lint *.yml .*.yml *.json",
 | 
			
		||||
        "analyze-phpmd":  "vendor/bin/phpmd src,tests text  cleancode,codesize,controversial,design,naming,unusedcode",
 | 
			
		||||
        "analyze-phpstan":"vendor/bin/phpstan analyze --level=8  --error-format=raw src/ backup tests",
 | 
			
		||||
        "analyze-psalm":  "vendor/bin/psalm --no-cache",
 | 
			
		||||
        "analyze-phpcs":  "vendor/bin/phpcs src backup tests --report=emacs  --standard=PSR12"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user