Refactor code formatting and improve consistency across various test files

- Removed unnecessary blank lines in multiple test files to enhance readability.
- Ensured consistent spacing and formatting in the `Trima`, `Usf`, `Vidya`, `Wma`, and `Atr` test classes.
- Updated comments for clarity and consistency in the `Atr` and `Adl` classes.
- Adjusted project files for better structure and maintainability.
This commit is contained in:
Miha Kralj
2025-12-28 17:44:08 -08:00
parent ad6eebf812
commit 13d7c1215d
169 changed files with 10815 additions and 10814 deletions
+9 -9
View File
@@ -1,10 +1,10 @@
{
"recommendations": [
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp",
"ms-dotnettools.dotnet-interactive-vscode",
"bierner.markdown-mermaid",
"visualstudioexptteam.vscodeintellicode",
"SonarSource.sonarlint-vscode"
]
{
"recommendations": [
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp",
"ms-dotnettools.dotnet-interactive-vscode",
"bierner.markdown-mermaid",
"visualstudioexptteam.vscodeintellicode",
"SonarSource.sonarlint-vscode"
]
}
+33 -33
View File
@@ -1,33 +1,33 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Tests",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "dotnet",
"args": [
"test",
"${workspaceFolder}/QuanTAlib.sln",
"--no-build"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole",
"logging": {
"moduleLoad": false
}
},
{
"name": "Debug Library",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}",
"justMyCode": true,
"logging": {
"moduleLoad": false
}
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Tests",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "dotnet",
"args": [
"test",
"${workspaceFolder}/QuanTAlib.sln",
"--no-build"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole",
"logging": {
"moduleLoad": false
}
},
{
"name": "Debug Library",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}",
"justMyCode": true,
"logging": {
"moduleLoad": false
}
}
]
}
+203 -203
View File
@@ -1,203 +1,203 @@
{
// ???????????????????????????????????????????????????????????????????
// GitHub Copilot Settings for QuanTAlib Workspace
// Optimized for high-performance financial library development
// ???????????????????????????????????????????????????????????????????
// ?????????????????????????????????????????????????????????????????
// Copilot Core Settings
// ?????????????????????????????????????????????????????????????????
// Enable Copilot completions (suggestions appear automatically)
"github.copilot.editor.enableAutoCompletions": true,
// Enable Copilot for all file types
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
},
// Show inline suggestions
"editor.inlineSuggest.enabled": true,
// Always show the inline suggestion toolbar
"editor.inlineSuggest.showToolbar": "always",
// ?????????????????????????????????????????????????????????????????
// Copilot Chat Settings (Manual Review Required)
// ?????????????????????????????????????????????????????????????????
// DO NOT auto-apply chat edits - require manual review for quality control
"chat.editing.autoApply": "off",
// Confirm before removing edit requests
"chat.editing.confirmEditRequestRemoval": true,
// Show chat panel on the side
"chat.editor.wordWrap": "on",
// ?????????????????????????????????????????????????????????????????
// Editor Settings for Productivity
// ?????????????????????????????????????????????????????????????????
// Enable quick suggestions in all contexts
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// Show suggestions on trigger characters
"editor.suggestOnTriggerCharacters": true,
// Accept suggestion on commit character (like dot, parenthesis)
"editor.acceptSuggestionOnCommitCharacter": true,
// Faster suggestion appearance
"editor.quickSuggestionsDelay": 0,
// Show snippet suggestions with other suggestions
"editor.snippetSuggestions": "inline",
// Tab key behavior
"editor.tabCompletion": "on",
// ?????????????????????????????????????????????????????????????????
// C# Specific Settings
// ?????????????????????????????????????????????????????????????????
"[csharp]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
},
// ?????????????????????????????????????????????????????????????????
// Performance & Quality Control
// ?????????????????????????????????????????????????????????????????
// Save automatically (helps with Copilot context)
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
// Show whitespace (important for performance-critical code)
"editor.renderWhitespace": "boundary",
// Show inline parameter hints
"editor.inlayHints.enabled": "on",
// Highlight matching brackets
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
// ?????????????????????????????????????????????????????????????????
// Git Integration
// ?????????????????????????????????????????????????????????????????
// Auto-fetch git changes
"git.autofetch": true,
// Confirm before synchronizing
"git.confirmSync": false,
// Show inline blame
"git.decorations.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Terminal Settings - WSL Debian
// ?????????????????????????????????????????????????????????????????
"terminal.integrated.defaultProfile.windows": "Debian",
"terminal.integrated.profiles.windows": {
"Debian": {
"path": "C:\\Windows\\System32\\wsl.exe",
"args": ["-d", "Debian", "--", "bash", "-l"],
"icon": "terminal-linux"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
}
},
"terminal.integrated.shellIntegration.enabled": true,
"terminal.integrated.suggest.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Cline Settings - WSL Debian Bash
// ?????????????????????????????????????????????????????????????????
"cline.terminalShell.windows": "C:\\Windows\\System32\\wsl.exe",
"cline.terminalShellArgs.windows": ["-d", "Debian", "--", "bash", "-l"],
// ?????????????????????????????????????????????????????????????????
// File Exclusions (Reduce Noise)
// ?????????????????????????????????????????????????????????????????
"files.exclude": {
"**/bin": true,
"**/obj": true,
"**/.vs": true,
"**/node_modules": true,
"**/.git": false
},
"search.exclude": {
"**/bin": true,
"**/obj": true,
"**/node_modules": true,
"**/.vs": true,
"**/coverage": true
},
// ?????????????????????????????????????????????????????????????????
// .NET Specific Settings
// ?????????????????????????????????????????????????????????????????
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableRoslynAnalyzers": true,
"dotnet.backgroundAnalysis.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Testing Integration
// ?????????????????????????????????????????????????????????????????
"dotnet.defaultSolution": "QuanTAlib.sln",
"dotnet.testController.enabled": true,
"dotnet.unitTests.runSettingsPath": "coverage.runsettings",
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.server.useOmnisharp": false,
"sonarlint.connectedMode.project": {
"connectionId": "mihakralj-quantalib",
"projectKey": "mihakralj_QuanTAlib"
},
"coderabbit.agentType": "Cline",
"qodana.projectId": "KbxmN"
// Note: Native mode is configured in qodana.yaml with withinDocker: false
// ???????????????????????????????????????????????????????????????????
// Keyboard Shortcuts Reference
// ???????????????????????????????????????????????????????????????????
// Tab - Accept inline suggestion
// Ctrl+? - Accept next word
// Ctrl+Enter - Accept line
// Esc - Dismiss suggestion
// Alt+] - Next suggestion
// Alt+[ - Previous suggestion
// Ctrl+I - Open Copilot Chat
//
// Quality Control Reminders:
// ? Review all Copilot suggestions for optimization patterns
// ? Run tests after accepting: dotnet test
// ? Check performance impact with benchmarks
// ? Validate against reference implementations
}
{
// ???????????????????????????????????????????????????????????????????
// GitHub Copilot Settings for QuanTAlib Workspace
// Optimized for high-performance financial library development
// ???????????????????????????????????????????????????????????????????
// ?????????????????????????????????????????????????????????????????
// Copilot Core Settings
// ?????????????????????????????????????????????????????????????????
// Enable Copilot completions (suggestions appear automatically)
"github.copilot.editor.enableAutoCompletions": true,
// Enable Copilot for all file types
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
},
// Show inline suggestions
"editor.inlineSuggest.enabled": true,
// Always show the inline suggestion toolbar
"editor.inlineSuggest.showToolbar": "always",
// ?????????????????????????????????????????????????????????????????
// Copilot Chat Settings (Manual Review Required)
// ?????????????????????????????????????????????????????????????????
// DO NOT auto-apply chat edits - require manual review for quality control
"chat.editing.autoApply": "off",
// Confirm before removing edit requests
"chat.editing.confirmEditRequestRemoval": true,
// Show chat panel on the side
"chat.editor.wordWrap": "on",
// ?????????????????????????????????????????????????????????????????
// Editor Settings for Productivity
// ?????????????????????????????????????????????????????????????????
// Enable quick suggestions in all contexts
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// Show suggestions on trigger characters
"editor.suggestOnTriggerCharacters": true,
// Accept suggestion on commit character (like dot, parenthesis)
"editor.acceptSuggestionOnCommitCharacter": true,
// Faster suggestion appearance
"editor.quickSuggestionsDelay": 0,
// Show snippet suggestions with other suggestions
"editor.snippetSuggestions": "inline",
// Tab key behavior
"editor.tabCompletion": "on",
// ?????????????????????????????????????????????????????????????????
// C# Specific Settings
// ?????????????????????????????????????????????????????????????????
"[csharp]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
},
// ?????????????????????????????????????????????????????????????????
// Performance & Quality Control
// ?????????????????????????????????????????????????????????????????
// Save automatically (helps with Copilot context)
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
// Show whitespace (important for performance-critical code)
"editor.renderWhitespace": "boundary",
// Show inline parameter hints
"editor.inlayHints.enabled": "on",
// Highlight matching brackets
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
// ?????????????????????????????????????????????????????????????????
// Git Integration
// ?????????????????????????????????????????????????????????????????
// Auto-fetch git changes
"git.autofetch": true,
// Confirm before synchronizing
"git.confirmSync": false,
// Show inline blame
"git.decorations.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Terminal Settings - WSL Debian
// ?????????????????????????????????????????????????????????????????
"terminal.integrated.defaultProfile.windows": "Debian",
"terminal.integrated.profiles.windows": {
"Debian": {
"path": "C:\\Windows\\System32\\wsl.exe",
"args": ["-d", "Debian", "--", "bash", "-l"],
"icon": "terminal-linux"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
}
},
"terminal.integrated.shellIntegration.enabled": true,
"terminal.integrated.suggest.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Cline Settings - WSL Debian Bash
// ?????????????????????????????????????????????????????????????????
"cline.terminalShell.windows": "C:\\Windows\\System32\\wsl.exe",
"cline.terminalShellArgs.windows": ["-d", "Debian", "--", "bash", "-l"],
// ?????????????????????????????????????????????????????????????????
// File Exclusions (Reduce Noise)
// ?????????????????????????????????????????????????????????????????
"files.exclude": {
"**/bin": true,
"**/obj": true,
"**/.vs": true,
"**/node_modules": true,
"**/.git": false
},
"search.exclude": {
"**/bin": true,
"**/obj": true,
"**/node_modules": true,
"**/.vs": true,
"**/coverage": true
},
// ?????????????????????????????????????????????????????????????????
// .NET Specific Settings
// ?????????????????????????????????????????????????????????????????
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableRoslynAnalyzers": true,
"dotnet.backgroundAnalysis.enabled": true,
// ?????????????????????????????????????????????????????????????????
// Testing Integration
// ?????????????????????????????????????????????????????????????????
"dotnet.defaultSolution": "QuanTAlib.sln",
"dotnet.testController.enabled": true,
"dotnet.unitTests.runSettingsPath": "coverage.runsettings",
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.server.useOmnisharp": false,
"sonarlint.connectedMode.project": {
"connectionId": "mihakralj-quantalib",
"projectKey": "mihakralj_QuanTAlib"
},
"coderabbit.agentType": "Cline",
"qodana.projectId": "KbxmN"
// Note: Native mode is configured in qodana.yaml with withinDocker: false
// ???????????????????????????????????????????????????????????????????
// Keyboard Shortcuts Reference
// ???????????????????????????????????????????????????????????????????
// Tab - Accept inline suggestion
// Ctrl+? - Accept next word
// Ctrl+Enter - Accept line
// Esc - Dismiss suggestion
// Alt+] - Next suggestion
// Alt+[ - Previous suggestion
// Ctrl+I - Open Copilot Chat
//
// Quality Control Reminders:
// ? Review all Copilot suggestions for optimization patterns
// ? Run tests after accepting: dotnet test
// ? Check performance impact with benchmarks
// ? Validate against reference implementations
}
+54 -54
View File
@@ -1,54 +1,54 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "test-net10",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/lib/QuanTAlib.Tests.csproj",
"--framework",
"net10.0"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "test-all-frameworks",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/lib/QuanTAlib.Tests.csproj"
],
"problemMatcher": "$msCompile",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/QuanTAlib.sln"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "test-net10",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/lib/QuanTAlib.Tests.csproj",
"--framework",
"net10.0"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "test-all-frameworks",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/lib/QuanTAlib.Tests.csproj"
],
"problemMatcher": "$msCompile",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/QuanTAlib.sln"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}