Skip to content

Commit 96f87a1

Browse files
committed
Added config file headers
1 parent 29cc8eb commit 96f87a1

File tree

7 files changed

+45
-0
lines changed

7 files changed

+45
-0
lines changed

config/drupal/php/.phpcs.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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>

config/drupal/twig/.twig-cs-fixer.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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();

config/markdown/.markdownlint.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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,

config/markdown/.markdownlintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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
25
vendor/
36
node_modules/

config/symfony/php/.php-cs-fixer.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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();

config/symfony/twig/.twig-cs-fixer.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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();

task/Taskfile.github-actions.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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?"

0 commit comments

Comments
 (0)