From 7fdc7288183a643a4f2daf78fd25d9208d2074b4 Mon Sep 17 00:00:00 2001 From: Eddie Date: Sat, 24 Aug 2024 13:34:33 -0400 Subject: [PATCH] Updated plugin to ue 5.4 (#12) --- .gitignore | 1 + Linter.uplugin | 2 +- .../Private/BatchRenameTool/BatchRenameTool.cpp | 4 ++-- Source/Linter/Private/LintRule.cpp | 2 +- Source/Linter/Private/LintRuleSet.cpp | 13 +++++++++++-- .../LintRules/LintRule_Texture_Size_NotTooBig.cpp | 2 +- .../LintRules/LintRule_Texture_Size_PowerOfTwo.cpp | 3 ++- Source/Linter/Private/Linter.cpp | 4 +++- Source/Linter/Private/LinterCommandlet.cpp | 6 ++++-- .../Private/LinterContentBrowserExtensions.cpp | 4 ++-- Source/Linter/Private/UI/LintReport.cpp | 2 +- Source/Linter/Private/UI/LintReportAssetError.cpp | 1 + Source/Linter/Private/UI/LintReportRuleDetails.cpp | 2 +- Source/Linter/Private/UI/LintReportRuleError.cpp | 2 +- Source/Linter/Private/UI/LintWizard.cpp | 10 +++++++--- Source/Linter/Private/UI/SAssetLinkWidget.cpp | 2 +- .../Public/LintRules/LintRule_Blueprint_Compiles.h | 1 + .../LintRules/LintRule_Blueprint_Funcs_MaxNodes.h | 1 + .../LintRule_Blueprint_Funcs_MustHaveReturn.h | 1 + .../LintRule_Blueprint_Funcs_PublicDescriptions.h | 1 + .../LintRules/LintRule_Blueprint_LooseNodes.h | 2 +- ...intRule_Blueprint_Vars_EditableMustHaveTooltip.h | 2 +- .../LintRule_Blueprint_Vars_NoConfigFlag.h | 2 +- .../LintRules/LintRule_Blueprint_Vars_NonAtomic.h | 2 +- .../LintRule_Blueprint_Vars_PluralArrays.h | 2 +- Source/Linter/Public/LinterCommandlet.h | 1 - Source/Linter/Public/UI/LintWizard.h | 1 + 27 files changed, 50 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 6582eaf..5df21db 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,4 @@ Plugins/*/Intermediate/* # Cache files for the editor to use DerivedDataCache/* +/.idea/ diff --git a/Linter.uplugin b/Linter.uplugin index 7cee39d..ba0fcec 100644 --- a/Linter.uplugin +++ b/Linter.uplugin @@ -10,7 +10,7 @@ "DocsURL": "http://discord.gamemak.in", "MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/ca0639af6339476da86fa3bcf15de8ec", "SupportURL": "http://discord.gamemak.in", - "EngineVersion": "5.3.0", + "EngineVersion": "5.4.0", "CanContainContent": true, "Installed": true, "Modules": [ diff --git a/Source/Linter/Private/BatchRenameTool/BatchRenameTool.cpp b/Source/Linter/Private/BatchRenameTool/BatchRenameTool.cpp index c153bdd..104a740 100644 --- a/Source/Linter/Private/BatchRenameTool/BatchRenameTool.cpp +++ b/Source/Linter/Private/BatchRenameTool/BatchRenameTool.cpp @@ -30,7 +30,7 @@ FDlgBatchRenameTool::FDlgBatchRenameTool(const TArray Assets) .SupportsMinimize(false).SupportsMaximize(false) .SaneWindowPlacement(true) .AutoCenter(EAutoCenter::PreferredWorkArea) - .ClientSize(FVector2D(350, 165)); + .ClientSize(FVector2D(350, 185)); TSharedPtr DialogWrapper = SNew(SBorder) @@ -74,7 +74,7 @@ FDlgBatchRenameTool::EResult FDlgBatchRenameTool::ShowModal() const FAssetData& Asset = *AssetIt; // Early out on assets that can not be renamed - if (!(!Asset.IsRedirector() && Asset.AssetClass != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly))) + if (!(!Asset.IsRedirector() && Asset.AssetClassPath.GetAssetName() != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly))) { continue; } diff --git a/Source/Linter/Private/LintRule.cpp b/Source/Linter/Private/LintRule.cpp index 9ea7986..3976ce9 100644 --- a/Source/Linter/Private/LintRule.cpp +++ b/Source/Linter/Private/LintRule.cpp @@ -239,7 +239,7 @@ bool FLintRuleViolation::PopulateAssetData() if (Violator.IsValid()) { - ViolatorAssetData = AssetRegistry.GetAssetByObjectPath(FName(*Violator->GetPathName())); + ViolatorAssetData = AssetRegistry.GetAssetByObjectPath(FSoftObjectPath(*Violator->GetPathName())); return ViolatorAssetData.IsValid(); } diff --git a/Source/Linter/Private/LintRuleSet.cpp b/Source/Linter/Private/LintRuleSet.cpp index a95a7bc..7e014a8 100644 --- a/Source/Linter/Private/LintRuleSet.cpp +++ b/Source/Linter/Private/LintRuleSet.cpp @@ -62,7 +62,16 @@ TArray ULintRuleSet::LintPath(TArray AssetPaths, FS for (FAssetData const& Asset : AssetList) { check(Asset.IsValid()); - UE_LOG(LogLinter, Verbose, TEXT("Creating Lint Thread for asset \"%s\"."), *Asset.AssetName.ToString()); + // TODO - ADD LIST OF ASSETS TO SKIP THAT CAN BE CONFIGURED IN EDITOR + if (Asset.AssetName.ToString().Contains(TEXT("ABP_Humanoid"))) + { + UE_LOG(LogLinter, Verbose, TEXT("Skipping asset \"%s\"."), *Asset.AssetName.ToString()); + continue; + } + else + { + UE_LOG(LogLinter, Verbose, TEXT("Creating Lint Thread for asset \"%s\"."), *Asset.AssetName.ToString()); + } UObject* Object = Asset.GetAsset(); check(Object != nullptr); @@ -82,7 +91,7 @@ TArray ULintRuleSet::LintPath(TArray AssetPaths, FS } else { - Threads.Push(FRunnableThread::Create(Runner, *FString::Printf(TEXT("FLintRunner - %s"), *Asset.ObjectPath.ToString()), 0, TPri_Normal)); + Threads.Push(FRunnableThread::Create(Runner, *FString::Printf(TEXT("FLintRunner - %s"), *Asset.GetObjectPathString()), 0, TPri_Normal)); if (ParentScopedSlowTask != nullptr) { ParentScopedSlowTask->EnterProgressFrame(1.0f); diff --git a/Source/Linter/Private/LintRules/LintRule_Texture_Size_NotTooBig.cpp b/Source/Linter/Private/LintRules/LintRule_Texture_Size_NotTooBig.cpp index ab8088a..c3876c2 100644 --- a/Source/Linter/Private/LintRules/LintRule_Texture_Size_NotTooBig.cpp +++ b/Source/Linter/Private/LintRules/LintRule_Texture_Size_NotTooBig.cpp @@ -3,7 +3,7 @@ #include "LintRuleSet.h" #include "LinterNamingConvention.h" #include "HAL/FileManager.h" - +// @TODO reimplement this class. Look at Marketplace ruleset for implementation ULintRule_Texture_Size_NotTooBig::ULintRule_Texture_Size_NotTooBig(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { diff --git a/Source/Linter/Private/LintRules/LintRule_Texture_Size_PowerOfTwo.cpp b/Source/Linter/Private/LintRules/LintRule_Texture_Size_PowerOfTwo.cpp index 9819c71..ad37ff2 100644 --- a/Source/Linter/Private/LintRules/LintRule_Texture_Size_PowerOfTwo.cpp +++ b/Source/Linter/Private/LintRules/LintRule_Texture_Size_PowerOfTwo.cpp @@ -3,7 +3,7 @@ #include "LintRuleSet.h" #include "LinterNamingConvention.h" #include "HAL/FileManager.h" - +// @TODO reimplement this class. Look at Marketplace ruleset for implementation ULintRule_Texture_Size_PowerOfTwo::ULintRule_Texture_Size_PowerOfTwo(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { @@ -32,6 +32,7 @@ bool ULintRule_Texture_Size_PowerOfTwo::PassesRule_Internal_Implementation(UObje { const UTexture2D* Texture = CastChecked(ObjectToLint); + int32 TexSizeX = Texture->GetSizeX(); int32 TexSizeY = Texture->GetSizeY(); diff --git a/Source/Linter/Private/Linter.cpp b/Source/Linter/Private/Linter.cpp index 64b18f1..80b1fc8 100644 --- a/Source/Linter/Private/Linter.cpp +++ b/Source/Linter/Private/Linter.cpp @@ -119,7 +119,9 @@ void FLinterModule::TryToLoadAllLintRuleSets() IAssetRegistry& AssetRegistry = AssetRegistryModule.Get(); TArray FoundRuleSets; - AssetRegistry.GetAssetsByClass(ULintRuleSet::StaticClass()->GetFName(), FoundRuleSets, true); + const UClass* LintRuleSetClass = ULintRuleSet::StaticClass(); + FTopLevelAssetPath LintRuleTopLevelAssetPath(FName(LintRuleSetClass->GetPackage()->GetPathName()), LintRuleSetClass->GetFName()); + AssetRegistry.GetAssetsByClass(LintRuleTopLevelAssetPath, FoundRuleSets, true); // Attempt to get all RuleSets in memory so that linting tools are better aware of them for (const FAssetData& RuleSetData : FoundRuleSets) diff --git a/Source/Linter/Private/LinterCommandlet.cpp b/Source/Linter/Private/LinterCommandlet.cpp index c46be9e..a7b4455 100644 --- a/Source/Linter/Private/LinterCommandlet.cpp +++ b/Source/Linter/Private/LinterCommandlet.cpp @@ -57,7 +57,9 @@ int32 ULinterCommandlet::Main(const FString& InParams) FLinterModule::TryToLoadAllLintRuleSets(); TArray FoundRuleSets; - AssetRegistryModule.Get().GetAssetsByClass(ULintRuleSet::StaticClass()->GetFName(), FoundRuleSets, true); + const UClass* LintRuleSetClass = ULintRuleSet::StaticClass(); + FTopLevelAssetPath LintRuleTopLevelAssetPath(FName(LintRuleSetClass->GetPackage()->GetPathName()), LintRuleSetClass->GetFName()); + AssetRegistryModule.Get().GetAssetsByClass(LintRuleTopLevelAssetPath, FoundRuleSets, true); for (const FAssetData& RuleSetData : FoundRuleSets) { @@ -129,7 +131,7 @@ int32 ULinterCommandlet::Main(const FString& InParams) UniqueViolatorViolations[0].PopulateAssetData(); AssetData = UniqueViolatorViolations[0].ViolatorAssetData; AssetJsonObject->SetStringField(TEXT("ViolatorAssetName"), AssetData.AssetName.ToString()); - AssetJsonObject->SetStringField(TEXT("ViolatorAssetPath"), AssetData.ObjectPath.ToString()); + AssetJsonObject->SetStringField(TEXT("ViolatorAssetPath"), AssetData.GetObjectPathString()); AssetJsonObject->SetStringField(TEXT("ViolatorFullName"), AssetData.GetFullName()); //@TODO: Thumbnail export? diff --git a/Source/Linter/Private/LinterContentBrowserExtensions.cpp b/Source/Linter/Private/LinterContentBrowserExtensions.cpp index d6f81b3..a51e0c0 100644 --- a/Source/Linter/Private/LinterContentBrowserExtensions.cpp +++ b/Source/Linter/Private/LinterContentBrowserExtensions.cpp @@ -86,7 +86,7 @@ void FLinterContentBrowserExtensions::InstallHooks(FLinterModule* LinterModule, { const FAssetData& Asset = *AssetIt; // Cannot rename redirectors or classes or cooked packages - if (!Asset.IsRedirector() && Asset.AssetClass != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly)) + if (!Asset.IsRedirector() && Asset.AssetClassPath.GetAssetName() != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly)) { if (Asset.GetClass()->IsChildOf(UBlueprint::StaticClass())) { @@ -123,7 +123,7 @@ void FLinterContentBrowserExtensions::InstallHooks(FLinterModule* LinterModule, { const FAssetData& Asset = *AssetIt; // Cannot rename redirectors or classes or cooked packages - if (!Asset.IsRedirector() && Asset.AssetClass != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly)) + if (!Asset.IsRedirector() && Asset.AssetClassPath.GetAssetName() != NAME_Class && !(Asset.PackageFlags & PKG_FilterEditorOnly)) { bAnyAssetCanBeRenamed = true; break; diff --git a/Source/Linter/Private/UI/LintReport.cpp b/Source/Linter/Private/UI/LintReport.cpp index 4533b2c..1a63ab2 100644 --- a/Source/Linter/Private/UI/LintReport.cpp +++ b/Source/Linter/Private/UI/LintReport.cpp @@ -282,7 +282,7 @@ void SLintReport::Rebuild(const ULintRuleSet* SelectedLintRuleSet) { AssetData = UniqueViolatorViolations[0]->ViolatorAssetData; AssetJsonObject->SetStringField(TEXT("ViolatorAssetName"), AssetData.AssetName.ToString()); - AssetJsonObject->SetStringField(TEXT("ViolatorAssetPath"), AssetData.ObjectPath.ToString()); + AssetJsonObject->SetStringField(TEXT("ViolatorAssetPath"), AssetData.GetObjectPathString()); AssetJsonObject->SetStringField(TEXT("ViolatorFullName"), AssetData.GetFullName()); //@TODO: Thumbnail export? diff --git a/Source/Linter/Private/UI/LintReportAssetError.cpp b/Source/Linter/Private/UI/LintReportAssetError.cpp index 4191bb9..c5ac180 100644 --- a/Source/Linter/Private/UI/LintReportAssetError.cpp +++ b/Source/Linter/Private/UI/LintReportAssetError.cpp @@ -112,3 +112,4 @@ void SLintReportAssetError::Construct(const FArguments& Args) ]; } +#undef LOCTEXT_NAMESPACE \ No newline at end of file diff --git a/Source/Linter/Private/UI/LintReportRuleDetails.cpp b/Source/Linter/Private/UI/LintReportRuleDetails.cpp index c23336b..9a61448 100644 --- a/Source/Linter/Private/UI/LintReportRuleDetails.cpp +++ b/Source/Linter/Private/UI/LintReportRuleDetails.cpp @@ -59,7 +59,7 @@ void SLintReportRuleDetails::Construct(const FArguments& Args) FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked(TEXT("AssetRegistry")); IAssetRegistry& AssetRegistry = AssetRegistryModule.Get(); - RuleAssetData = AssetRegistry.GetAssetByObjectPath(FName(*BrokenRule->GetPathName()), true); + RuleAssetData = AssetRegistry.GetAssetByObjectPath(FSoftObjectPath(*BrokenRule->GetPathName()), true); FText RuleAssetPath; if (RuleAssetData.IsValid()) { diff --git a/Source/Linter/Private/UI/LintReportRuleError.cpp b/Source/Linter/Private/UI/LintReportRuleError.cpp index 6443b06..7c7b916 100644 --- a/Source/Linter/Private/UI/LintReportRuleError.cpp +++ b/Source/Linter/Private/UI/LintReportRuleError.cpp @@ -44,7 +44,7 @@ void SLintReportRuleError::Construct(const FArguments& Args) FContentBrowserModule& ContentBrowserModule = FModuleManager::Get().LoadModuleChecked("ContentBrowser"); FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked(TEXT("AssetRegistry")); TArray AssetDatas; - AssetDatas.Push(AssetRegistryModule.Get().GetAssetByObjectPath(RuleViolation.Get()->ViolatorAssetData.ObjectPath)); + AssetDatas.Push(AssetRegistryModule.Get().GetAssetByObjectPath(RuleViolation.Get()->ViolatorAssetData.ToSoftObjectPath())); ContentBrowserModule.Get().SyncBrowserToAssets(AssetDatas); }) ] diff --git a/Source/Linter/Private/UI/LintWizard.cpp b/Source/Linter/Private/UI/LintWizard.cpp index 0243313..cbcffda 100644 --- a/Source/Linter/Private/UI/LintWizard.cpp +++ b/Source/Linter/Private/UI/LintWizard.cpp @@ -47,7 +47,9 @@ void SLintWizard::Construct(const FArguments& InArgs) IAssetRegistry& AssetRegistry = AssetRegistryModule.Get(); TArray FoundRuleSets; - AssetRegistry.GetAssetsByClass(ULintRuleSet::StaticClass()->GetFName(), FoundRuleSets, true); + const UClass* LintRuleSetClass = ULintRuleSet::StaticClass(); + FTopLevelAssetPath LintRuleTopLevelAssetPath(FName(LintRuleSetClass->GetPackage()->GetPathName()), LintRuleSetClass->GetFName()); + AssetRegistry.GetAssetsByClass(LintRuleTopLevelAssetPath, FoundRuleSets, true); // Attempt to get all RuleSets in memory so that linting tools are better aware of them for (const FAssetData& RuleSetData : FoundRuleSets) @@ -268,7 +270,9 @@ void SLintWizard::Construct(const FArguments& InArgs) FARFilter Filter; Filter.bRecursivePaths = true; Filter.PackagePaths.Add("/Game"); - Filter.ClassNames.Add("ObjectRedirector"); + const UClass* ObjectRedirectorClass = UObjectRedirector::StaticClass(); + FTopLevelAssetPath ObjectRedirectorTopLevelAssetPath(FName(ObjectRedirectorClass->GetPackage()->GetPathName()), ObjectRedirectorClass->GetFName()); + Filter.ClassPaths.Add(ObjectRedirectorTopLevelAssetPath); // Query for a list of assets in the selected paths TArray AssetList; @@ -279,7 +283,7 @@ void SLintWizard::Construct(const FArguments& InArgs) TArray ObjectPaths; for (const auto& Asset : AssetList) { - ObjectPaths.Add(Asset.ObjectPath.ToString()); + ObjectPaths.Add(Asset.GetObjectPathString()); } ScopedSlowTask.EnterProgressFrame(0.25f, LOCTEXT("Linter.FixUpRedirects.LoadingRedirectors", "Loading redirectors...")); diff --git a/Source/Linter/Private/UI/SAssetLinkWidget.cpp b/Source/Linter/Private/UI/SAssetLinkWidget.cpp index 36e5ea1..dfd295e 100644 --- a/Source/Linter/Private/UI/SAssetLinkWidget.cpp +++ b/Source/Linter/Private/UI/SAssetLinkWidget.cpp @@ -26,7 +26,7 @@ void SAssetLinkWidget::Construct(const FArguments& Args) FContentBrowserModule& ContentBrowserModule = FModuleManager::Get().LoadModuleChecked("ContentBrowser"); FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked(TEXT("AssetRegistry")); TArray AssetDatas; - AssetDatas.Push(AssetRegistryModule.Get().GetAssetByObjectPath(AssetData.Get().ObjectPath)); + AssetDatas.Push(AssetRegistryModule.Get().GetAssetByObjectPath(AssetData.Get().ToSoftObjectPath())); ContentBrowserModule.Get().SyncBrowserToAssets(AssetDatas); }) ] diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Compiles.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Compiles.h index b6629ef..0f6d07f 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Compiles.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Compiles.h @@ -3,6 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Compiles.generated.h" diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MaxNodes.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MaxNodes.h index 6b86d84..d91ae83 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MaxNodes.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MaxNodes.h @@ -3,6 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Funcs_MaxNodes.generated.h" diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MustHaveReturn.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MustHaveReturn.h index 0bc90e6..881336b 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MustHaveReturn.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_MustHaveReturn.h @@ -3,6 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Funcs_MustHaveReturn.generated.h" diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_PublicDescriptions.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_PublicDescriptions.h index 6978c6e..08a0514 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_PublicDescriptions.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Funcs_PublicDescriptions.h @@ -3,6 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Funcs_PublicDescriptions.generated.h" diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_LooseNodes.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_LooseNodes.h index a001355..a904b74 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_LooseNodes.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_LooseNodes.h @@ -3,7 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" - +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_LooseNodes.generated.h" UCLASS(BlueprintType, Blueprintable, Abstract) diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_EditableMustHaveTooltip.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_EditableMustHaveTooltip.h index 97dc55c..fc8a43b 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_EditableMustHaveTooltip.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_EditableMustHaveTooltip.h @@ -3,7 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" - +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Vars_EditableMustHaveTooltip.generated.h" UCLASS(BlueprintType, Blueprintable, Abstract) diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NoConfigFlag.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NoConfigFlag.h index d56d84b..ff99d1d 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NoConfigFlag.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NoConfigFlag.h @@ -3,7 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" - +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Vars_NoConfigFlag.generated.h" UCLASS(BlueprintType, Blueprintable, Abstract) diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NonAtomic.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NonAtomic.h index 8342e0a..feff7e0 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NonAtomic.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_NonAtomic.h @@ -3,7 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" - +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Vars_NonAtomic.generated.h" UCLASS(BlueprintType, Blueprintable, Abstract) diff --git a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_PluralArrays.h b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_PluralArrays.h index 8219752..8c2d75f 100644 --- a/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_PluralArrays.h +++ b/Source/Linter/Public/LintRules/LintRule_Blueprint_Vars_PluralArrays.h @@ -3,7 +3,7 @@ #include "CoreMinimal.h" #include "LintRule.h" - +#include "LintRules/LintRule_Blueprint_Base.h" #include "LintRule_Blueprint_Vars_PluralArrays.generated.h" UCLASS(BlueprintType, Blueprintable, Abstract) diff --git a/Source/Linter/Public/LinterCommandlet.h b/Source/Linter/Public/LinterCommandlet.h index 3fa342e..0daab71 100644 --- a/Source/Linter/Public/LinterCommandlet.h +++ b/Source/Linter/Public/LinterCommandlet.h @@ -10,7 +10,6 @@ class ULinterCommandlet : public UCommandlet GENERATED_UCLASS_BODY() //~ Begin UCommandlet Interface virtual int32 Main(const FString& Params) override; - //~ End UCommandlet Interface }; diff --git a/Source/Linter/Public/UI/LintWizard.h b/Source/Linter/Public/UI/LintWizard.h index fee641d..5d29553 100644 --- a/Source/Linter/Public/UI/LintWizard.h +++ b/Source/Linter/Public/UI/LintWizard.h @@ -3,6 +3,7 @@ #pragma once #include "CoreMinimal.h" +#include "UObject/ObjectRedirector.h" #include "Widgets/SCompoundWidget.h" #include "Widgets/Workflow/SWizard.h" #include "UI/SStepWidget.h"