Skip to content

Commit

Permalink
Merge branch 'v3' into docfx-baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Dec 24, 2024
2 parents 250893e + 4ac871f commit 993d77d
Show file tree
Hide file tree
Showing 276 changed files with 4,876 additions and 1,332 deletions.
214 changes: 214 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"name": "Stock Indicators Dev Container",
"image": "mcr.microsoft.com/devcontainers/dotnet:9.0",
"features": {
"ghcr.io/devcontainers/features/ruby:1": {
"version": "3.3"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"rebornix.ruby",
"streetsidesoftware.code-spell-checker",
"davidanson.vscode-markdownlint"
],
"settings": {
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 3000,
"files.encoding": "utf8",
"files.exclude": {
"**/.vs/**": true,
"**/bin/**": true,
"**/obj/**": true,
"**/TestResults/**": true,
"**/*.csproj.user": true
},
"search.exclude": {
"**/_site/**": true
},
"editor.codeLens": false,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"editor.formatOnPaste": true,
"terminal.integrated.defaultProfile.windows": "Git Bash",
"dotnet-test-explorer.testProjectPath": "tests/**/*Tests*.csproj",
"scss.validate": false,
"markdownlint.config": {
"MD033": false,
"MD025": false
},
"cSpell.words": [
"Apirine",
"Arnaud",
"Aroon",
"Ashi",
"Atrp",
"Backtest",
"backtesting",
"Blau",
"Bollinger",
"Botes",
"candlepart",
"Chaikin",
"Chainable",
"Chande",
"chandeliertype",
"chartable",
"chikou",
"Cobertura",
"Codacy",
"cwebp",
"daveskender",
"Dema",
"Detrended",
"Dimitrios",
"Doji",
"Donchian",
"drawdowns",
"Dreiss",
"duplicative",
"Ehlers",
"Epma",
"Etienne",
"FAMA",
"forex",
"Ginley",
"gittools",
"Goichi",
"gstatic",
"Heikin",
"Homma",
"Hosoda",
"htmlproofer",
"Hutson",
"Ichimoku",
"intraday",
"jemoji",
"Kaby",
"Keltner",
"kijun",
"Kinkō",
"Klinger",
"Kouzis",
"Kroll",
"lazyload",
"Legoux",
"Levshin",
"Loukas",
"LSMA",
"LWMA",
"Macd",
"Mape",
"Markowitz",
"Marubozu",
"matype",
"minifier",
"Mrkt",
"Mulloy",
"Munehisa",
"nobuild",
"NOKOGIRI",
"nupkg",
"Quong",
"Renko",
"Schaff",
"Seban",
"senkou",
"setx",
"Siepman",
"Skender",
"Smma",
"snupkg",
"Soudack",
"srcset",
"Starc",
"Stoch",
"stockindicators",
"Stoller",
"Swenlin",
"Tema",
"tenkan",
"Tillson",
"Trix",
"TSLA",
"Tushar",
"Vitali",
"Vwap",
"Vwma",
"warnaserror",
"Woodie"
],
"cSpell.ignorePaths": [
"package-lock.json",
"node_modules",
"vscode-extension",
".git/objects",
".vscode",
".vscode-insiders",
"src",
"tests"
],
"cSpell.enableFiletypes": [
"!asciidoc",
"!c",
"!cpp",
"!css",
"!elixir",
"!git-commit",
"!go",
"!graphql",
"!handlebars",
"!haskell",
"!jade",
"!java",
"!javascript",
"!javascriptreact",
"!jsonc",
"!latex",
"!less",
"!pug",
"!python",
"!restructuredtext",
"!rust",
"!scala",
"!swift",
"!typescript",
"!typescriptreact",
"!vue"
],
"cSpell.ignoreWords": [
"GXEZ",
"LINQ",
"OHLC",
"OHLCV",
"adxr",
"autobuild",
"betatype",
"buildscript",
"codeql",
"commandline",
"dessant",
"dwkk",
"endfor",
"endtype",
"gitversion",
"jacobtomlinson",
"livereload",
"lookback",
"noquotes",
"octocat",
"onequote",
"pivottrend",
"trendline",
"webp"
]
}
}
},
"postCreateCommand": "dotnet restore"
}
92 changes: 68 additions & 24 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,34 +1,67 @@
# top-most EditorConfig file
# EditorConfig: https://EditorConfig.org

