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

Inheritance: IBindingOperation
Datei anzeigen Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Private Properties

Property Type Description
AddFileToProject void
CalculateRuleSetInformation void
CaptureProjectInformation void
GenerateNewProjectRuleSet RuleSet
GenerateNewProjectRuleSetPath string
QueueWriteProjectLevelRuleSet string
TryUpdateExistingProjectRuleSet bool

Public Methods

Method 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

Method 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 method

public Commit ( ) : void
return void

Initialize() public method

public Initialize ( ) : void
return void

Prepare() public method

public Prepare ( CancellationToken token ) : void
token System.Threading.CancellationToken
return void

ProjectBindingOperation() public method

public ProjectBindingOperation ( IServiceProvider serviceProvider, Project project, ISolutionRuleStore ruleStore ) : EnvDTE
serviceProvider IServiceProvider
project Project
ruleStore ISolutionRuleStore
return EnvDTE

ShouldIgnoreConfigureRuleSetValue() public static method

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
return bool