mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
phpcs instructions only searched one level deep
This commit is contained in:
@@ -22,7 +22,7 @@ script:
|
|||||||
- if [[ $TEST_SUITE == "monaco" ]]; then ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi
|
- if [[ $TEST_SUITE == "monaco" ]]; then ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi
|
||||||
- cd $TRAVIS_BUILD_DIR/test/php
|
- cd $TRAVIS_BUILD_DIR/test/php
|
||||||
- if [[ $TEST_SUITE == "tests" ]]; then phpunit ./ ; fi
|
- if [[ $TEST_SUITE == "tests" ]]; then phpunit ./ ; fi
|
||||||
- if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 */**.php ; fi
|
- if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 . ; fi
|
||||||
- cd $TRAVIS_BUILD_DIR/test/bdd
|
- cd $TRAVIS_BUILD_DIR/test/bdd
|
||||||
- # behave --format=progress3 api
|
- # behave --format=progress3 api
|
||||||
- if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 db ; fi
|
- if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 db ; fi
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ are in process of consolodating the style. The following rules apply:
|
|||||||
The coding style is enforced with PHPCS and can be tested with:
|
The coding style is enforced with PHPCS and can be tested with:
|
||||||
|
|
||||||
```
|
```
|
||||||
phpcs --report-width=120 --colors */**.php
|
phpcs --report-width=120 --colors .
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|||||||
@@ -8,6 +8,12 @@
|
|||||||
<!-- https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/PSR2/ruleset.xml -->
|
<!-- https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/PSR2/ruleset.xml -->
|
||||||
<rule ref="PSR2"/>
|
<rule ref="PSR2"/>
|
||||||
|
|
||||||
|
<exclude-pattern>./lib/template/*html*</exclude-pattern>
|
||||||
|
<exclude-pattern>./lib/template/includes/</exclude-pattern>
|
||||||
|
<exclude-pattern>./module/</exclude-pattern>
|
||||||
|
<exclude-pattern>./website/css</exclude-pattern>
|
||||||
|
<exclude-pattern>./website/js</exclude-pattern>
|
||||||
|
|
||||||
<rule ref="Generic.Files.LineLength">
|
<rule ref="Generic.Files.LineLength">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="lineLimit" value="194"/>
|
<property name="lineLimit" value="194"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user