美文网首页
Jenkins iOS SLOCCount 代码行数检测实践

Jenkins iOS SLOCCount 代码行数检测实践

作者: 十一岁的加重 | 来源:发表于2017-12-23 19:40 被阅读37次
    image.png
    
    
    export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
    cd ${WORKSPACE}
    
    jenkinsDownloadedPath=${JENKINS_HOME}/workspace/${JOB_NAME}/
    workspacePath=$jenkinsDownloadedPath"你的项目名称"
    
    sloccount --duplicates --wide --details $workspacePath $workspacePath $workspacePath web > sloccount.sc
    
    

    可以看到我们可以针对每个文件,每个文件夹进行代码排行,方便检测代码过多的文件,进行相关的优化

    image.png

    相关文章

      网友评论

          本文标题:Jenkins iOS SLOCCount 代码行数检测实践

          本文链接:https://www.haomeiwen.com/subject/nviqgxtx.html