.Net: Disable IDE0130 (match namespace to folder structure) (#3851)

This ends up needing to be suppressed in a huge percentage of the files,
and when a diagnostic is raised, the answer is invariably to suppress it
rather than change the folder structure or namespace. Until there's a
decision made to revamp the folder structure, I suggest disabling this.
This commit is contained in:
Stephen Toub
2023-12-01 14:51:46 +00:00
committed by GitHub
parent d2ab89169e
commit cb150fb1c3
100 changed files with 2 additions and 232 deletions
+1 -1
View File
@@ -150,7 +150,6 @@ dotnet_diagnostic.IDE0071.severity = warning # Simplify interpolation
dotnet_diagnostic.IDE0073.severity = warning # Require file header
dotnet_diagnostic.IDE0082.severity = warning # Convert typeof to nameof
dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression
dotnet_diagnostic.IDE0130.severity = warning # Namespace does not match folder structure
dotnet_diagnostic.IDE0161.severity = warning # Use file-scoped namespace
# Suppressed diagnostics
@@ -220,6 +219,7 @@ dotnet_diagnostic.IDE0079.severity = none # Remove unnecessary suppression.
dotnet_diagnostic.IDE0080.severity = none # Remove unnecessary suppression operator.
dotnet_diagnostic.IDE0100.severity = none # Remove unnecessary equality operator
dotnet_diagnostic.IDE0110.severity = none # Remove unnecessary discards
dotnet_diagnostic.IDE0130.severity = none # Namespace does not match folder structure
dotnet_diagnostic.IDE0032.severity = none # Use auto property
dotnet_diagnostic.IDE0160.severity = none # Use block-scoped namespace
dotnet_diagnostic.IDE1006.severity = warning # Naming rule violations
@@ -7,10 +7,7 @@ using Microsoft.SemanticKernel.AI.TextCompletion;
using Microsoft.SemanticKernel.Connectors.AI.HuggingFace.TextCompletion;
using Microsoft.SemanticKernel.Connectors.AI.HuggingFace.TextEmbedding;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of KernelConfig
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Provides extension methods for the <see cref="KernelBuilder"/> class to configure Hugging Face connectors.
@@ -3,8 +3,6 @@
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Connectors.AI.HuggingFace.TextCompletion;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using Azure.AI.OpenAI;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.AI.ChatCompletion;
/// <summary>
@@ -4,8 +4,6 @@ using Azure.AI.OpenAI;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -18,11 +18,9 @@ using Microsoft.SemanticKernel.Connectors.AI.OpenAI.ImageGeneration;
using Microsoft.SemanticKernel.Connectors.AI.OpenAI.TextCompletion;
using Microsoft.SemanticKernel.Connectors.AI.OpenAI.TextEmbedding;
#pragma warning disable IDE0039 // Use local function
#pragma warning disable CA2000 // Dispose objects before losing scope
#pragma warning disable IDE0130
#pragma warning disable IDE0039 // Use local function
// ReSharper disable once CheckNamespace - Using NS of KernelConfig
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -10,9 +10,7 @@ using Microsoft.SemanticKernel.Experimental.Orchestration.Abstractions;
using Microsoft.SemanticKernel.Experimental.Orchestration.Execution;
using Microsoft.SemanticKernel.Memory;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Default flow status provider implemented on top of <see cref="IMemoryStore"/>
@@ -4,10 +4,7 @@ using System.Linq;
using Microsoft.SemanticKernel.AI.ChatCompletion;
using Microsoft.SemanticKernel.Experimental.Orchestration.Execution;
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130 // Namespace does not match folder structure
/// <summary>
/// Extension methods for <see cref="ContextVariables"/>
@@ -6,10 +6,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.SemanticKernel.Experimental.Orchestration.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130 // Namespace does not match folder structure
/// <summary>
/// Extension methods for <see cref="Flow"/>.
@@ -2,9 +2,7 @@
using Microsoft.SemanticKernel.AI;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Extension methods for PromptTemplateConfig
@@ -7,9 +7,7 @@ using System.Threading.Tasks;
using Microsoft.SemanticKernel.Experimental.Orchestration.Abstractions;
using Microsoft.SemanticKernel.Experimental.Orchestration.Execution;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// A flow orchestrator that using semantic kernel for execution.
@@ -4,9 +4,7 @@ using System.Collections.Generic;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Experimental.Orchestration.Execution;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Configuration for flow planner instances.
@@ -7,9 +7,7 @@ using System.Text.Json.Serialization;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Serializer for <see cref="Flow"/>
@@ -4,9 +4,7 @@ using System;
using System.Linq;
using Microsoft.SemanticKernel.Experimental.Orchestration.Abstractions;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// The flow validator
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// The completion type of step
@@ -3,9 +3,7 @@
using System.Collections.Generic;
using System.Linq;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Flow data model
@@ -6,9 +6,7 @@ using System.Linq;
using System.Reflection;
using Microsoft.SemanticKernel.Experimental.Orchestration.Execution;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// Step within a <see cref="Flow"/> which defines the step goal, available plugins, required and provided variables.
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Experimental.Orchestration;
#pragma warning restore IDE0130
/// <summary>
/// The flow step which references another flow.
@@ -4,10 +4,7 @@ using System.Threading.Tasks;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.PromptTemplate.Handlebars;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the namespace of IKernel
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// <see cref="Kernel"/> extensions methods for Handlebars functionality.
@@ -3,7 +3,6 @@
using System.Collections.Generic;
using Microsoft.SemanticKernel.Functions.Grpc.Model;
// ReSharper disable once CheckNamespace
namespace Microsoft.SemanticKernel.Functions.Grpc.Extensions;
#pragma warning disable RCS1175 // Unused 'this' parameter 'operation'.
@@ -5,10 +5,7 @@ using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace
namespace Microsoft.SemanticKernel.Functions.OpenAPI.Model;
#pragma warning restore IDE0130
/// <summary>
/// Class for extensions methods for the <see cref="RestApiOperation"/> class.
@@ -3,10 +3,7 @@
using System.Text.Json;
using Json.Schema;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace
namespace Microsoft.SemanticKernel.Functions.OpenAPI.Model;
#pragma warning restore IDE0130
/// <summary>
/// Class for extensions methods for the <see cref="RestApiOperationResponse"/> class.
@@ -3,10 +3,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.Functions.Yaml.Functions;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the namespace of IKernel
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Class for extensions methods to define functions using prompt YAML format.
@@ -13,9 +13,7 @@ using SemanticKernel.IntegrationTests.TestSettings;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace SemanticKernel.IntegrationTests.Planning;
#pragma warning restore IDE0130
public sealed class PlanTests : IDisposable
{
@@ -8,9 +8,7 @@ using SemanticKernel.IntegrationTests.TestSettings;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace SemanticKernel.IntegrationTests.Planners.Sequential;
#pragma warning restore IDE0130
public class SequentialPlanParserTests
{
@@ -14,9 +14,7 @@ using xRetry;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace SemanticKernel.IntegrationTests.Planners.Sequential;
#pragma warning restore IDE0130
public sealed class SequentialPlannerTests : IDisposable
{
@@ -12,9 +12,7 @@ using SemanticKernel.IntegrationTests.TestSettings;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace SemanticKernel.IntegrationTests.Planners.Stepwise;
#pragma warning restore IDE0130
public sealed class FunctionCallingStepwisePlannerTests : IDisposable
{
@@ -14,9 +14,7 @@ using xRetry;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace SemanticKernel.IntegrationTests.Planners.Stepwise;
#pragma warning restore IDE0130
public sealed class StepwisePlannerTests : IDisposable
{
@@ -4,9 +4,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Provides extension methods for the <see cref="KernelFunctionMetadata"/> class.
@@ -12,9 +12,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.SemanticKernel.Memory;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Provides extension methods for the <see cref="IReadOnlyKernelPluginCollection"/> implementations for planners.
@@ -7,10 +7,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - using planners namespace
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>Surrounds the invocation of a planner with logging and metrics.</summary>
internal static class PlannerInstrumentation
@@ -2,10 +2,7 @@
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A class to describe the content of a response/return type from an KernelFunctionFactory, in a JSON Schema friendly way.
@@ -3,10 +3,7 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A class to describe the parameters of an KernelFunctionFactory in a JSON Schema friendly way.
@@ -2,10 +2,7 @@
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A class for describing the reponse/return type of an KernelFunctionFactory in a JSON Schema friendly way.
@@ -3,10 +3,7 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A class to describe an KernelFunctionFactory in a JSON Schema friendly way.
@@ -2,10 +2,7 @@
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A class to describe the content schma of a response/return type from an KernelFunctionFactory, in a JSON Schema friendly way.
@@ -3,10 +3,7 @@
using System.Collections.Generic;
using Microsoft.SemanticKernel.Memory;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Semantic memory configuration.
@@ -4,10 +4,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace System.Runtime.CompilerServices;
#pragma warning restore IDE0130
#if !NETCOREAPP
@@ -2,10 +2,7 @@
using System.Threading;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Exception
namespace System;
#pragma warning restore IDE0130
/// <summary>
/// Exception extension methods.
@@ -7,10 +7,7 @@
// This was copied from https://github.com/dotnet/runtime/blob/39b9607807f29e48cae4652cd74735182b31182e/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/NullableAttributes.cs
// and updated to have the scope of the attributes be internal.
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace System.Diagnostics.CodeAnalysis;
#pragma warning restore IDE0130
#if !NETCOREAPP
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace System;
#pragma warning restore IDE0130
internal static class EnvExtensions
{
@@ -6,9 +6,7 @@ using Microsoft.SemanticKernel.AI.TextCompletion;
using Moq;
using Xunit;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Action.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public sealed class ActionPlannerTests
{
@@ -4,9 +4,7 @@ using Microsoft.SemanticKernel.Memory;
using Moq;
using Xunit;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public class ReadOnlyFunctionCollectionExtensionsTests
{
@@ -7,9 +7,7 @@ using Moq;
using Xunit;
using Xunit.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Sequential.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public class SequentialPlanParserTests
{
@@ -6,9 +6,7 @@ using Microsoft.SemanticKernel.AI.TextCompletion;
using Moq;
using Xunit;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Sequential.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public sealed class SequentialPlannerTests
{
@@ -3,9 +3,7 @@
using Moq;
using Xunit;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Stepwise.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public sealed class ParseResultTests
{
@@ -3,9 +3,7 @@
using Moq;
using Xunit;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Stepwise.UnitTests;
#pragma warning restore IDE0130 // Namespace does not match folder structure
public sealed class StepwisePlannerTests
{
@@ -2,9 +2,7 @@
using Microsoft.Extensions.Logging;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.UnitTests.XunitHelpers;
#pragma warning restore IDE0130
/// <summary>
/// Basic logger printing to console
@@ -13,10 +13,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Planning.Action;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Action Planner allows to select one function out of many, to achieve a given goal.
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Configuration for Action planner instances.
@@ -1,11 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// ReSharper disable once CheckNamespace - Using the namespace of Kernel
using Microsoft.SemanticKernel.AI;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Extension methods for PromptTemplateConfig
@@ -4,10 +4,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.SemanticKernel.Planning;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Kernel
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Extension methods for running plans using a kernel
@@ -5,9 +5,7 @@ using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Xml;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Parse sequential plan text into a plan.
@@ -6,10 +6,7 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.AI;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// A planner that uses semantic function to create a sequential plan.
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Common configuration for planner instances.
@@ -4,10 +4,7 @@ using System.Linq;
using Microsoft.SemanticKernel.AI.ChatCompletion;
using Microsoft.SemanticKernel.Text;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Extension methods for <see cref="ChatHistory"/> class.
@@ -16,10 +16,7 @@ using Microsoft.SemanticKernel.AI.ChatCompletion;
using Microsoft.SemanticKernel.AI.TextCompletion;
using Microsoft.SemanticKernel.Services;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// A planner that creates a Stepwise plan using Mrkl systems.
@@ -1,9 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Configuration for Stepwise planner instances.
@@ -3,10 +3,7 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// A step in a Stepwise plan.
@@ -3,9 +3,7 @@
using System.IO;
using System.Reflection;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
internal static class EmbeddedResource
{
@@ -4,9 +4,7 @@ using System;
using System.IO;
using System.Reflection;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
#pragma warning restore IDE0130
/// <summary>
/// Extension methods for the <see cref="HandlebarsPlanner"/> interface.
@@ -7,9 +7,7 @@ using System.Reflection;
using System.Text.Json;
using System.Threading.Tasks;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
#pragma warning restore IDE0130
internal static class KernelParameterMetadataExtensions
{
@@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Threading;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
/// <summary>
@@ -10,7 +10,6 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.AI.ChatCompletion;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
/// <summary>
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130 // Namespace does not match folder structure
using System;
using System.Collections.Generic;
using System.Threading;
@@ -9,7 +9,6 @@ using System.Threading;
using HandlebarsDotNet;
using HandlebarsDotNet.Compiler;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
/// <summary>
@@ -4,9 +4,7 @@ using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel.Planning.Handlebars;
#pragma warning restore IDE0130
internal sealed class HandlebarsParameterTypeMetadata
{
@@ -12,10 +12,7 @@ using Microsoft.SemanticKernel.Connectors.AI.OpenAI;
using Microsoft.SemanticKernel.Connectors.AI.OpenAI.AzureSdk;
using Microsoft.SemanticKernel.Functions.OpenAPI.Model;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// A planner that uses OpenAI function calling in a stepwise manner to fulfill a user goal or question.
@@ -3,10 +3,7 @@
using System;
using Microsoft.SemanticKernel.Connectors.AI.OpenAI;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Configuration for Stepwise planner instances.
@@ -2,10 +2,7 @@
using Microsoft.SemanticKernel.AI.ChatCompletion;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using NS of Plan
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
/// <summary>
/// Result produced by the <see cref="FunctionCallingStepwisePlanner"/>.
@@ -3,9 +3,7 @@
using System.IO;
using System.Reflection;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel.Planning;
#pragma warning restore IDE0130
internal static class EmbeddedResource
{
@@ -5,10 +5,7 @@
// See the LICENSE file in the project root for more information.// This was copied from https://github.com/dotnet/runtime/blob/39b9607807f29e48cae4652cd74735182b31182e/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/NullableAttributes.cs
// and updated to have the scope of the attributes be internal.
#pragma warning disable IDE0130 // Namespace does not match folder structure
// ReSharper disable once CheckNamespace
namespace System.Diagnostics.CodeAnalysis;
#pragma warning restore IDE0130
#if !NETCOREAPP
@@ -6,9 +6,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Function result after execution.
@@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130 // Namespace does not match folder structure
#pragma warning disable CA1716 // Identifiers should not match keywords
namespace Microsoft.SemanticKernel;
@@ -3,9 +3,6 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
/// <summary>Provides extension methods for working with <see cref="IKernelPlugin"/>s and collections of them.</summary>
@@ -3,9 +3,6 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
/// <summary>Provides a read-only collection of <see cref="IKernelPlugin"/>s.</summary>
@@ -6,7 +6,6 @@ using System.Collections.Generic;
using Microsoft.SemanticKernel.AI;
#pragma warning disable CA1710 // Identifiers should have correct suffix
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
@@ -12,10 +12,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Events;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Represents a function that can be invoked as part of a Semantic Kernel workload.
@@ -8,10 +8,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Specifies that a method on a class imported as a plugin with should be included as a <see cref="KernelFunction"/>.
@@ -4,10 +4,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Provides read-only metadata for a <see cref="KernelFunction"/>.
@@ -5,8 +5,6 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.SemanticKernel.Text;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
/// <summary>Represents JSON Schema for describing types used in <see cref="KernelFunction"/>s.</summary>
@@ -3,10 +3,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Provides read-only metadata for a <see cref="KernelFunction"/> parameter.
@@ -9,7 +9,6 @@ using System.Linq;
#pragma warning disable RCS1168 // Parameter name differs from base name.
#pragma warning disable CA1725 // Parameter names should match base declaration
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
@@ -3,10 +3,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Provides read-only metadata for a <see cref="KernelFunction"/>'s return parameter.
@@ -3,8 +3,6 @@
using System.Threading;
using System.Threading.Tasks;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -8,8 +8,6 @@ using System.Text.Json.Serialization;
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Text;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -3,8 +3,6 @@
using System;
using Microsoft.Extensions.DependencyInjection;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>Empty <see cref="IServiceProvider"/> implementation that returns null from all <see cref="IServiceProvider.GetService"/> calls.</summary>
@@ -2,10 +2,7 @@
using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.Services;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// Represents a selector which will return a tuple containing instances of <see cref="IAIService"/> and <see cref="PromptExecutionSettings"/> from the specified provider based on the model settings.
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel.Events;
/// <summary>
@@ -7,8 +7,6 @@ using System.Reflection;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.AI;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -21,8 +21,6 @@ using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.AI.TextCompletion;
using Microsoft.SemanticKernel.Text;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -14,10 +14,7 @@ using Microsoft.SemanticKernel.AI;
using Microsoft.SemanticKernel.AI.TextCompletion;
using Microsoft.SemanticKernel.Events;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// A Semantic Kernel "Semantic" prompt function.
@@ -7,8 +7,6 @@ using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -4,7 +4,6 @@ using System.ComponentModel;
using System.Reflection;
using Microsoft.Extensions.Logging;
#pragma warning disable IDE0130
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -3,10 +3,7 @@
using System.Text;
using Microsoft.SemanticKernel.AI;
#pragma warning disable IDE0130
// ReSharper disable once CheckNamespace - Using the main namespace
namespace Microsoft.SemanticKernel;
#pragma warning restore IDE0130
/// <summary>
/// This class represents the content of a streaming chunk generated by KernelFunctionsFromMethod.
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -11,8 +11,6 @@ using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.SemanticKernel.TemplateEngine;
using Microsoft.SemanticKernel.TemplateEngine.Blocks;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>
@@ -3,8 +3,6 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace Microsoft.SemanticKernel;
/// <summary>