Skip to content

Commit

Permalink
Filter out API members with [EntityFrameworkInternal]
Browse files Browse the repository at this point in the history
Closes #3029
  • Loading branch information
roji committed Jan 21, 2021
1 parent 1a9ef8a commit d9e77e9
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entity-framework/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
]
}
],
"dest": "api"
"dest": "api",
"filter": "filterConfig.yml"
}
],
"build": {
Expand Down
83 changes: 83 additions & 0 deletions entity-framework/filterConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
apiRules:
- exclude:
hasAttribute:
uid: Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternalAttribute
# From here on, this is the default filter config as in https://dotnet.github.io/docfx/tutorial/howto_filter_out_unwanted_apis_attributes.html#3-default-filter-configuration
- exclude:
hasAttribute:
uid: System.ComponentModel.EditorBrowsableAttribute
ctorArguments:
- System.ComponentModel.EditorBrowsableState.Never
attributeRules:
- exclude:
uidRegex: ^System\.ComponentModel\.Design$
type: Namespace
- exclude:
uidRegex: ^System\.ComponentModel\.Design\.Serialization$
type: Namespace
- exclude:
uidRegex: ^System\.Xml\.Serialization$
type: Namespace
- exclude:
uidRegex: ^System\.Web\.Compilation$
type: Namespace
- exclude:
uidRegex: ^System\.Runtime\.Versioning$
type: Namespace
- exclude:
uidRegex: ^System\.Runtime\.ConstrainedExecution$
type: Namespace
- exclude:
uidRegex: ^System\.EnterpriseServices$
type: Namespace
- exclude:
uidRegex: ^System\.Diagnostics\.CodeAnalysis$
type: Namespace
- include:
uidRegex: ^System\.Diagnostics\.(ConditionalAttribute|EventLogPermissionAttribute|PerformanceCounterPermissionAttribute)$
type: Type
- exclude:
uidRegex: '^System\.Diagnostics\.[^.]+$'
type: Type
- include:
uidRegex: ^System\.ComponentModel\.(BindableAttribute|BrowsableAttribute|ComplexBindingPropertiesAttribute|DataObjectAttribute|DefaultBindingPropertyAttribute|ListBindableAttribute|LookupBindingPropertiesAttribute|SettingsBindableAttribute|TypeConverterAttribute)$
type: Type
- exclude:
uidRegex: '^System\.ComponentModel\.[^.]+$'
type: Type
- exclude:
uidRegex: ^System\.Reflection\.DefaultMemberAttribute$
type: Type
- exclude:
uidRegex: ^System\.CodeDom\.Compiler\.GeneratedCodeAttribute$
type: Type
- include:
uidRegex: ^System\.Runtime\.CompilerServices\.ExtensionAttribute$
type: Type
- exclude:
uidRegex: '^System\.Runtime\.CompilerServices\.[^.]+$'
type: Type
- include:
uidRegex: ^System\.Runtime\.InteropServices\.(ComVisibleAttribute|GuidAttribute|ClassInterfaceAttribute|InterfaceTypeAttribute)$
type: Type
- exclude:
uidRegex: '^System\.Runtime\.InteropServices\.[^.]+$'
type: Type
- include:
uidRegex: ^System\.Security\.(SecurityCriticalAttribute|SecurityTreatAsSafeAttribute|AllowPartiallyTrustedCallersAttribute)$
type: Type
- exclude:
uidRegex: '^System\.Security\.[^.]+$'
type: Type
- include:
uidRegex: ^System\.Web\.UI\.(ControlValuePropertyAttribute|PersistenceModeAttribute|ValidationPropertyAttribute|WebResourceAttribute|TemplateContainerAttribute|ThemeableAttribute|TemplateInstanceAttribute)$
type: Type
- exclude:
uidRegex: '^System\.Web\.UI\.[^.]+$'
type: Type
- include:
uidRegex: ^System\.Windows\.Markup\.(ConstructorArgumentAttribute|DesignerSerializationOptionsAttribute|ValueSerializerAttribute|XmlnsCompatibleWithAttribute|XmlnsDefinitionAttribute|XmlnsPrefixAttribute)$
type: Type
- exclude:
uidRegex: '^System\.Windows\.Markup\.[^.]+$'
type: Type

0 comments on commit d9e77e9

Please sign in to comment.