Skip to content

Commit

Permalink
Add PublicAPI analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
twsouthwick committed Aug 31, 2021
1 parent 8176867 commit c4f1a40
Show file tree
Hide file tree
Showing 13 changed files with 48,536 additions and 42 deletions.
1 change: 0 additions & 1 deletion Open-XML-SDK.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.vsconfig = .vsconfig
CHANGELOG.md = CHANGELOG.md
compat.yml = compat.yml
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
DocumentFormat.OpenXml.Package.props = DocumentFormat.OpenXml.Package.props
Expand Down
6 changes: 0 additions & 6 deletions compat.yml

This file was deleted.

9 changes: 9 additions & 0 deletions src/DocumentFormat.OpenXml/DocumentFormat.OpenXml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down Expand Up @@ -189,6 +193,11 @@
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="PublicAPI.Shipped.$(TargetFramework).txt" Condition="Exists('PublicAPI.Shipped.$(TargetFramework).txt')" />
<AdditionalFiles Include="PublicAPI.Unshipped.$(TargetFramework).txt" Condition="Exists('PublicAPI.Unshipped.$(TargetFramework).txt')" />
</ItemGroup>

<Import Project="$(MSBuildThisFileDirectory)\PEVerify.targets" />

</Project>
3 changes: 3 additions & 0 deletions src/DocumentFormat.OpenXml/PublicAPI.Shipped.net35.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#nullable enable
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(string! schemaFile, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(System.Xml.Schema.XmlSchemaSet! schemas, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
6 changes: 6 additions & 0 deletions src/DocumentFormat.OpenXml/PublicAPI.Shipped.net40.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#nullable enable
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.OpenXmlElement! openXmlElement, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPackage! openXmlPackage, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPart! openXmlPart, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(string! schemaFile, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(System.Xml.Schema.XmlSchemaSet! schemas, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
6 changes: 6 additions & 0 deletions src/DocumentFormat.OpenXml/PublicAPI.Shipped.net46.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#nullable enable
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.OpenXmlElement! openXmlElement, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPackage! openXmlPackage, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPart! openXmlPart, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(string! schemaFile, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(System.Xml.Schema.XmlSchemaSet! schemas, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
8 changes: 8 additions & 0 deletions src/DocumentFormat.OpenXml/PublicAPI.Shipped.net5.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#nullable enable
DocumentFormat.OpenXml.HexBinaryValue.TryWriteBytes(System.Span<byte> bytes) -> bool
static DocumentFormat.OpenXml.HexBinaryValue.Create(System.ReadOnlySpan<byte> bytes) -> DocumentFormat.OpenXml.HexBinaryValue!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.OpenXmlElement! openXmlElement, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPackage! openXmlPackage, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPart! openXmlPart, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(string! schemaFile, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(System.Xml.Schema.XmlSchemaSet! schemas, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#nullable enable
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.OpenXmlElement! openXmlElement, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPackage! openXmlPackage, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPart! openXmlPart, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#nullable enable
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.OpenXmlElement! openXmlElement, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPackage! openXmlPackage, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Validation.OpenXmlValidator.Validate(DocumentFormat.OpenXml.Packaging.OpenXmlPart! openXmlPart, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Validation.ValidationErrorInfo!>!
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(string! schemaFile, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
DocumentFormat.OpenXml.Packaging.OpenXmlPart.ValidateXml(System.Xml.Schema.XmlSchemaSet! schemas, System.Xml.Schema.ValidationEventHandler! validationEventHandler) -> void
Loading

0 comments on commit c4f1a40

Please sign in to comment.