# Top-level EditorConfig file
root = true

#### Core EditorConfig Options ####

# Global settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

indent_style = space
indent_size = 2
tab_width = 2

line_length = 150
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 150

# .NET Globals
[*.cs]
#### File Type Overrides ####

# Markdown files
[*.md]

# Allow trailing whitespace for line breaks
trim_trailing_whitespace = false

# Batch and command files
[*.{cmd,bat}]

# Use CRLF for Windows specific files
end_of_line = crlf

# .NET source files
[*.{cs,vb}]

# set indentation to 4 spaces
indent_size = 4
tab_width = 4

#### .NET Coding Conventions ####
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/overview
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
# File headers are disabled
file_header_template = unset

# Organize 'using' directives
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

# Simplify type names and remove unnecessary qualifiers
dotnet_diagnostic.IDE0001.severity = warning # Simplify type names
dotnet_style_qualification_for_field = false:warning # Prefer 'field' over 'this.field'
dotnet_style_qualification_for_property = false:warning # Prefer 'property' over 'this.property'
dotnet_style_qualification_for_method = false:warning # Prefer 'method()' over 'this.method()'
dotnet_style_qualification_for_event = false:warning # Prefer 'event' over 'this.event'

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members
dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning # Require modifiers except for interface members

# Ensure space around colon in named arguments
dotnet_style_space_around_colon_in_named_argument = true:suggestion
dotnet_diagnostic.IDE0040.severity = suggestion

# Expression-level preferences
dotnet_style_coalesce_expression = true:suggestion
Expand All @@ -38,19 +71,21 @@ dotnet_style_namespace_match_folder = false:none
dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_compound_assignment = true
dotnet_style_prefer_conditional_expression_over_assignment = true
dotnet_style_prefer_conditional_expression_over_return = true
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
dotnet_style_prefer_inferred_anonymous_type_member_names = true
dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true
dotnet_style_prefer_simplified_interpolation = true
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion # Prefer 'int' over 'Int32'

# Collection expression preferences
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_diagnostic.IDE0305.severity = none # exclude collection expression for fluent
dotnet_diagnostic.IDE0305.severity = none # Exclude collection expression for fluent APIs

csharp_space_between_square_brackets = false
csharp_space_between_empty_square_brackets = false

Expand Down Expand Up @@ -87,13 +122,21 @@ dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_code_quality_explicit_tuple_names = true:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion

# Diagnostic analyzer suppressions
dotnet_diagnostic.IDE0058.severity = none # Unused expression value, use _ discard variable

# remove this when no-longer supporting pre-9.0 frameworks
dotnet_diagnostic.IDE0330.severity = none # Prefer 'System.Threading.Lock'

#### C# Coding Conventions ####
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options

[*.cs]

# var preferences
csharp_style_var_elsewhere = false
csharp_style_var_for_built_in_types = false
csharp_style_var_when_type_is_apparent = false
csharp_style_var_elsewhere = false # Do not prefer 'var' elsewhere
csharp_style_var_for_built_in_types = false # Do not prefer 'var' for built-in types
csharp_style_var_when_type_is_apparent = false # Do not prefer 'var' when type is apparent

# Labeling and using directives
csharp_indent_labels = one_less_than_current
Expand All @@ -106,8 +149,9 @@ csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion

# Expression-bodied Members
# Expression-bodied members
csharp_style_expression_bodied_methods = true:silent
csharp_style_expression_bodied_operators = true:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Normalize line endings.
* text=lf
* text=auto eol=lf
Loading

0 comments on commit 993d77d

Please sign in to comment.