mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Add php_code_sniffer config file
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -5,6 +5,7 @@
 | 
			
		||||
!/.editorconfig
 | 
			
		||||
!/.scrutinizer.yml
 | 
			
		||||
!/.travis.yml
 | 
			
		||||
!/.php_cs
 | 
			
		||||
!/.github/
 | 
			
		||||
 | 
			
		||||
# Others #
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								.php_cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.php_cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
// PHP CS Fixer config file
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
$finder = Symfony\CS\Finder\DefaultFinder::create()
 | 
			
		||||
    ->exclude('html/includes/geshi')
 | 
			
		||||
    ->exclude('html/includes/jpgraph')
 | 
			
		||||
    ->exclude('html/includes/Slim')
 | 
			
		||||
    ->exclude('html/lib')
 | 
			
		||||
    ->exclude('lib')
 | 
			
		||||
    ->exclude('logs')
 | 
			
		||||
    ->exclude('mibs')
 | 
			
		||||
    ->exclude('rrd')
 | 
			
		||||
    ->in(__DIR__);
 | 
			
		||||
 | 
			
		||||
return Symfony\CS\Config\Config::create()
 | 
			
		||||
    ->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
 | 
			
		||||
    ->finder($finder);
 | 
			
		||||
		Reference in New Issue
	
	Block a user