yylxbiubiu
V2EX  ›  问与答

有没有 c#的静态检查工具

  •  
  •   yylxbiubiu · Oct 13, 2021 · 1182 views
    This topic created in 1717 days ago, the information mentioned may be changed or developed.
    用 c#写了个命令行工具,需要审查扫描一下代码是否规范,那种不是以插件形式集成在 vs 上的,可以是命令行形式也可以 gui 形式的,只需要扫出来问题即可,人工去修改
    3 replies    2021-10-19 18:50:42 +08:00
    murphyyyy
        1
    murphyyyy  
       Oct 13, 2021
    @INCerry, 此处艾特 C#社区的社区领袖
    INCerry
        3
    INCerry  
       Oct 19, 2021
    泻药,自己写插件的代码可以参考 xunit 里面的 analysis 插件,用于分析和提醒 xunit 使用不规范的情况。
    https://github.com/xunit/xunit.analyzers
    如果不是自己写的话,可以用 sonarqube 扫描,然后提示出来,里面有很多规则
    https://blog.51cto.com/u_13865122/2793330
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:42 · PVG 15:42 · LAX 00:42 · JFK 03:42
    ♥ Do have faith in what you're doing.