Skip to content

Useful to define manual technical debt value to be calculated by sonarqube.

Notifications You must be signed in to change notification settings

karoldeland/ManualTechnicalDebtRoslynAnalyzer

Repository files navigation

#Manual Technical Debt Roslyn Analyzer (C#) for Sonarqube

Roslyn Analyzer used to generate manual technical debt in Sonarqube.

Using SonarSource-VisualStudio/sonarqube-roslyn-sdk, you can generate a plugin to sonarqube that will scan C# source code for any ManualTechnicalDebt attribute in code and will create an issue in sonarqube with resolution time according to a parameter in the attribute.

Exemple :

[ManualTechnicalDebt("Debt sample", SqaleRemediationDaysEffort = 50)]
public class Class1
{
}

Custom attribute to define :

internal class ManualTechnicalDebtAttribute : Attribute
{
    private int _sqaleRemediationDaysEffort;
    private string _technicalDebtInfo;

    public ManualTechnicalDebtAttribute(string technicalDebtInfo)
    {
        this._technicalDebtInfo = technicalDebtInfo;
    }

    public int SqaleRemediationDaysEffort
    {
        get
        {
            return _sqaleRemediationDaysEffort;
        }

        set
        {
            _sqaleRemediationDaysEffort = value;
        }
    }
}

About

Useful to define manual technical debt value to be calculated by sonarqube.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published