CodeAnalysisRuleSettings Methods

 

Updated: April 20, 2017

Namespace:   Microsoft.SqlServer.Dac.CodeAnalysis
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

NameDescription
System_CAPS_pubmethodAdd(RuleConfiguration^)

Adds a new RuleConfiguration object to the list of rules.

System_CAPS_pubmethodApplySettingsToRules(IEnumerable<RuleConfiguration^>^)

Applies these settings to another set of rules.

System_CAPS_pubmethodConvertToSettingsString()

Converts the rule configuration info in this CodeAnalysisRuleSettings object into a settings string like the one used inside SSDT project files. This string defines what rules should be disabled or have their problems treated as errors instead of warnings. Any rule not included in the settings string will be enabled by default.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromSettingsString(String^, IList<ExtensibilityError^>^%)

Creates a CodeAnalysisRuleSettings configuration based on a settings string like the one used inside SSDT project files. This string defines what rules should be disabled or have their problems treated as errors instead of warnings. Any rule not included in the settings string will be enabled by default.

System_CAPS_pubmethodDisableRule(String^)

Excludes a rule from execution.

System_CAPS_pubmethodEnableRule(String^)

Includes a rule for execution.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodFindConfiguration(String^)

Tries to find the RuleConfiguration that matches the specified ruleId. If the configuration doesn't exist then null will be returned.

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsRuleDisabled(String^)

Determines whether a particular rule in the rule settings disabled.

System_CAPS_pubmethodIsRuleProblemTreatedAsError(String^)

Determines whether a particular rule in the rule settings treated as error.

System_CAPS_pubmethodRemove(RuleConfiguration^)

Removes a RuleConfiguration object from the list of rules.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTreatRuleProblemAsError(String^)

Treats any problems found a rule as errors.

System_CAPS_pubmethodTreatRuleProblemAsWarning(String^)

Treats any problems found a rule as warnings.

System_CAPS_pubmethodTryGetRuleConfiguration(String^, RuleConfiguration^%)

Tries to find the RuleConfiguration that matches the specified ruleId.

Return to top
Show: