From d4f3b5a66d99f9ec4a9aba8af5e07b6d1eeb49e3 Mon Sep 17 00:00:00 2001
From: tangjie02 <tangjie02@kylinsec.com.cn>
Date: Thu, 25 Aug 2022 19:19:24 +0800
Subject: [PATCH 1/3] feature(sonarqube): turn off sonarqube check to
 get_error_desc function.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- 关闭sonarqube对get_error_desc函数检查

Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
---
 lib/base/error.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/base/error.cpp b/lib/base/error.cpp
index 5a95605..0dcbcee 100644
--- a/lib/base/error.cpp
+++ b/lib/base/error.cpp
@@ -23,6 +23,8 @@ CCError::CCError()
 {
 }
 
+// sonarqube off
+
 std::string CCError::get_error_desc(CCErrorCode error_code, bool attach_error_code)
 {
     std::string error_desc;
@@ -427,4 +429,7 @@ std::string CCError::get_error_desc(CCErrorCode error_code, bool attach_error_co
     }
     return error_desc;
 }
+
+// sonarqube on
+
 }  // namespace Kiran
-- 
2.33.0

