Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Nov 29, 2020
1 parent 1346f6a commit 5f937c7
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions EditorConfig Template.editorconfig
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
# EditorConfig is awesome
# http://EditorConfig.org
#
# This file is based on The Common EditorConfig Template project
# https://github.com/Lin-Buo-Ren/the-common-editorconfig-template
# Public Domain
## Indicate that is the top-most EditorConfig file to search for ##
# Copyright 2020 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
# SPDX-License-Identifier: WTFPL

# This is the top-most EditorConfig file
root = true

## Common setting for all files not specified ##
# Common settings
[*]
# The character set of the file
charset = utf-8

# The end of line(EOL) sequence of the file
end_of_line = lf

# Whether to ensure there's always a single end of line sequence at the end of the file for compatibility of some utilities
insert_final_newline = true

# Determine the actual(Space)/visual(Tab) width of one indentation level
indent_size = 4

# Determine the default indentation character sequence
# tab: 1 tab per indentation level
# space: {indent_size} per indentation level
indent_style = space

# Whether to trim out the (unnecessary) trailing whitespace(s) of the line
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

## Markdown specific settings ##
# Markdown documents
[*.{md,mkd,mkdn,markdown}]
# Trailing whitespace means manual linebreaks in Markdown thus is not trimmable
# Trailing whitespace means manual linebreaks
trim_trailing_whitespace = false

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

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

# Vagrant configuration file
[Vagrantfile]
indent_size = 2

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

# Avoid git patch fail to apply due to the stripped unmodified lines that contains only spaces, which also matches as "trailing spaces"
[.git/**]
trim_trailing_whitespace = false

0 comments on commit 5f937c7

Please sign in to comment.