Files
QuanTAlib/.editorconfig
T
Miha Kralj e0e6396acb fix: convert scanner.sh to LF line endings and enforce for all shell scripts
- Convert .github/scanner.sh from CRLF to LF line endings
- Add .gitattributes to enforce LF for *.sh files
- Update .editorconfig with explicit shell script settings
- Prevents line ending issues on Linux/WSL execution
2025-12-13 21:49:57 -08:00

34 lines
1.0 KiB
INI

# EditorConfig for QuanTAlib
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.cs]
# Suppress SonarQube S3776 - Cognitive Complexity
# High-performance SIMD code intentionally has complex control flow
dotnet_diagnostic.S3776.severity = none
# Suppress SonarQube S1244 - Floating point equality
# Intentional for exact struct comparison and zero checks in high-performance code
dotnet_diagnostic.S1244.severity = none
#### C# Coding Conventions ####
# "var" preferences
# Prefer explicit types for built-in types (e.g. int, double, string) - reduces noise in math-heavy code
csharp_style_var_for_built_in_types = false:silent
# Prefer var when the type is already mentioned on the right side (e.g. new List<int>())
csharp_style_var_when_type_is_apparent = true:suggestion
# Prefer explicit types in other cases to improve readability of math formulas
csharp_style_var_elsewhere = false:silent
# Shell scripts
[*.sh]
end_of_line = lf
indent_style = space
indent_size = 2