Skip to content

Commit 42de2a5

Browse files
empty2filljwindgassen
authored andcommitted
Sort Class Naming Conventions on PreSave
1 parent b44e376 commit 42de2a5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Plugins/Linter/Source/Linter/Private/LinterNamingConvention.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,10 @@ void ULinterNamingConvention::SortConventions()
146146
return false;
147147
});
148148
}
149+
150+
void ULinterNamingConvention::PreSave(const class ITargetPlatform* TargetPlatform)
151+
{
152+
Super::PreSave(TargetPlatform);
153+
154+
SortConventions();
155+
}

Plugins/Linter/Source/Linter/Public/LinterNamingConvention.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class LINTER_API ULinterNamingConvention : public UDataAsset
7575
UFUNCTION(Blueprintcallable, Category = "Conventions")
7676
void SortConventions();
7777

78+
virtual void PreSave(const class ITargetPlatform* TargetPlatform) override;
79+
7880
protected:
7981

8082

0 commit comments

Comments
 (0)