-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from wlsnmrk/compiler-version-fix
- Loading branch information
Showing
14 changed files
with
119 additions
and
74 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Logic Blocks Analyzer | ||
|
||
Provides an analyzer and code fix for LogicBlocks. | ||
Provides an analyzer for LogicBlocks. |
49 changes: 49 additions & 0 deletions
49
Chickensoft.LogicBlocks.CodeFixes/Chickensoft.LogicBlocks.CodeFixes.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<ImplicitUsings>disable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<LangVersion>preview</LangVersion> | ||
<RootNamespace>Chickensoft.LogicBlocks.CodeFixes</RootNamespace> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<NoWarn>NU5128</NoWarn> | ||
<OutputPath>./nupkg</OutputPath> | ||
<IsRoslynComponent>true</IsRoslynComponent> | ||
<AnalyzerLanguage>cs</AnalyzerLanguage> | ||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> | ||
<DebugType>portable</DebugType> | ||
|
||
<Title>LogicBlocks CodeFixes</Title> | ||
<Version>1.0.0</Version> | ||
<Description>LogicBlocks code fixes.</Description> | ||
<Copyright>© 2024 Chickensoft Games</Copyright> | ||
<Authors>Chickensoft</Authors> | ||
<Company>Chickensoft</Company> | ||
|
||
<PackageId>Chickensoft.LogicBlocks.CodeFixes</PackageId> | ||
<PackageReleaseNotes>LogicBlocks CodeFixes release.</PackageReleaseNotes> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageTags>state management;bloc;godot;game;state machine</PackageTags> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageProjectUrl>https://github.com/chickensoft-games/LogicBlocks</PackageProjectUrl> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Has to be in its own item group --> | ||
<None Include="./README.md" Pack="true" PackagePath="\" /> | ||
<None Include="../LICENSE" Pack="true" PackagePath="\" /> | ||
<None Include="../Chickensoft.LogicBlocks/icon.png" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<!-- The following libraries include the types we need --> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<!-- This ensures the library will be packaged as an analyzer when we use `dotnet pack` --> | ||
<ItemGroup> | ||
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Logic Blocks Code Fixes | ||
|
||
Provides a code fix for LogicBlocks. |
4 changes: 2 additions & 2 deletions
4
...alyzers/src/LogicBlockAttributeCodeFix.cs → ...deFixes/src/LogicBlockAttributeCodeFix.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
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 @@ | ||
namespace Chickensoft.LogicBlocks.CodeFixes.Utils; | ||
|
||
public static class Constants { | ||
public const string LOGIC_BLOCK_ATTRIBUTE_NAME = "LogicBlock"; | ||
} |
25 changes: 25 additions & 0 deletions
25
Chickensoft.LogicBlocks.CodeFixes/src/utils/Diagnostics.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Chickensoft.LogicBlocks.CodeFixes.Utils; | ||
|
||
using Microsoft.CodeAnalysis; | ||
|
||
public static class Diagnostics { | ||
public const string ERR_PREFIX = "LOGIC_BLOCKS"; | ||
public const string ERR_CATEGORY = "Chickensoft.LogicBlocks.CodeFixes"; | ||
|
||
public static DiagnosticDescriptor MissingLogicBlockAttributeDescriptor { | ||
get; | ||
} = new( | ||
$"{ERR_PREFIX}_001", | ||
$"Missing [{Constants.LOGIC_BLOCK_ATTRIBUTE_NAME}]", | ||
messageFormat: | ||
$"Missing [{Constants.LOGIC_BLOCK_ATTRIBUTE_NAME}] on logic block " + | ||
"implementation `{0}`", | ||
ERR_CATEGORY, | ||
DiagnosticSeverity.Error, | ||
isEnabledByDefault: true | ||
); | ||
|
||
public static Diagnostic MissingLogicBlockAttribute( | ||
Location location, string name | ||
) => Diagnostic.Create(MissingLogicBlockAttributeDescriptor, location, name); | ||
} |
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
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
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