全龄段友好的C#万能工具库,码数吐司库,包含一些常用的操作类,大都是静态类,加密解密,反射操作,权重随机筛选算法,分布式短id,表达式树,linq扩展,文件压缩,多线程下载,硬件信息,字符串扩展方法,日期时间扩展操作,中国农历,大文件拷贝,图像裁剪,验证码,断点续传,集合扩展、Excel导出等常用封装。诸多功能集一身,代码量不到2MB!
This report summarizes scanner evidence for ldqk/Masuit.Tools, a C# project with 6,193 GitHub stars. SynthScan examined 65,724 lines of code across 514 source files, recording 215 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 3.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 213 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 215 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 215 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Masuit.Tools.Net45/Media/ImageWatermarker.cs | 21 | private readonly Stream _stream; | COMMENT |
| LOW | Masuit.Tools.Net45/Media/ImageUtilities.cs | 21 | /// 正方型裁剪 | COMMENT |
| LOW | Masuit.Tools.Net45/Media/ImageUtilities.cs | 141 | //保存缩略图 | COMMENT |
| LOW | Masuit.Tools.Net45/Media/ImageUtilities.cs | 541 | COMMENT | |
| LOW | Masuit.Tools.Net45/Media/ImageUtilities.cs | 721 | COMMENT | |
| LOW | Masuit.Tools/Net/CacheHelper.cs | 61 | /// </summary> | COMMENT |
| LOW | Masuit.Tools/Net/WebExtension.cs | 41 | /// <param name="value">值</param> | COMMENT |
| LOW | Masuit.Tools/Net/WebExtension.cs | 61 | /// <param name="key">键</param> | COMMENT |
| LOW | Masuit.Tools/Mvc/ControllerExtension.cs | 21 | /// 可断点续传和多线程下载的FileResult | COMMENT |
| LOW | Masuit.Tools/Mvc/ControllerExtension.cs | 61 | /// 可断点续传和多线程下载的FileResult | COMMENT |
| LOW | Masuit.Tools/Mvc/ControllerExtension.cs | 81 | { | COMMENT |
| LOW | Masuit.Tools/Mvc/ActionResults/ResumeFileResult.cs | 141 | /// 起点大于文件的总大小 | COMMENT |
| LOW | Test/Masuit.Tools.Abstractions.Test/Tree/TreeTest.cs | 181 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Excel/NumberFormater.cs | 21 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Core/Database/ChangePropertyInfo.cs | 21 | /// <summary> | COMMENT |
| LOW | …pNetCore/AspNetCore/Extensions/ControllerExtensions.cs | 41 | /// </summary> | COMMENT |
| LOW | …pNetCore/AspNetCore/Extensions/ControllerExtensions.cs | 81 | /// <summary> | COMMENT |
| LOW | …pNetCore/AspNetCore/Extensions/ControllerExtensions.cs | 101 | /// <param name="controller"></param> | COMMENT |
| LOW | …pNetCore/AspNetCore/Extensions/ControllerExtensions.cs | 141 | /// 可断点续传和多线程下载的FileResult | COMMENT |
| LOW | …s.AspNetCore/ModelBinder/FromBodyOrDefaultAttribute.cs | 1 | using Microsoft.AspNetCore.Mvc; | COMMENT |
| LOW | …s.AspNetCore/ModelBinder/FromBodyOrDefaultAttribute.cs | 21 | /// 整型 | COMMENT |
| LOW | Masuit.Tools.AspNetCore/ModelBinder/BindType.cs | 1 | namespace Masuit.Tools.AspNetCore.ModelBinder; | COMMENT |
| LOW | Masuit.Tools.AspNetCore/ModelBinder/BindType.cs | 21 | /// </summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Database/DataTableHelper.cs | 61 | } | COMMENT |
| LOW | Masuit.Tools.Abstractions/Strings/UnicodeFormater.cs | 21 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Strings/Template.cs | 21 | Content = content; | COMMENT |
| LOW | Masuit.Tools.Abstractions/Hardware/CpuInfo.cs | 21 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Hardware/CpuInfo.cs | 41 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Hardware/CpuInfo.cs | 61 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Hardware/DiskData.cs | 1 | namespace Masuit.Tools.Hardware | COMMENT |
| LOW | Masuit.Tools.Abstractions/Hardware/RamInfo.cs | 21 | /// 分页内存总数 | COMMENT |
| LOW | Masuit.Tools.Abstractions/Hardware/NetData.cs | 1 | namespace Masuit.Tools.Hardware | COMMENT |
| LOW | Masuit.Tools.Abstractions/Net/PartialDownloader.cs | 41 | public bool Stopped { get; private set; } | COMMENT |
| LOW | Masuit.Tools.Abstractions/Net/PartialDownloader.cs | 61 | public string FileName { get; } | COMMENT |
| LOW | Masuit.Tools.Abstractions/Net/PartialDownloader.cs | 101 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Net/MultiThreadDownloader.cs | 121 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Net/MultiThreadDownloader.cs | 141 | /// 文件合并事件 | COMMENT |
| LOW | Masuit.Tools.Abstractions/Validator/IsEmailAttribute.cs | 21 | private string[] WhiteList { get; set; } | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RsaPem.cs | 21 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 301 | { | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 321 | /// <param name="encryptKey">加密密钥,须半角字符</param> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 341 | } | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 481 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 581 | /// </summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 1061 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Security/Encrypt.cs | 1361 | csDecrypt.FlushFinalBlock(); | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 101 | #endregion RSA的加密函数 | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 161 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 221 | /// </summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 261 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 281 | /// <summary> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 301 | /// <param name="publicKey">公钥</param> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Security/RSACrypt.cs | 321 | /// <exception cref="CryptographicException">The cryptographic service provider (CSP) cannot be acquired. </exceptio | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/Circle.cs | 21 | { | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 21 | /// <param name="items"></param> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 41 | /// <returns></returns> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 61 | COMMENT | |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 141 | /// <typeparam name="T"></typeparam> | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 161 | /// 平行集合转换成树形结构 | COMMENT |
| LOW | Masuit.Tools.Abstractions/Models/TreeExtensions.cs | 181 | COMMENT | |
| 153 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Masuit.Tools.Abstractions/Hardware/SystemInfo.cs | 231 | var (eax, ebx, ecx, edx) = System.Runtime.Intrinsics.X86.X86Base.CpuId(1, 0); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …uit.Tools.Core.Test/AspNetCore/ObjectExtensionTests.cs | 25 | street = "123 Main St", | CODE |