-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.editorconfig
More file actions
38 lines (34 loc) · 1.34 KB
/
Copy path.editorconfig
File metadata and controls
38 lines (34 loc) · 1.34 KB
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
# EditorConfig - https://editorconfig.org
# This file enforces consistent coding styles across the NMSE codebase.
root = true
# Default settings for all files
[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# C# files
[*.cs]
# --- Locale safety (Roslyn analyzers) -------------------------------------
#
# CA1305: Specify IFormatProvider
# Every call to int.ToString(), DateTime.ToString(string),
# double.TryParse(), string.Format(), Convert.ToXxx() etc. MUST specify
# an explicit IFormatProvider (usually CultureInfo.InvariantCulture for
# data paths, or CultureInfo.CurrentCulture for display-only paths).
#
# CA1310: Specify StringComparison for correctness
# String comparison calls must specify a StringComparison to make
# culture-sensitivity explicit.
#
# These are set to ERROR so the build breaks if a contributor introduces a
# culture-sensitive call without an explicit provider. All existing call
# sites were fixed when these rules were introduced.
#
# This is a regression guard to mitigate future bug report friction.
# Roz combined with test outputs allows weaponised compliance outputs.
# --------------------------------------------------------------------------
dotnet_diagnostic.CA1305.severity = error
dotnet_diagnostic.CA1310.severity = error