Skip to content

Commit 277bc57

Browse files
committed
Slowly mitigating post-merge and target update build errors
1 parent 1abab97 commit 277bc57

File tree

27 files changed

+94
-174
lines changed

27 files changed

+94
-174
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ dotnet_diagnostic.CA1703.severity = warning
9797
dotnet_diagnostic.CA1704.severity = warning
9898
dotnet_diagnostic.CA1707.severity = warning
9999
dotnet_diagnostic.CA1709.severity = warning
100-
dotnet_diagnostic.CA1710.severity = warning
101-
dotnet_diagnostic.CA1711.severity = warning
100+
dotnet_diagnostic.CA1710.severity = none
101+
dotnet_diagnostic.CA1711.severity = none
102102
dotnet_diagnostic.CA1712.severity = warning
103103
dotnet_diagnostic.CA1713.severity = warning
104104
dotnet_diagnostic.CA1714.severity = warning

Directory.Build.props

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project>
22
<PropertyGroup>
3-
<Version Condition="'$(StatiqWebVersion)' == ''">1.0.0</Version>
4-
<Version Condition="'$(StatiqWebVersion)' != ''">$(StatiqWebVersion)</Version>
3+
<Version Condition="'$(StatiqVersion)' == ''">1.0.0</Version>
4+
<Version Condition="'$(StatiqVersion)' != ''">$(StatiqVersion)</Version>
55
<InformationalVersion>$(Version)</InformationalVersion>
66
<AssemblyVersion>$(Version.Split('-')[0])</AssemblyVersion>
77
<FileVersion>$(Version.Split('-')[0])</FileVersion>
8-
<Product>Statiq Web</Product>
8+
<Product>Statiq</Product>
99
<Copyright>Copyright © Statiq/Dave Glick</Copyright>
1010
<Authors>Dave Glick, Other Awesome Contributors</Authors>
1111
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
1212
<PackageIcon>icon.png</PackageIcon>
13-
<PackageProjectUrl>https://github.com/statiqdev/Statiq.Web</PackageProjectUrl>
14-
<RepositoryUrl>https://github.com/statiqdev/Statiq.Web.git</RepositoryUrl>
13+
<PackageProjectUrl>https://github.com/statiqdev/Statiq</PackageProjectUrl>
14+
<RepositoryUrl>https://github.com/statiqdev/Statiq.git</RepositoryUrl>
1515
<RepositoryType>git</RepositoryType>
1616
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1717
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

examples/Statiq.Web.Examples/Statiq.Web.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<ProjectReference Include="..\..\src\Statiq.Web\Statiq.Web.csproj" />
16+
<ProjectReference Include="..\..\src\extensions\Statiq.Web\Statiq.Web.csproj" />
1717
</ItemGroup>
1818

1919
</Project>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
namespace Statiq.Common
22
{
3+
#pragma warning disable CA1040
34
public interface IBaseCommand
45
{
56
}
6-
}
7+
#pragma warning restore CA1040
8+
}
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
namespace Statiq.Common
1+
using System.Diagnostics.CodeAnalysis;
2+
3+
namespace Statiq.Common
24
{
35
/// <summary>
46
/// A marker interface that indicates a given object can be configured by the bootstrapper.
57
/// </summary>
8+
#pragma warning disable CA1040
69
public interface IConfigurable
710
{
811
}
9-
}
12+
#pragma warning restore CA1040
13+
}

src/core/Statiq.Common/Documents/DocumentPathTree{TDocument}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ private NormalizedPath ResolvePath(TDocument document)
9393
return path;
9494
}
9595

96-
public TDocument Get(NormalizedPath path)
96+
public TDocument Get(NormalizedPath destinationPath)
9797
{
9898
foreach ((NormalizedPath, TDocument) item in _documents)
9999
{
100-
if (_pathFunc(item.Item2).Equals(path))
100+
if (_pathFunc(item.Item2).Equals(destinationPath))
101101
{
102102
return item.Item2;
103103
}

src/core/Statiq.Common/Documents/FilteredDocumentList{TDocument}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal FilteredDocumentList(
2828

2929
public override FilteredDocumentList<TDocument> this[params string[] patterns] => _filterFunc(this, patterns);
3030

31-
public TDocument Get(NormalizedPath path) => _tree.Get(path);
31+
public TDocument Get(NormalizedPath destinationPath) => _tree.Get(destinationPath);
3232

3333
public DocumentList<TDocument> GetAncestorsOf(TDocument document, bool includeSelf) => _tree.GetAncestorsOf(document, includeSelf);
3434

@@ -40,4 +40,4 @@ internal FilteredDocumentList(
4040

4141
public DocumentList<TDocument> GetSiblingsOf(TDocument document, bool includeSelf) => _tree.GetSiblingsOf(document, includeSelf);
4242
}
43-
}
43+
}

src/core/Statiq.Common/Documents/ObjectDocument{T}.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public sealed class ObjectDocument<T> : IDocument
3030
/// <summary>
3131
/// The underlying object.
3232
/// </summary>
33+
#pragma warning disable CA1720
3334
public T Object { get; }
35+
#pragma warning restore CA1720
3436

3537
/// <inheritdoc />
3638
public NormalizedPath Source { get; }

src/core/Statiq.Common/Html/IDocumentHtmlExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ public static class IDocumentHtmlExtensions
1818

1919
internal static void ClearHtmlDocumentCache() => _htmlDocumentCache.Reset();
2020

21+
// This is updating a cache of Task<IHtmlDocument>, so we don't want to await the resulting Task
22+
#pragma warning disable VSTHRD110
2123
internal static void AddOrUpdateCache(IContentProvider contentProvider, IHtmlDocument htmlDocument) =>
2224
_htmlDocumentCache.AddOrUpdate(contentProvider, _ => Task.FromResult(htmlDocument), (_, __) => Task.FromResult(htmlDocument));
25+
#pragma warning restore VSTHRD110
2326

2427
/// <summary>
2528
/// Gets an <see cref="IHtmlDocument"/> by parsing the content of an <see cref="IDocument"/>.

src/core/Statiq.Common/IO/IReadOnlyFileSystemExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ public static NormalizedPath GetContainingInputPath(this IReadOnlyFileSystem fil
168168
// Then try to find a directory
169169
return fileSystem.GetUnmappedInputPaths(path, out _)
170170
.Reverse()
171-
.Select(x => (x, fileSystem.GetDirectory(x)))
172-
.Where(x => x.Item2.Exists)
173-
.Select(x => x.Item1.Parent)
171+
.Select(x => (Path: x, Directory: fileSystem.GetDirectory(x)))
172+
.Where(x => x.Directory.Exists)
173+
.Select(x => x.Path.Parent)
174174
.FirstOrDefault();
175175
}
176176

@@ -689,4 +689,4 @@ private class FilePathEqualityComparer : IEqualityComparer<IFile>
689689
public int GetHashCode([DisallowNull] IFile obj) => obj.Path.GetHashCode();
690690
}
691691
}
692-
}
692+
}

0 commit comments

Comments
 (0)