Skip to content

Added general .editorconfig file #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions config/drupal-module/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is copied from config/drupal-module/.editorconfig in https://github.com/itk-dev/devops_itkdev-docker.
# Feel free to edit the file, but consider making a pull request if you find a general issue with the file.

# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = LF
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,css,scss}]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2

[config/sync/**/*.{yml,yaml}]
indent_size = 2

[*.{php,install,module,theme}]
indent_size = 2
24 changes: 24 additions & 0 deletions config/drupal/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is copied from config/drupal/.editorconfig in https://github.com/itk-dev/devops_itkdev-docker.
# Feel free to edit the file, but consider making a pull request if you find a general issue with the file.

# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = LF
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,css,scss}]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2

[web/*/custom/**/*.{php,install,module,theme}]
indent_size = 2
24 changes: 24 additions & 0 deletions config/symfony/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is copied from config/symfony/.editorconfig in https://github.com/itk-dev/devops_itkdev-docker.
# Feel free to edit the file, but consider making a pull request if you find a general issue with the file.

# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = LF
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,css,scss}]
indent_size = 2

[*.{yml,yaml}]
indent_size = 2

[config/**/*.{yml,yaml}]
indent_size = 4
15 changes: 15 additions & 0 deletions task/scripts/github-actions-link
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ for template_dir in templates/*; do
exit 1
fi

# General config files.
# We first check for files on the config folder and then we check for project
# specific files (in effect letting projects override the general config
# files).
for config_dir in config "config/$project_type"; do
echo "$config_dir"
# Some config files are hidden
GLOBIGNORE=".:.."
for config_file in "$config_dir"/*; do
if [ -f "$config_file" ]; then
ln -sf "../../$config_file" "$template_dir/"
fi
done
done

for f in $(find github/workflows/ -name '*.yaml' | sort); do
source_file_name=''
# Note: / is NOT a regex delimiter here, but an actual /, i.e. a directory separator.
Expand Down
1 change: 1 addition & 0 deletions templates/drupal-10/.editorconfig
1 change: 1 addition & 0 deletions templates/drupal-11/.editorconfig
1 change: 1 addition & 0 deletions templates/drupal-7/.editorconfig
1 change: 1 addition & 0 deletions templates/drupal-8/.editorconfig
1 change: 1 addition & 0 deletions templates/drupal-9/.editorconfig
1 change: 1 addition & 0 deletions templates/drupal-module/.editorconfig
1 change: 1 addition & 0 deletions templates/symfony-3/.editorconfig
1 change: 1 addition & 0 deletions templates/symfony-4/.editorconfig
1 change: 1 addition & 0 deletions templates/symfony-6/.editorconfig