File tree Expand file tree Collapse file tree 3 files changed +46
-4
lines changed
Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change 22.idea
33.vscode
44* .iml
5- .phpunit.result.cache
5+ /.php_cs.cache
6+ /.phpunit.result.cache
67/vendor /
78/build /
8- composer.lock
9+ / composer.lock
Original file line number Diff line number Diff line change 1818 "source" : " https://github.com/code-lts/U2F-php-server"
1919 },
2020 "scripts" : {
21- "phpunit" : " ./vendor/bin/phpunit"
21+ "test" : " @php phpunit" ,
22+ "phpcs" : " @php phpcs" ,
23+ "phpcbf" : " @php phpcbf"
2224 },
2325 "require" : {
2426 "php" : " ^7.1 || ^8.0" ,
2527 "ext-openssl" :" *"
2628 },
2729 "require-dev" : {
28- "phpunit/phpunit" : " ^7 || ^8 || ^9"
30+ "phpunit/phpunit" : " ^7 || ^8 || ^9" ,
31+ "wdes/coding-standard" : " ^3.3"
2932 },
3033 "autoload" : {
3134 "psr-4" : { "CodeLts\\ U2F\\ U2FServer\\ " : [" src/" ] }
3538 },
3639 "replace" : {
3740 "samyoul/u2f-php-server" : " *"
41+ },
42+ "config" : {
43+ "allow-plugins" : {
44+ "dealerdirect/phpcodesniffer-composer-installer" : true
45+ }
3846 }
3947}
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <ruleset xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" vendor/squizlabs/php_codesniffer/phpcs.xsd" >
3+
4+ <!-- Show progress and sniff codes -->
5+ <arg value =" ps" />
6+ <!-- Cache file -->
7+ <arg name =" cache" value =" .php_cs.cache" />
8+ <!-- Enable colors -->
9+ <arg name =" colors" />
10+ <!-- Make sniff report relative -->
11+ <arg name =" basepath" value =" ." />
12+
13+ <file >.</file >
14+ <exclude-pattern >*/tmp/*</exclude-pattern >
15+ <exclude-pattern >*/vendor/*</exclude-pattern >
16+ <exclude-pattern >*/build/*</exclude-pattern >
17+ <rule ref =" Wdes" >
18+ <exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
19+ <exclude name =" Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
20+ </rule >
21+
22+ <rule ref =" Generic.CodeAnalysis.UselessOverridingMethod.Found" >
23+ <exclude-pattern >*/src/U2FException.php</exclude-pattern >
24+ </rule >
25+
26+ <rule ref =" Generic.Files.LineLength" >
27+ <properties >
28+ <property name =" lineLimit" value =" 140" />
29+ <property name =" absoluteLineLimit" value =" 140" />
30+ </properties >
31+ </rule >
32+
33+ </ruleset >
You can’t perform that action at this time.
0 commit comments