C# Class SonarLint.VisualStudio.Integration.Binding.ProjectBindingOperation

Inheritance: IBindingOperation
Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Private Properties

Свойство Type Description
AddFileToProject void
CalculateRuleSetInformation void
CaptureProjectInformation void
GenerateNewProjectRuleSet RuleSet
GenerateNewProjectRuleSetPath string
QueueWriteProjectLevelRuleSet string
TryUpdateExistingProjectRuleSet bool

Méthodes publiques

Méthode Description
Commit ( ) : void
Initialize ( ) : void
Prepare ( CancellationToken token ) : void
ProjectBindingOperation ( IServiceProvider serviceProvider, Project project, ISolutionRuleStore ruleStore ) : EnvDTE
ShouldIgnoreConfigureRuleSetValue ( string ruleSet ) : bool

Gets whether or not the provided rule set should be ignored for inclusion in a rule set.

Private Methods

Méthode Description
AddFileToProject ( Project project, string fullFilePath ) : void
CalculateRuleSetInformation ( ) : void
CaptureProjectInformation ( ) : void
GenerateNewProjectRuleSet ( string solutionIncludePath, string currentRuleSetPath, string ruleSetName ) : RuleSet

Generate a new project level rule set with the provided inclusions (if not an ignored rule set).

GenerateNewProjectRuleSetPath ( string ruleSetRootPath, string ruleSetFileName ) : string

Generate a project level rule set file path from the given project name.

QueueWriteProjectLevelRuleSet ( string projectFullPath, string ruleSetFileName, RuleSetInformation solutionRuleSet, string currentRuleSetPath ) : string

Queues a write to a project-level SonarQube RuleSet file in the directory.

TryUpdateExistingProjectRuleSet ( string solutionRuleSetPath, string projectRuleSetRootFolder, string currentRuleSet, string &existingRuleSetPath, RuleSet &existingRuleSet ) : bool

Method Details

Commit() public méthode

public Commit ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Prepare() public méthode

public Prepare ( CancellationToken token ) : void
token System.Threading.CancellationToken
Résultat void

ProjectBindingOperation() public méthode

public ProjectBindingOperation ( IServiceProvider serviceProvider, Project project, ISolutionRuleStore ruleStore ) : EnvDTE
serviceProvider IServiceProvider
project Project
ruleStore ISolutionRuleStore
Résultat EnvDTE

ShouldIgnoreConfigureRuleSetValue() public static méthode

Gets whether or not the provided rule set should be ignored for inclusion in a rule set.
public static ShouldIgnoreConfigureRuleSetValue ( string ruleSet ) : bool
ruleSet string
Résultat bool