Added new rule for non private query fields.
This commit is contained in:
Родитель
f2400d20be
Коммит
a69330260b
|
@ -0,0 +1,19 @@
|
|||
(: Copyright (c) Microsoft Corporation.
|
||||
Licensed under the MIT license. :)
|
||||
|
||||
(: Find references to query fields that are not private. Query fields
|
||||
cannot be addressed from outside, since it is not possible to derive
|
||||
from queries ir access query fields from outside the query.
|
||||
:)
|
||||
(: @Language Xpp :)
|
||||
(: @Category Informational :)
|
||||
|
||||
<NonPrivateQueryFields>
|
||||
{
|
||||
for $query in /Query
|
||||
for $field in $query/Class/FieldDeclaration[@IsPrivate='false']
|
||||
return <NonPrivateQueryFields Field='{$field/@Name}' Artifact='{$query/@Artifact}'
|
||||
StartLine='{$field/@StartLine}' EndLine='{$field/@EndLine}'
|
||||
StarCol='{$field/@StartCol}' EndCol='{$field/@EndCol}'/>
|
||||
}
|
||||
</NonPrivateQueryFields>
|
|
@ -12,7 +12,7 @@ namespace XppReasoningWpf.Properties {
|
|||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
|
|
@ -85,4 +85,17 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\BaseXInterface\BaseXInterface.netcore.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Settings.Designer.cs">
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Update="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче