Skip to content

Commit

Permalink
add cpsell project words for Gitlab-CI
Browse files Browse the repository at this point in the history
WengerK committed Apr 25, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 4c994c9 commit a1ce6f9
Showing 3 changed files with 50 additions and 13 deletions.
35 changes: 35 additions & 0 deletions .cspell-project-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Antistatique
antistatique
Bambo
cleancode
codesize
Colect
Cyclomatic
embeed
entites
entitiy
filtred
googlemap
happend
inexisting
interesed
invalide
libbz
passowrd
phpcf
PHPCPD
phpcpd
phpdd
reseting
rulesets
setted
Temaplte
Unexisting
unexisting
unusedcode
vals
wapmorgan
wengerk
Whispere
worflow

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- add cpsell project words for Gitlab-CI

## [4.0.1] - 2024-03-01
### Changed
26 changes: 13 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -29,28 +29,28 @@ on your environment:
* drush
* Latest dev release of Drupal 8.x/9.x/10.x/11.x.
* docker
* docker-compose
* docker compose

### Project bootstrap

Once run, you will be able to access to your fresh installed Drupal on `localhost::8888`.

docker-compose build --pull --build-arg BASE_IMAGE_TAG=10.1 drupal
docker compose build --pull --build-arg BASE_IMAGE_TAG=10.1 drupal
(get a coffee, this will take some time...)
docker-compose up --build -d drupal
docker-compose exec -u www-data drupal drush site-install standard --db-url="mysql://drupal:drupal@db/drupal" --site-name=Example -y
docker compose up --build -d drupal
docker compose exec -u www-data drupal drush site-install standard --db-url="mysql://drupal:drupal@db/drupal" --site-name=Example -y

# You may be interesed by reseting the admin passowrd of your Docker and install the module using those cmd.
docker-compose exec drupal drush user:password admin admin
docker-compose exec drupal drush en template_whisperer
docker compose exec drupal drush user:password admin admin
docker compose exec drupal drush en template_whisperer

## 🏆 Tests

We use the [Docker for Drupal Contrib images](https://hub.docker.com/r/wengerk/drupal-for-contrib) to run testing on our project.

Run testing by stopping at first failure using the following command:

docker-compose exec -u www-data drupal phpunit --group=template_whisperer --no-coverage --stop-on-failure --configuration=/var/www/html/phpunit.xml
docker compose exec -u www-data drupal phpunit --group=template_whisperer --no-coverage --stop-on-failure --configuration=/var/www/html/phpunit.xml

## 🚔 Check Drupal coding standards & Drupal best practices

@@ -68,7 +68,7 @@ The following Analyzer will be downloaded & installed as PHAR:

./scripts/hooks/post-commit
# or run command on the container itself
docker-compose exec drupal bash
docker compose exec drupal bash

#### Running Code Sniffer Drupal & DrupalPractice

@@ -80,13 +80,13 @@ violations.
PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.

```
$ docker-compose exec drupal ./vendor/bin/phpcs ./web/modules/contrib/template_whisperer/
$ docker compose exec drupal ./vendor/bin/phpcs ./web/modules/contrib/template_whisperer/
```

Automatically fix coding standards

```
$ docker-compose exec drupal ./vendor/bin/phpcbf ./web/modules/contrib/template_whisperer/
$ docker compose exec drupal ./vendor/bin/phpcbf ./web/modules/contrib/template_whisperer/
```

#### Running PHP Mess Detector
@@ -96,7 +96,7 @@ https://github.com/phpmd/phpmd
Detect overcomplicated expressions & Unused parameters, methods, properties.

```
$ docker-compose exec drupal phpmd ./web/modules/contrib/template_whisperer/ text ./phpmd.xml \
$ docker compose exec drupal phpmd ./web/modules/contrib/template_whisperer/ text ./phpmd.xml \
--suffixes php,module,inc,install,test,profile,theme,css,info,txt --exclude *Test.php,*vendor/*
```

@@ -107,7 +107,7 @@ https://github.com/sebastianbergmann/phpcpd
`phpcpd` is a Copy/Paste Detector (CPD) for PHP code.

```
$ docker-compose exec drupal phpcpd ./web/modules/contrib/template_whisperer/src --suffix .php --suffix .module --suffix .inc --suffix .install --suffix .test --suffix .profile --suffix .theme --suffix .css --suffix .info --suffix .txt --exclude *.md --exclude *.info.yml --exclude tests --exclude vendor/
$ docker compose exec drupal phpcpd ./web/modules/contrib/template_whisperer/src --suffix .php --suffix .module --suffix .inc --suffix .install --suffix .test --suffix .profile --suffix .theme --suffix .css --suffix .info --suffix .txt --exclude *.md --exclude *.info.yml --exclude tests --exclude vendor/
```

#### Running PhpDeprecationDetector
@@ -117,7 +117,7 @@ https://github.com/wapmorgan/PhpDeprecationDetector
A scanner that checks compatibility of your code with PHP interpreter versions.

```
$ docker-compose exec drupal phpdd ./web/modules/contrib/template_whisperer/ \
$ docker compose exec drupal phpdd ./web/modules/contrib/template_whisperer/ \
--file-extensions php,module,inc,install,test,profile,theme,info --exclude vendor
```

0 comments on commit a1ce6f9

Please sign in to comment.