隐藏平台warn,放开自有模块warn

This commit is contained in:
2023-05-16 17:24:07 +08:00
parent 67d599dce6
commit 1cb50e15d2
42 changed files with 66 additions and 28 deletions

View File

@@ -54,7 +54,7 @@ public static class CodeGenExportDataHelper
var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault();
if (len != null && len > 0)
if (len > 0)
{
for (int i = 0; i < len; i++)
{

View File

@@ -1,6 +1,7 @@
using System.Drawing;
using System.Reflection;
using System.Text;
using JNPF.Common.Helper;
using JNPF.Common.Models.NPOI;
using JNPF.DependencyInjection;
using NPOI.HPSF;
@@ -8,10 +9,13 @@ using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using NPOI.SS.Util;
using NPOI.XSSF.UserModel;
using Spire.Doc;
using static Microsoft.AspNetCore.Razor.Language.TagHelperMetadata;
namespace JNPF.Common.Security;
#pragma warning disable CS8602, CS0618, CA2200
#pragma warning disable CS0618, CA2200 //再次引发捕获到的异常会更改堆栈信息
/// <summary>
/// Excel导出操作类
/// 版 本V3.2.0
@@ -1170,4 +1174,4 @@ public class ExcelExportHelper<T>
#endregion
}
#pragma warning restore CS8602, CS0618, CA2200
#pragma warning restore CS0618, CA2200 //再次引发捕获到的异常会更改堆栈信息

View File

@@ -494,7 +494,9 @@ public class FileHelper
}
catch (Exception ex)
{
#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息
throw ex;
#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息
}
finally
{