generated from goatcorp/SamplePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajust code style + enforce in pipeline (#35)
* Adjust code style to better match official c# guidelines * Enforce dotnet format * Update gitattributes to commit with crlf * fix gitattributes * update check-format action * again
- Loading branch information
Showing
92 changed files
with
1,419 additions
and
1,300 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
|
||
*.cs text eol=crlf | ||
*.csproj text eol=crlf | ||
*.sln text eol-crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Dalamud plugin build | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Check format | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
check-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x.x | ||
- name: Run dotnet format | ||
run: dotnet format --verify-no-changes |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference | ||
Include="SonarAnalyzer.CSharp" | ||
Version="9.25.1.91650" | ||
PrivateAssets="all" | ||
Condition="$(MSBuildProjectExtension) == '.csproj'" | ||
/> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath> | ||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.xlcore/dalamud/Hooks/dev/</DalamudLibPath> | ||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(HOME)/Library/Application Support/XIV on Mac/dalamud/Hooks/dev/</DalamudLibPath> | ||
<DalamudLibPath Condition="$(DALAMUD_HOME) != ''">$(DALAMUD_HOME)/</DalamudLibPath> | ||
</PropertyGroup> | ||
</Project> |
4 changes: 2 additions & 2 deletions
4
EasyTranslate.DalamudPlugin/Attributes/EntryPointAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace EasyTranslate.DalamudPlugin.Attributes; | ||
using System; | ||
|
||
using System; | ||
namespace EasyTranslate.DalamudPlugin.Attributes; | ||
|
||
[AttributeUsage(AttributeTargets.Class)] | ||
public class EntryPointAttribute : Attribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
EasyTranslate.DalamudPlugin/Configuration/DalamudServiceWrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 37 additions & 38 deletions
75
EasyTranslate.DalamudPlugin/EasyTranslate.DalamudPlugin.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="../Dalamud.Libs.targets"/> | ||
<Import Project="$(DalamudLibPath)/targets/Dalamud.Plugin.targets"/> | ||
<Import Project="$(DalamudLibPath)/targets/Dalamud.Plugin.targets"/> | ||
|
||
<PropertyGroup> | ||
<Authors>Olaren</Authors> | ||
<Company></Company> | ||
<Version>2.1.0.0</Version> | ||
<Description>Search for FFXIV translations right from the game!</Description> | ||
<Copyright></Copyright> | ||
<PackageProjectUrl>https://github.com/Olaren15/ffxiv-easy-translate</PackageProjectUrl> | ||
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression> | ||
<IsPackable>false</IsPackable> | ||
<RootNamespace>EasyTranslate.DalamudPlugin</RootNamespace> | ||
<TargetFramework>net8.0-windows</TargetFramework> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<LangVersion>12</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Authors>Olaren</Authors> | ||
<Company></Company> | ||
<Version>2.1.0.0</Version> | ||
<Description>Search for FFXIV translations right from the game!</Description> | ||
<Copyright></Copyright> | ||
<PackageProjectUrl>https://github.com/Olaren15/ffxiv-easy-translate</PackageProjectUrl> | ||
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression> | ||
<IsPackable>false</IsPackable> | ||
<RootNamespace>EasyTranslate.DalamudPlugin</RootNamespace> | ||
<TargetFramework>net8.0-windows</TargetFramework> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<LangVersion>12</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\EasyTranslate.Domain\EasyTranslate.Domain.csproj"/> | ||
<ProjectReference Include="..\EasyTranslate.Infrastructure\EasyTranslate.Infrastructure.csproj"/> | ||
<ProjectReference Include="..\EasyTranslate.UseCase\EasyTranslate.UseCase.csproj"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\EasyTranslate.Domain\EasyTranslate.Domain.csproj"/> | ||
<ProjectReference Include="..\EasyTranslate.Infrastructure\EasyTranslate.Infrastructure.csproj"/> | ||
<ProjectReference Include="..\EasyTranslate.UseCase\EasyTranslate.UseCase.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Resources\Strings.fr.resx"/> | ||
<EmbeddedResource Update="Resources\Strings.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Strings.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Update="Resources\Strings.fr.resx"/> | ||
<EmbeddedResource Update="Resources\Strings.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Strings.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Update="Resources\Strings.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Strings.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Update="Resources\Strings.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Strings.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
EasyTranslate.DalamudPlugin/Localisation/LanguageSwitcher.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.