tariel36
tariel36
CC#
Created by tariel36 on 10/27/2023 in #help
How to suppress all errors and warnings within namespace (or directory) using GlobalSuppressions.cs
I see. Maybe it will be easier to add formatting to those files in the pipeline then. Thanks
43 replies
CC#
Created by tariel36 on 10/27/2023 in #help
How to suppress all errors and warnings within namespace (or directory) using GlobalSuppressions.cs
No description
43 replies
CC#
Created by tariel36 on 10/27/2023 in #help
How to suppress all errors and warnings within namespace (or directory) using GlobalSuppressions.cs
Partially.
[assembly: SuppressMessage("Style", "IDE2000:Avoid multiple blank lines", Justification = "Autogenerated code", Scope = "namespaceanddescendants", Target = "My.Nested.Namespace")]
[assembly: SuppressMessage("Style", "IDE2000:Avoid multiple blank lines", Justification = "Autogenerated code", Scope = "namespaceanddescendants", Target = "My.Nested.Namespace")]
Doesn't work for
/*
* API for Service
*
* Explanation.
*
* The version of the OpenAPI document: 1.0.9
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

namespace My.Nested.Namespace.Foo
{
/*
* API for Service
*
* Explanation.
*
* The version of the OpenAPI document: 1.0.9
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

namespace My.Nested.Namespace.Foo
{
. Also if I do this attribute as provided example from you, or example from me in this message I receive warning about legacy format, which is unacceptable.
Message IDE0077 Avoid legacy format target 'My.Nested.Namespace' in 'SuppressMessageAttribute' shared-project D:\dev\shared-project\GlobalSuppressions.cs 15 Active
Message IDE0077 Avoid legacy format target 'My.Nested.Namespace' in 'SuppressMessageAttribute' shared-project D:\dev\shared-project\GlobalSuppressions.cs 15 Active
43 replies
CC#
Created by tariel36 on 10/27/2023 in #help
How to suppress all errors and warnings within namespace (or directory) using GlobalSuppressions.cs
Single example for single member is not the documentation at all. This page explains nothing.
43 replies
CC#
Created by tariel36 on 10/27/2023 in #help
How to suppress all errors and warnings within namespace (or directory) using GlobalSuppressions.cs
43 replies