Skip to content

Commit

Permalink
some fixes for docker developer tools (openemr#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller authored Mar 28, 2020
1 parent c2ae45c commit dd42c8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ You will need a "local" version of OpenEMR to make changes to the source code. T
```
- To create a report of PSR2 code styling issues (this takes several minutes):
```sh
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=512M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcs -n --extensions=php,inc --standard=ci/phpcs.xml --report=full .'
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=640M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcs -n --extensions=php,inc --standard=ci/phpcs.xml --report=full .'
```
- To fix PSR2 code styling issues (this takes several minutes):
```sh
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=512M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcbf -n --extensions=php,inc --standard=ci/phpcs.xml .'
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'cd openemr; php -d memory_limit=640M /root/.composer/vendor/squizlabs/php_codesniffer/bin/phpcbf -n --extensions=php,inc --standard=ci/phpcs.xml .'
```
- To check PHP parsing errors (this takes several minutes):
```sh
Expand Down
2 changes: 2 additions & 0 deletions ci/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
</properties>
</rule>

<exclude-pattern>*/sites/default/sqlconf.php</exclude-pattern>
<exclude-pattern>*/sites/default/documents/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/public/assets/*</exclude-pattern>
Expand Down

0 comments on commit dd42c8c

Please sign in to comment.