diff --git a/Plugins/Linter/Source/Linter/Private/LinterCommandlet.cpp b/Plugins/Linter/Source/Linter/Private/LinterCommandlet.cpp index a455379..ecbb731 100644 --- a/Plugins/Linter/Source/Linter/Private/LinterCommandlet.cpp +++ b/Plugins/Linter/Source/Linter/Private/LinterCommandlet.cpp @@ -257,11 +257,11 @@ int32 ULinterCommandlet::Main(const FString& InParams) } } - if (NumErrors > 0 || Switches.Contains(TEXT("TreatWarningsAsErrors")) && NumWarnings > 0) + if (NumErrors > 0 || (Switches.Contains(TEXT("TreatWarningsAsErrors")) && NumWarnings > 0)) { UE_LOG(LinterCommandlet, Display, TEXT("Lint completed with errors. Returning error code 2.")); return 2; } return 0; -} \ No newline at end of file +} diff --git a/Plugins/Linter/Source/Linter/Private/UI/LintReportRuleErrorList.cpp b/Plugins/Linter/Source/Linter/Private/UI/LintReportRuleErrorList.cpp index 4f411a5..bb79247 100644 --- a/Plugins/Linter/Source/Linter/Private/UI/LintReportRuleErrorList.cpp +++ b/Plugins/Linter/Source/Linter/Private/UI/LintReportRuleErrorList.cpp @@ -1,6 +1,6 @@ // Copyright 2019-2020 Gamemakin LLC. All Rights Reserved. -#include "UI/LintReportruleErrorList.h" +#include "UI/LintReportRuleErrorList.h" #include "LinterStyle.h" #include "Widgets/Layout/SBorder.h" #include "EditorStyleSet.h"