Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Update dotfiles #128

Merged
merged 1 commit into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ charset = utf-8-bom
end_of_line = crlf

# C# 生成コード
# https://github.com/dotnet/roslyn/issues/54119
[{*Generated,**/Generated/**}.cs]
dotnet_diagnostic.CS1591.severity = none
generated_code = true
2 changes: 1 addition & 1 deletion .github/dotfiles.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"hash": "4a64f8f0841b0c22172abd54ef65a2a0d069c449"
"hash": "5de0e6786fa7d1b3faf7b1e51247fb11a747a284"
}
5 changes: 5 additions & 0 deletions .globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ dotnet_diagnostic.CA1715.severity = none
# 理由: 言語キーワードと重複してもエスケープすれば回避できる。
dotnet_diagnostic.CA1716.severity = none

# Do not directly await a Task
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007
# 理由: デフォルトで有効にならない規則。
dotnet_diagnostic.CA2007.severity = warning

# 'type': base type 'type' is not CLS-compliant
# https://docs.microsoft.com/dotnet/csharp/language-reference/compiler-messages/cs3009
# 理由: CLSに準拠する必要性を感じない。
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AnalysisMode>All</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>$(NoWarn);SA0001</NoWarn>
Expand Down
7 changes: 7 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>

<PropertyGroup Condition="'$(UseWPF)' == 'true' or '$(UseWinUI)' == 'true' or '$(UseMaui)' == 'true' or '$(UsingMicrosoftNETSdkWeb)' == 'true' or '$(UsingMicrosoftNETSdkRazor)' == 'true'">
<NoWarn>$(NoWarn);CA2007</NoWarn>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions Source/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)..\'))" />

<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<NoPackageAnalysis>true</NoPackageAnalysis>
Expand Down
3 changes: 1 addition & 2 deletions Tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\'))" />

<PropertyGroup>
<NoWarn>$(NoWarn);SA0001</NoWarn>
Expand All @@ -22,6 +23,4 @@
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="*" />
</ItemGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\'))" />

</Project>