File tree Expand file tree Collapse file tree 7 files changed +45
-0
lines changed
Expand file tree Collapse file tree 7 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ <!-- This file is copied from config/drupal/php/.phpcs.xml.dist in https://github.com/itk-dev/devops_itkdev-docker. -->
2+ <!-- Feel free to edit the file, but consider making a pull request if you find a general issue with the file. -->
3+
14<?xml version =" 1.0" ?>
25<ruleset name =" PHP_CodeSniffer" >
36 <description >The coding standard.</description >
Original file line number Diff line number Diff line change 11<?php
2+ // This file is copied from config/drupal/twig/.twig-cs-fixer.dist.php in https://github.com/itk-dev/devops_itkdev-docker.
3+ // Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
4+
25// https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md#configuration-file
36
47$ finder = new TwigCsFixer \File \Finder ();
Original file line number Diff line number Diff line change 1+ // This file is copied from config/markdown/.markdownlint.jsonc in https://github.com/itk-dev/devops_itkdev-docker.
2+ // Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
3+
14// markdownlint-cli configuration file (cf. https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration)
25{
36 "default" : true ,
Original file line number Diff line number Diff line change 1+ # This file is copied from config/markdown/.markdownlintignore in https://github.com/itk-dev/devops_itkdev-docker.
2+ # Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
3+
14# https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#ignoring-files
25vendor /
36node_modules /
Original file line number Diff line number Diff line change 11<?php
2+ // This file is copied from config/symfony/php/.php-cs-fixer.dist.php in https://github.com/itk-dev/devops_itkdev-docker.
3+ // Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
4+
25// https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst
36
47$ finder = new PhpCsFixer \Finder ();
Original file line number Diff line number Diff line change 11<?php
2+ // This file is copied from config/symfony/twig/.twig-cs-fixer.dist.php in https://github.com/itk-dev/devops_itkdev-docker.
3+ // Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
4+
25// https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md#configuration-file
36
47$ finder = new TwigCsFixer \File \Finder ();
Original file line number Diff line number Diff line change @@ -60,6 +60,33 @@ tasks:
6060 mv "$f.tmp" "$f"
6161 done
6262
63+ config-headers:update :
64+ prompt : " Updating headers may break things, so check result afterwards. Really update headers?"
65+ desc : " Update headers in tool config"
66+ cmds :
67+ - ' echo TODO: implement {{.TASK}}'
68+ # - |
69+ # for f in $(find config -type f); do
70+ # echo "$f"
71+ # # # If file starts with `# ` …
72+ # # if [[ $(head --lines=1 "$f") =~ "^# " ]]; then
73+ # # # … replace the header.
74+ # # # This is done by deleting all lines from the top of the file to a blank line.
75+ # # docker run --rm --volume=$PWD:/app --user ${COMPOSE_USER:-deploy} itkdev/php8.4-fpm:latest sed -i '1,/^$/d' "$f"
76+ # # fi
77+
78+ # # Write header and file into temporary file.
79+ # (
80+ # echo "# This file is copied from $f in https://github.com/itk-dev/devops_itkdev-docker."
81+ # echo "#"
82+ # echo "# Feel free to edit the file, but consider making a pull request if you find a general issue with the file."
83+ # echo ""
84+ # cat "$f"
85+ # ) > "$f.tmp"
86+ # # Replace original file with temporary file.
87+ # mv "$f.tmp" "$f"
88+ # done
89+
6390 link :
6491 desc : " Set up symlinks"
6592 prompt : " Reset all symlinks?"
You can’t perform that action at this time.
0 commit comments