【文件属性】:
文件名称:TechDebtAttributes:自定义.NET属性以记录和报告技术债务
文件大小:36KB
文件格式:ZIP
更新时间:2021-05-13 19:09:18
C#
在源代码级别跟踪技术债务
步骤1:撷取
将属性添加到生产代码中,您可以在其中找到当前无法解决的技术债务:
将NuGet软件包:TechDebtAttributes安装到生产程序集中
使用[TechDebt]属性可以在发现无法立即解决的技术债务时使用:
[ TechDebt ( 10 , 44 , Description = " This is dumb, we should remove it " )]
public interface ISomeDumbInterface
{
}
在上面的示例中,此债务的痛苦值为10,修复工作的代价为44。
您可以确定这些整数的相对值意味着什么。
第2步报告
将NuGet软件包:TechDebtAttributes安装到测试项目中
在测试项目中添加测试以输出所有技术债务的报告:
public class WhatsTheTechDebt
【文件预览】:
TechDebtAttributes-master
----src()
--------TechDebtAttributes()
----.gitignore(3KB)
----logo.png(3KB)
----README.md(3KB)
----LICENSE.txt(11KB)