2016-07-06 11:20:14 +00:00
|
|
|
---
|
2018-01-06 12:56:03 +00:00
|
|
|
version: "2"
|
|
|
|
checks:
|
|
|
|
file-lines:
|
|
|
|
config:
|
|
|
|
threshold: 2000
|
|
|
|
plugins:
|
2016-07-06 11:20:14 +00:00
|
|
|
csslint:
|
|
|
|
enabled: true
|
|
|
|
duplication:
|
|
|
|
enabled: true
|
|
|
|
config:
|
|
|
|
languages:
|
|
|
|
- javascript
|
|
|
|
- php
|
|
|
|
eslint:
|
|
|
|
enabled: true
|
|
|
|
fixme:
|
|
|
|
enabled: true
|
2018-01-06 07:06:09 +00:00
|
|
|
nodesecurity:
|
|
|
|
enabled: true
|
2016-07-06 11:20:14 +00:00
|
|
|
phpmd:
|
|
|
|
enabled: true
|
2016-07-06 11:43:16 +00:00
|
|
|
checks:
|
2016-07-06 11:57:35 +00:00
|
|
|
Controversial/CamelCaseClassName:
|
|
|
|
enabled: false
|
|
|
|
Controversial/CamelCaseMethodName:
|
|
|
|
enabled: false
|
2016-07-06 11:43:16 +00:00
|
|
|
Controversial/CamelCasePropertyName:
|
|
|
|
enabled: false
|
2016-07-06 11:57:35 +00:00
|
|
|
Controversial/CamelCaseVariableName:
|
|
|
|
enabled: false
|
2016-07-06 11:43:16 +00:00
|
|
|
Controversial/Superglobals:
|
|
|
|
enabled: false
|
|
|
|
CleanCode/ElseExpression:
|
|
|
|
enabled: false
|
|
|
|
CleanCode/StaticAccess:
|
|
|
|
enabled: false
|
2018-01-06 12:56:03 +00:00
|
|
|
phpcodesniffer:
|
|
|
|
enabled: true
|
|
|
|
config:
|
2018-01-06 13:23:08 +00:00
|
|
|
standard: "PSR1,PSR2,PHPCS,Zend"
|
2018-01-06 12:56:03 +00:00
|
|
|
sonar-php:
|
|
|
|
enabled: true
|
|
|
|
config:
|
|
|
|
tests_patterns:
|
|
|
|
- tst/**
|
|
|
|
exclude_patterns:
|
|
|
|
- "cfg/"
|
|
|
|
- "css/"
|
|
|
|
- "!css/privatebin.css"
|
|
|
|
- "!css/noscript.css"
|
|
|
|
- "!css/bootstrap/privatebin.css"
|
|
|
|
- "js/"
|
|
|
|
- "!js/privatebin.js"
|
|
|
|
- "!js/common.js"
|
|
|
|
- "!js/test/"
|
|
|
|
- "vendor/"
|
|
|
|
|