Sha256: 3400ed858aa6b1ed8b1e946dee2aeb680480c6fc5f95e7fcddc0a5cb802ac513

Contents?: true

Size: 532 Bytes

Versions: 87

Compression:

Stored size: 532 Bytes

Contents

#!/bin/sh -e

# Script generates code duplication report for Violations or DRY Jenkins plugins.

if [[ $# < 2 ]]
then 
    echo "usage: $0 EXCLUDE_PATTERN OUTPUT_FILENAME"
    exit 1
fi

# load variables
patterns="$1"
output="$2"
excludes=""

for pattern in $(echo ${patterns} | tr "|" "\n")
do
    excludes="${excludes} -excludes=/${pattern}"
done

currentScriptDir="$(dirname "$0")"

java -jar "${currentScriptDir}/../utils/simian-2.3.33.jar" "**/*.m" "**/*.h" ${excludes} -threshold=5 -failOnDuplication- -formatter=xml:${output}

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
nixenvironment-0.0.161 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.160 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.159 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.158 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.157 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.156 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.155 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.154 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.153 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.152 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.150 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.148 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.141 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.147 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.146 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.145 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.144 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.143 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.142 legacy/GenerateCodeDuplicationReport.sh
nixenvironment-0.0.138.1 legacy/GenerateCodeDuplicationReport.sh