Skip to content

Commit

Permalink
prune rules
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsiv committed Mar 4, 2021
1 parent 8001af4 commit 35dc512
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 3 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ trim_trailing_whitespace = false
dotnet_diagnostic.IDE0055.severity = warning

# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true
#dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false
# Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = false:refactoring
Expand Down Expand Up @@ -152,10 +152,6 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# error RS2008: Enable analyzer release tracking for the analyzer project containing rule '{0}'
dotnet_diagnostic.RS2008.severity = none

# IDE0073: File header
dotnet_diagnostic.IDE0073.severity = warning
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 file in the project root for more information.

# IDE0035: Remove unreachable code
dotnet_diagnostic.IDE0035.severity = warning

Expand All @@ -168,8 +164,8 @@ dotnet_diagnostic.IDE0043.severity = warning
# IDE0044: Make field readonly
dotnet_diagnostic.IDE0044.severity = warning

# RS0016: Only enable if API files are present
dotnet_public_api_analyzer.require_api_files = true
# IDE0005: Unnecessary imports
dotnet_diagnostic.IDE0005.severity = warning

# CSharp code style settings:
[*.cs]
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# .husky pre-commit ^5.0.0
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
yarn lint-staged --relative
9 changes: 7 additions & 2 deletions Src/WitsmlExplorer.Api/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Reflection;
using Carter;
Expand All @@ -8,14 +12,15 @@
using Microsoft.Extensions.Hosting;
using NetCore.AutoRegisterDi;
using Serilog;
using WitsmlExplorer.Api.Middleware;
using WitsmlExplorer.Api.Models;
using WitsmlExplorer.Api.Repositories;
using WitsmlExplorer.Api.Middleware;
using WitsmlExplorer.Api.Services;

namespace WitsmlExplorer.Api
{
public class Startup {
public class Startup
{
readonly string myAllowSpecificOrigins = "_myAllowSpecificOrigins";

public Startup(IConfiguration configuration)
Expand Down

0 comments on commit 35dc512

Please sign in to comment.