隐藏平台warn,放开自有模块warn
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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 //再次引发捕获到的异常会更改堆栈信息
|
||||
|
||||
@@ -494,7 +494,9 @@ public class FileHelper
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息
|
||||
throw ex;
|
||||
#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user