Skip to content

Commit ddf63df

Browse files
empty2filljwindgassen
authored andcommitted
Sort Class Naming Conventions on PreSave
1 parent 52abc09 commit ddf63df

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Source/Linter/Private/LinterNamingConvention.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,12 @@ void ULinterNamingConvention::SortConventions()
157157

158158
return false;
159159
});
160-
}
160+
}
161+
162+
void ULinterNamingConvention::PreSave(const class ITargetPlatform* TargetPlatform)
163+
{
164+
Super::PreSave(TargetPlatform);
165+
166+
SortConventions();
167+
}
168+
>>>>>>> 99c97f0 (Sort Class Naming Conventions on PreSave):Plugins/Linter/Source/Linter/Private/LinterNamingConvention.cpp

Source/Linter/Public/LinterNamingConvention.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,11 @@ class LINTER_API ULinterNamingConvention : public UDataAsset
7575

7676
UFUNCTION(Blueprintcallable, Category = "Conventions")
7777
void SortConventions();
78-
};
78+
79+
virtual void PreSave(const class ITargetPlatform* TargetPlatform) override;
80+
81+
protected:
82+
83+
84+
85+
};

0 commit comments

Comments
 (0)