-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.editorconfig
More file actions
70 lines (62 loc) · 2.89 KB
/
Copy path.editorconfig
File metadata and controls
70 lines (62 loc) · 2.89 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
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
# EditorConfig for Codout.Framework
# https://editorconfig.org
#
# Repository convention: all text files are UTF-8 with LF line endings and a
# trailing newline. Honored by Visual Studio, VS Code, JetBrains Rider, and
# any editor with EditorConfig support.
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
# Windows-only batch/cmd scripts must stay CRLF.
[*.{cmd,bat}]
end_of_line = crlf
# ---------------------------------------------------------------------------
# C#: indentação e analisadores .NET (ROADMAP Fase 5)
# ---------------------------------------------------------------------------
[*.cs]
indent_style = space
indent_size = 4
# Regras de design/perf/estilo rebaixadas para suggestion: corrigi-las exige
# mudanças de código que ficam para PRs incrementais dedicados (visíveis na
# IDE, sem quebrar o build). Subir a severidade conforme forem resolvidas.
dotnet_diagnostic.CA1304.severity = suggestion
dotnet_diagnostic.CA1305.severity = suggestion
dotnet_diagnostic.CA1310.severity = suggestion
dotnet_diagnostic.CA1311.severity = suggestion
dotnet_diagnostic.CA1707.severity = suggestion
dotnet_diagnostic.CA1822.severity = suggestion
dotnet_diagnostic.CA1845.severity = suggestion
dotnet_diagnostic.CA1848.severity = suggestion
dotnet_diagnostic.CA1051.severity = suggestion
dotnet_diagnostic.CA2201.severity = suggestion
# Criptografia fraca (MD5/SHA1/DES): usada apenas nos utilitários legados já
# marcados [Obsolete] em Codout.Framework.Common (Crypto). Não introduzir
# novos usos; remoção planejada para o próximo major.
dotnet_diagnostic.CA5350.severity = suggestion
dotnet_diagnostic.CA5351.severity = suggestion
[tests/**.cs]
# Projetos de teste: convenções de naming xUnit (underscores) e padrões de
# teste tornam várias regras CA inadequadas.
dotnet_analyzer_diagnostic.category-Design.severity = none
dotnet_analyzer_diagnostic.category-Naming.severity = none
dotnet_analyzer_diagnostic.category-Performance.severity = none
dotnet_analyzer_diagnostic.category-Usage.severity = suggestion
dotnet_analyzer_diagnostic.category-Globalization.severity = none
dotnet_analyzer_diagnostic.category-Security.severity = none
dotnet_analyzer_diagnostic.category-Reliability.severity = suggestion
[*.cs]
# Naming de API pública (renomear seria breaking change) e micro-otimizações:
# suggestion até serem tratados em PRs dedicados (idealmente no próximo major).
dotnet_diagnostic.CA1716.severity = suggestion
dotnet_diagnostic.CA1720.severity = suggestion
dotnet_diagnostic.CA1200.severity = suggestion
dotnet_diagnostic.CA1309.severity = suggestion
dotnet_diagnostic.CA1507.severity = suggestion
dotnet_diagnostic.CA1850.severity = suggestion
dotnet_diagnostic.CA1859.severity = suggestion
dotnet_diagnostic.CA1861.severity = suggestion
dotnet_diagnostic.CA1862.severity = suggestion
dotnet_diagnostic.CA1873.severity = suggestion
dotnet_diagnostic.CA2208.severity = suggestion