-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
196 lines (184 loc) · 6.71 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
########################################################################
# .editorconfig file defining global values.
#
# See https://editorconfig.org/#download for whether your editor supports
# EditorConfig directly or does so using a plugin.
########################################################################
########################################################################
# EditorConfig files use an INI format that is compatible with the format used
# by Python ConfigParser Library, but [ and ] are allowed in the section names.
#
# The section names are filepath globs (case sensitive), similar to the format
# accepted by gitignore.
#
# Only forward slashes (/, not backslashes) are used as path separators.
#
# Octothorpes (#) or semicolons (;) are used for comments. Comments should go
# on their own lines.
#
# EditorConfig files should be UTF-8 encoded, with either CRLF or LF line
# separators.
#
# EditorConfig files are read top to bottom and the most recent rules found
# take precedence.
########################################################################
########################################################################
# For any property, a value of unset is to remove the effect of that property,
# even if it has been set before. For example, add indent_size = unset to
# undefine indent_size property (and use editor default).
#
# Currently all properties and values are case-insensitive. They are lowercased
# when parsed. Generally, if a property is not specified, the editor settings
# will be used, i.e. EditorConfig takes no effect on that part. For any
# property, a value of unset is to remove the effect of that property, even if
# it has been set before. For example, add indent_size = unset to undefine
# indent_size property (and use editor default).
#
# It is acceptable and often preferred to leave certain EditorConfig properties
# unspecified. For example, tab_width need not be specified unless it differs
# from the value of indent_size. Also, when indent_style is set to tab, it may
# be desirable to leave indent_size unspecified so readers may view the file
# using their preferred indentation width. Additionally, if a property is not
# standardized in your project (end_of_line for example), it may be best to
# leave it blank.
########################################################################
########################################################################
# Wildcard Patterns
# Special characters recognized in section names for wildcard matching:
#
# * Matches any string of characters, except path separators (/)
# ** Matches any string of characters
# ? Matches any single character
# [name] Matches any single character in name
# [!name] Matches any single character not in name
# {s1,s2,s3} Matches any of the strings given (separated by commas)
# (Available since EditorConfig Core 0.11.0)
# {num1..num2} Matches any integer numbers between num1 and num2, where num1
# and num2 can be either positive or negative
#
# Special characters can be escaped with a backslash so they won't be
# interpreted as wildcard patterns.
########################################################################
########################################################################
# Stop processing of .editorconfig files.
#
# Special property that should be specified at the top of the file outside of
# any sections. Set to true to stop .editorconfig files search on current file.
#
# Possible Values
# true
# false
########################################################################
root = true
########################################################################
# File character encoding
#
# Possible Values
# latin1
# utf-8
# utf-16be
# utf-16le
# utf-8-bom
########################################################################
[*]
# charset = utf-8
########################################################################
# Line ending file format (Unix, DOS, Mac)
#
# Supported By
# all plugins
#
# Possible Values
# lf
# crlf
# cr
#
# NOTE: if you want to use native line endings between different operating
# systems it is better not to set this option and leave that task to the VCS!
# In the future we might add a value like native for this scenario.
########################################################################
[*]
# end_of_line = lf
########################################################################
# Indentation Size (in single-spaced characters)
#
# Supported By
# all plugins
#
# Possible Values
# an integer
# tab
#
# If indent_size equals to tab, the indent_size will be set to the tab size,
# which should be tab_width if tab_width is specified, or the tab size set by
# editor if tab_width is not specified.
#
########################################################################
# Use 'tab' for everything, control the width using 'tab_width' and
# spaces vs. tab using 'indent_style'.
########################################################################
[*]
indent_size = tab
########################################################################
# Indentation Style
#
# Supported By
# all plugins
#
# Possible Values:
# tab
# space
#
########################################################################
[*]
indent_style = tab
[*.{md,pl,pm,py,yaml,yml}]
indent_style = space
########################################################################
# Denotes whether file should end with a newline
#
# Possible Values
# true
# false
########################################################################
[*]
insert_final_newline = true
########################################################################
# Forces hard line wrapping after the amount of characters specified. off to
# turn off this feature (use the editor settings).
#
# Supported By
# Emacs
# Vim
# Atom
# ReSharper and Rider
# AppCode, IntelliJ IDEA, PhpStorm, PyCharm, RubyMine, and WebStorm
#
# Possible Values
# positive integers
# off
########################################################################
[*]
# max_line_length = 79
########################################################################
# Width of a single tabstop character
#
# Supported By
# all plugins
#
# Possible Values
# a positive integer (defaults indent_size when indent_size is a number)
########################################################################
[*]
tab_width = 8
[*.{pl,pm,py,yaml,yml}]
tab_width = 2
########################################################################
# Denotes whether whitespace is allowed at the end of lines
#
# Possible Values
# true
# false
########################################################################
[*]
trim_trailing_whitespace = true