Skip to content

Commit

Permalink
fix: Allow checking Markdown document for other properties
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Dec 20, 2021
1 parent cb48389 commit 0539663
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
31 changes: 20 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file is based on The Common EditorConfig Template project
# https://github.com/Lin-Buo-Ren/the-common-editorconfig-template
#
# Copyright 2020 林博仁(Buo-ren, Lin) <[email protected]>
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]>
# SPDX-License-Identifier: WTFPL

# This is the top-most EditorConfig file
Expand All @@ -19,23 +19,32 @@ charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

# Avoid git patch fail to apply due to stripped unmodified lines that contains only spaces
[/.git/**]
trim_trailing_whitespace = false

# Makefiles for *Make
[{Makefile,*.mk}]
indent_style = tab

# Markdown documents
[*.{md,mkd,mkdn,markdown}]
# Trailing whitespace means manual linebreaks
trim_trailing_whitespace = false

# YAML documents
[*.{yml,yaml,yamllint}]
indent_size = 2

# Avoid git patch fail to apply due to stripped unmodified lines that contains only spaces
[/.git/**]
trim_trailing_whitespace = false
# Don't check indentation size as it can't handle intentional indentation
# in list item after hardbreaks to align with the node markers, use
# Markdownlint to check instead
indent_size = unset

# Vagrant configuration file
[Vagrantfile]
indent_size = 2

# Makefiles for *Make
[{Makefile,*.mk}]
indent_style = tab
# yamllint configuration files
[.yamllint]
indent_size = 2

# YAML documents
[*.{yml,yaml}]
indent_size = 2
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@ repos:
alias: ec
exclude: |
(?ix)^(
LICENSES/.*|
.*\.md
LICENSES/.*
)$

0 comments on commit 0539663

Please sign in to comment.