﻿# EditorConfig is awesome:
http://EditorConfig.org

# top-most EditorConfig file
root = true

# Don't use tabs for indentation.
[*]
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)

# VSTHRD001: Avoid legacy thread switching APIs (deferred: https://github.com/dotnet/interactive-window/issues/179)
dotnet_diagnostic.VSTHRD001.severity = none

# VSTHRD002: Avoid problematic synchronous waits (deferred: https://github.com/dotnet/interactive-window/issues/180)
dotnet_diagnostic.VSTHRD002.severity = none

# VSTHRD003: Avoid awaiting foreign Tasks (deferred: https://github.com/dotnet/interactive-window/issues/181)
dotnet_diagnostic.VSTHRD003.severity = none

# VSTHRD103: Call async methods when in an async method (deferred: https://github.com/dotnet/interactive-window/issues/182)
dotnet_diagnostic.VSTHRD103.severity = none

# VSTHRD110: Observe result of async calls (deferred: https://github.com/dotnet/interactive-window/issues/183)
dotnet_diagnostic.VSTHRD110.severity = none

# VSTHRD114: Avoid returning a null Task (deferred: https://github.com/dotnet/interactive-window/issues/184)
dotnet_diagnostic.VSTHRD114.severity = none

# VSTHRD200: Use "Async" suffix for async methods (deferred: https://github.com/dotnet/interactive-window/issues/185)
dotnet_diagnostic.VSTHRD200.severity = none

[*.{sh}]
end_of_line = lf
indent_size = 2

[*.{ps1}]
indent_size = 2

# Code files
[*.cs,*.csx,*.vb,*.vbx]
indent_size = 4

# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2

# Xml config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2

# JSON files
[*.json]
indent_size = 2

[*.{cs}]
file_header_template = Licensed to the.NET Foundation under one or more agreements.\nThe.NET Foundation licenses this file to you under the MIT license.\nSee the License.txt file in the project root for more information.
