From 057f959139fc355a7ee58d1e6951d26922d1861f Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Thu, 30 Nov 2023 16:53:10 +0300 Subject: [PATCH] Removed duplication for MAGIC_NUMBER in diktat-analysis.yml (#2864) - removed duplication in diktat-analysis.yml - fixed reference to param --- diktat-analysis.yml | 8 +++----- .../save/backend/service/LnkExecutionTestSuiteService.kt | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/diktat-analysis.yml b/diktat-analysis.yml index 0cbfaa0bd1..a64654adbc 100644 --- a/diktat-analysis.yml +++ b/diktat-analysis.yml @@ -107,8 +107,10 @@ configuration: valueArgument: true valueParameter: true +# reduces speed of development on the FE +# will remove it by for now - name: MAGIC_NUMBER - enabled: true + enabled: false - name: COMPLEX_EXPRESSION enabled: true - name: USE_DATA_CLASS @@ -133,7 +135,3 @@ - GetMapping - PostMapping - Repository - # reduces speed of development on the FE - # will remove it by for now -- name: MAGIC_NUMBER - enabled: false diff --git a/save-backend/src/main/kotlin/com/saveourtool/save/backend/service/LnkExecutionTestSuiteService.kt b/save-backend/src/main/kotlin/com/saveourtool/save/backend/service/LnkExecutionTestSuiteService.kt index 07b443f61c..4258e0053c 100644 --- a/save-backend/src/main/kotlin/com/saveourtool/save/backend/service/LnkExecutionTestSuiteService.kt +++ b/save-backend/src/main/kotlin/com/saveourtool/save/backend/service/LnkExecutionTestSuiteService.kt @@ -41,7 +41,7 @@ class LnkExecutionTestSuiteService( } /** - * @param [lnkExecutionTestSuites] link execution to testSuites + * @param lnkExecutionTestSuites link execution to testSuites */ fun saveAll(lnkExecutionTestSuites: List): List = lnkExecutionTestSuiteRepository.saveAll(lnkExecutionTestSuites) }