From c4d0a00c18b66f5f554190855817712ab6400d90 Mon Sep 17 00:00:00 2001 From: Julien <120013023+albatrousse@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:23:42 +0200 Subject: [PATCH] docs: update the doc of makefile target with lint_perltidy (#8883) Co-authored-by: Alex Garel --- docker/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/README.md b/docker/README.md index 0076ea36677a9..d2f1241eeac2a 100644 --- a/docker/README.md +++ b/docker/README.md @@ -35,4 +35,10 @@ See also [targets to run tests](../docs/dev/how-to-write-and-run-tests.md#runnin | `make clean` | Clean up your dev environment: removes locally bound folders, run `hdown` and `prune`. | Run `make dev` to recreate a fresh dev env afterwards. | | `make import_sample_data` | Load sample data (~100 products) into the MongoDB database. | | | `make import_prod_data` | Load latest prod data (~2M products, 1.7GB) into the MongoDB database. | Takes up to 10m. Not recommended for dev setups ! | +| `make lint` | Indent and reformat your code[^lint] | + +[^lint]: If you are having permission issues with `make lint` try writing the following commands : +`export MSYS_NO_PATHCONV=1 +docker-compose run --rm --no-deps -u root backend chown www-data:www-data -R /opt/product-opener/` +then run again `make lint` and you should be good to go