Exclude code of unittests from SAM analysis 54/277754/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 13 Jul 2022 01:54:52 +0000 (10:54 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 13 Jul 2022 01:54:52 +0000 (10:54 +0900)
- Issue:
When we get SAM score using automation enviroment, the DC score is
effected by unittest code.

- Solution:
This patch excludes files for test code from SAM analysis. Through this
change, the SAM score is calculated only refering implementation.

Change-Id: I9dd67868727db0c257c9d83896441dc42337a018
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
.ahub/sam/exclude.txt [new file with mode: 0644]
sam_cli_sample_tizen.cfg [deleted file]

diff --git a/.ahub/sam/exclude.txt b/.ahub/sam/exclude.txt
new file mode 100644 (file)
index 0000000..c1334d3
--- /dev/null
@@ -0,0 +1 @@
+/tests/
\ No newline at end of file
diff --git a/sam_cli_sample_tizen.cfg b/sam_cli_sample_tizen.cfg
deleted file mode 100755 (executable)
index 3e928a6..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (C) 2018 The SAM Tool Authors. All rights reserved.
-#
-#               SAM (S/W Architecture Maturity)
-#
-# Samsung Research,
-# Samsung Electronics Co., Ltd.
-#
-# This software and its documentation are confidential and proprietary
-# information of Samsung Electronics Co., Ltd.  No part of the software and
-# documents may be copied, reproduced, transmitted, translated, or reduced to
-# any electronic medium or machine-readable form without the prior written
-# consent of Samsung Electronics.
-#
-# Samsung Electronics makes no representations with respect to the contents,
-# and assumes no responsibility for any errors that might appear in the
-# software and documents. This publication and the contents here of are subject
-# to change without notice.
-#
-
-################################
-# Project Name
-################################
-SAM_PRJ_NAME="tts_refactoring"
-
-
-################################
-# Source Code
-################################
-BUILD_CMD="gbs build -A armv7l -P tizen_latest --include-all --clean"
-CLEAN_CMD="gbs build -A armv7l -P tizen_latest --include-all --clean"
-SRC_PATH=$PWD
-SRC_LANG="auto_c_cpp"                             # Supported languages : c, java
-SRC_SCOPE="/home/abuild/rpmbuild/BUILD/tts-1.65.4;$SRC_PATH"     # Scoping list
-#SRC_EXCLUDE="config/src_exclude.cfg"    # Excluding list
-
-
-################################
-# SCRA
-################################
-SCRA_SKIP=FALSE                              # Options : TRUE, FALSE
-SCRA_RAW_DATA_PATH=".scap/workspace/scra"
-SCRA_ROOT_TO_CUT="/home/abuild/rpmbuild/BUILD/tts-1.65.4"
-
-
-################################
-# PMD CPD (Duplicated Code)
-################################
-PMD_SKIP=FALSE                              # Options : TRUE, FALSE
-PMD_RAW_DATA_PATH=".scap/workspace/pmd"
-PMD_USE_BUILT_PATH=FALSE                    # Options : TRUE, FALSE
-PMD_ROOT_TO_CUT=$SRC_PATH
-#PMD_EXCLUDE_LIST="config/src_exclude.cfg"  # Excluding list of PMD
-#PMD_RESULT_DETAIL_MODE=FALSE                # Options : TRUE, FALSE
-#PMD_HEAP_SIZE=2048m
-#PMD_ENCODING="utf-8"
-
-
-################################
-# Analysis Hub (SCAP)
-################################
-SCAP_TOOL_PATH="hub/code-analysis-hub/bin/scap"
-SCAP=$SCAP_TOOL_PATH
-
-
-################################
-# Advanced Option
-################################
-#ADVANCED_SAM_OPTION="config/sam.cfg"