Add .editorconfig

This commit is contained in:
Denis-Cosmin Nutiu 2019-11-09 15:39:15 +02:00
parent 43d29e0a12
commit 63d373611c
3 changed files with 6 additions and 5 deletions

View file

@ -5,6 +5,7 @@
<e p="$USER_HOME$/.Rider2019.2/system/resharper-host/local/Transient/ReSharperHost/v192/SolutionCaches/_NucuCar.855615882.00" t="ExcludeRecursive" />
<e p="$PROJECT_DIR$" t="IncludeFlat">
<e p="NucuCar.BME680Sensor" t="IncludeRecursive">
<e p=".editorconfig" t="Include" />
<e p="NucuCar.BME680Sensor.csproj" t="IncludeRecursive" />
<e p="Program.cs" t="Include" />
<e p="Properties" t="Include">

View file

@ -0,0 +1,4 @@
# File to disable Rider inspection warnings, unfortunately it adds more inspection warnings.
[*]
resharper_class_never_instantiated_global_highlighting=none
resharper_member_can_be_private_global_highlighting=none

View file

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
@ -13,7 +9,7 @@ namespace NucuCar.BME680Sensor
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) => { services.AddHostedService<Worker>(); });