Skip to content

Commit

Permalink
build(deps): bump PublicApiGenerator from 9.3.0 to 10.1.0 (#136)
Browse files Browse the repository at this point in the history
* build(deps): bump PublicApiGenerator from 9.3.0 to 10.1.0

Bumps [PublicApiGenerator](https://github.com/PublicApiGenerator/PublicApiGenerator) from 9.3.0 to 10.1.0.
- [Release notes](https://github.com/PublicApiGenerator/PublicApiGenerator/releases)
- [Commits](PublicApiGenerator/PublicApiGenerator@9.3.0...10.1.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Update analyzers and API approver

* Readd nerdbank gitversioning

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Glenn Watson <[email protected]>
Co-authored-by: Glenn <[email protected]>
  • Loading branch information
3 people authored Jun 8, 2020
1 parent 4afaacb commit 0d797b3
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 58 deletions.
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
trigger:
- master
- main
- latest
- rel/*
- preview/*

pr:
- master
- main
- latest
- rel/*
- preview/*

Expand Down
2 changes: 1 addition & 1 deletion build.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CAKE_VERSION=0.35.0
CAKE_VERSION=0.38.1
7 changes: 2 additions & 5 deletions src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
<RepositoryUrl>https://github.com/reactiveui/Pharmacist</RepositoryUrl>
<RepositoryType>git</RepositoryType>

<!-- disable sourcelink on mono, to workaround https://github.com/dotnet/sourcelink/issues/155 -->
<EnableSourceLink Condition=" '$(OS)' != 'Windows_NT' AND '$(MSBuildRuntimeType)' != 'Core' ">false</EnableSourceLink>
<EnableSourceControlManagerQueries>$(EnableSourceLink)</EnableSourceControlManagerQueries>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
Expand All @@ -35,7 +32,7 @@
</PropertyGroup>


<ItemGroup Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false'">
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

Expand All @@ -52,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="stylecop.analyzers" Version="1.1.118" PrivateAssets="all" />
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.164" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="2.3.0" PrivateAssets="All" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute("Pharmacist.Benchmarks")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute("Pharmacist.Tests")]
[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName="")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Pharmacist.Benchmarks")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Pharmacist.Tests")]
[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName="")]
namespace Pharmacist.Core
{
public enum AutoPlatform
Expand All @@ -13,22 +13,22 @@ namespace Pharmacist.Core
Winforms = 5,
TVOS = 6,
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class static ObservablesForEventGenerator
public static class ObservablesForEventGenerator
{
public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.TextWriter writer, System.Collections.Generic.IEnumerable<string> assemblies, System.Collections.Generic.IEnumerable<string> searchDirectories, string targetFramework) { }
public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.TextWriter writer, Pharmacist.Core.Groups.InputAssembliesGroup input, NuGet.Frameworks.NuGetFramework framework) { }
public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packages, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> packages, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string suffix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable<Pharmacist.Core.AutoPlatform> platforms, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.TextWriter writer, System.Collections.Generic.IEnumerable<string> assemblies, System.Collections.Generic.IEnumerable<string> searchDirectories, string targetFramework) { }
public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> packages, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks, string? packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packages, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks, string? packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string suffix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable<Pharmacist.Core.AutoPlatform> platforms, string? packageOutputFolder = null) { }
public static System.Threading.Tasks.Task ExtractEventsFromTargetFramework(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyList<NuGet.Frameworks.NuGetFramework> frameworks) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, string targetFramework) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> libraryRanges) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, System.Collections.Generic.IEnumerable<string> fileNames) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, Pharmacist.Core.AutoPlatform autoPlatform) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, System.Collections.Generic.IEnumerable<string> fileNames) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> libraryRanges) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packageIdentities) { }
public static System.Threading.Tasks.Task WriteHeader(System.IO.TextWriter writer, string targetFramework) { }
}
public class static PlatformHelper
public static class PlatformHelper
{
public static bool IsRunningOnMono() { }
}
Expand All @@ -37,28 +37,25 @@ namespace Pharmacist.Core.Extractors
{
public interface IExtractor
{
Pharmacist.Core.Groups.InputAssembliesGroup Input { get; }
Pharmacist.Core.Groups.InputAssembliesGroup? Input { get; }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class NuGetExtractor : Pharmacist.Core.Extractors.IExtractor
{
public NuGetExtractor() { }
public Pharmacist.Core.Groups.InputAssembliesGroup Input { get; }
public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> targetFrameworks, System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packages, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputDirectory) { }
public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> targetFrameworks, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> packages, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputDirectory) { }
public Pharmacist.Core.Groups.InputAssembliesGroup? Input { get; }
public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> targetFrameworks, System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> packages, string? packageOutputDirectory) { }
public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> targetFrameworks, System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packages, string? packageOutputDirectory) { }
}
}
namespace Pharmacist.Core.Extractors.PlatformExtractors
{
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class Android : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform
{
public Android() { }
public override NuGet.Frameworks.NuGetFramework Framework { get; }
public override Pharmacist.Core.AutoPlatform Platform { get; }
public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public abstract class BasePlatform : Pharmacist.Core.Extractors.IExtractor, Pharmacist.Core.Extractors.PlatformExtractors.IPlatformExtractor
{
protected BasePlatform() { }
Expand All @@ -73,31 +70,27 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors
Pharmacist.Core.AutoPlatform Platform { get; }
System.Threading.Tasks.Task Extract(string referenceAssembliesLocation);
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class Mac : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform
{
public Mac() { }
public override NuGet.Frameworks.NuGetFramework Framework { get; }
public override Pharmacist.Core.AutoPlatform Platform { get; }
public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class TVOS : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform
{
public TVOS() { }
public override NuGet.Frameworks.NuGetFramework Framework { get; }
public override Pharmacist.Core.AutoPlatform Platform { get; }
public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class UWP : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform
{
public UWP() { }
public override NuGet.Frameworks.NuGetFramework Framework { get; }
public override Pharmacist.Core.AutoPlatform Platform { get; }
public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class iOS : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform
{
public iOS() { }
Expand All @@ -108,16 +101,13 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors
}
namespace Pharmacist.Core.Groups
{
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class FilesGroup
{
public FilesGroup() { }
public void AddFiles(System.Collections.Generic.IEnumerable<string> files) { }
public System.Collections.Generic.IEnumerable<string> GetAllFileNames() { }
[return: System.Runtime.CompilerServices.NullableAttribute(2)]
public string GetFullFilePath(string fileName) { }
public string? GetFullFilePath(string fileName) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class InputAssembliesGroup
{
public InputAssembliesGroup() { }
Expand All @@ -127,43 +117,32 @@ namespace Pharmacist.Core.Groups
}
namespace Pharmacist.Core.NuGet
{
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class static NuGetFrameworkHelper
public static class NuGetFrameworkHelper
{
public static System.Collections.Generic.IEnumerable<NuGet.Packaging.Core.PackageIdentity> GetSupportLibraries(this NuGet.Frameworks.NuGetFramework framework) { }
public static System.Collections.Generic.IReadOnlyList<NuGet.Frameworks.NuGetFramework> ToFrameworks(this string frameworkName) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class static NuGetPackageHelper
public static class NuGetPackageHelper
{
public const string DefaultNuGetSource = "https://api.nuget.org/v3/index.json";
public static System.Collections.Generic.List<System.Lazy<NuGet.Protocol.Core.Types.INuGetResourceProvider>> Providers { get; }
public static System.Threading.Tasks.Task<Pharmacist.Core.Groups.InputAssembliesGroup> DownloadPackageFilesAndFolder(System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> libraryIdentities, [System.Runtime.CompilerServices.NullableAttribute(new byte[] {
2,
1})] System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks = null, [System.Runtime.CompilerServices.NullableAttribute(2)] NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, [System.Runtime.CompilerServices.NullableAttribute(new byte[] {
2,
1})] System.Collections.Generic.IReadOnlyCollection<string> packageFolders = null, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputDirectory = null, System.Threading.CancellationToken token = null) { }
public static System.Threading.Tasks.Task<Pharmacist.Core.Groups.InputAssembliesGroup> DownloadPackageFilesAndFolder(System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packageIdentities, [System.Runtime.CompilerServices.NullableAttribute(new byte[] {
2,
1})] System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework> frameworks = null, [System.Runtime.CompilerServices.NullableAttribute(2)] NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, [System.Runtime.CompilerServices.NullableAttribute(new byte[] {
2,
1})] System.Collections.Generic.IReadOnlyCollection<string> packageFolders = null, [System.Runtime.CompilerServices.NullableAttribute(2)] string packageOutputDirectory = null, System.Threading.CancellationToken token = null) { }
public static System.Threading.Tasks.Task<Pharmacist.Core.Groups.InputAssembliesGroup> DownloadPackageFilesAndFolder(System.Collections.Generic.IReadOnlyCollection<NuGet.LibraryModel.LibraryRange> libraryIdentities, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework>? frameworks = null, NuGet.Configuration.PackageSource? nugetSource = null, bool getDependencies = true, System.Collections.Generic.IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, System.Threading.CancellationToken token = default) { }
public static System.Threading.Tasks.Task<Pharmacist.Core.Groups.InputAssembliesGroup> DownloadPackageFilesAndFolder(System.Collections.Generic.IReadOnlyCollection<NuGet.Packaging.Core.PackageIdentity> packageIdentities, System.Collections.Generic.IReadOnlyCollection<NuGet.Frameworks.NuGetFramework>? frameworks = null, NuGet.Configuration.PackageSource? nugetSource = null, bool getDependencies = true, System.Collections.Generic.IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, System.Threading.CancellationToken token = default) { }
public static System.Threading.Tasks.Task<NuGet.Packaging.Core.PackageIdentity> GetBestMatch(NuGet.LibraryModel.LibraryRange identity, NuGet.Configuration.PackageSource? nugetSource = null, System.Threading.CancellationToken token = default) { }
public static System.Threading.Tasks.Task<NuGet.Packaging.Core.PackageIdentity> GetBestMatch(NuGet.LibraryModel.LibraryRange identity, NuGet.Protocol.Core.Types.FindPackageByIdResource findPackageResource, System.Threading.CancellationToken token) { }
}
}
namespace Pharmacist.Core.ReferenceLocators
{
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class ReferenceLocationNotFoundException : System.Exception
{
public ReferenceLocationNotFoundException(string message) { }
public ReferenceLocationNotFoundException(string message, System.Exception innerException) { }
public ReferenceLocationNotFoundException() { }
public ReferenceLocationNotFoundException(string message) { }
protected ReferenceLocationNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public ReferenceLocationNotFoundException(string message, System.Exception innerException) { }
}
[System.Runtime.CompilerServices.NullableAttribute(0)]
public class static ReferenceLocator
public static class ReferenceLocator
{
public static string GetReferenceLocation(bool includePreRelease = True) { }
public static string GetReferenceLocation(bool includePreRelease = true) { }
}
}
}
4 changes: 2 additions & 2 deletions src/Pharmacist.Tests/API/ApiApprovalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ private static void CheckApproval(Assembly assembly, [CallerMemberName]string me
}

var approvedPublicApi = File.ReadAllText(approvedFileName);

var receivedPublicApi = Filter(ApiGenerator.GeneratePublicApi(assembly));
var generatorOptions = new ApiGeneratorOptions { WhitelistedNamespacePrefixes = new[] { "Pharmacist" } };
var receivedPublicApi = Filter(ApiGenerator.GeneratePublicApi(assembly, generatorOptions));

if (!string.Equals(receivedPublicApi, approvedPublicApi, StringComparison.InvariantCulture))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Pharmacist.Tests/Pharmacist.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="Xunit.StaFact" Version="0.3.18" />
<PackageReference Include="Shouldly" Version="4.0.0-beta0002" />
<PackageReference Include="Microsoft.Reactive.Testing" Version="4.4.1" />
<PackageReference Include="PublicApiGenerator" Version="9.3.0" />
<PackageReference Include="PublicApiGenerator" Version="10.1.0" />
<PackageReference Include="Xamarin.Forms" Version="4.3.0.991221" />
</ItemGroup>

Expand Down

0 comments on commit 0d797b3

Please sign in to comment.