zoukankan      html  css  js  c++  java
  • Source Monitor Tutorial

    Source Monitor is a code analyzing tool that is capable of finding the complexity for Java, C++、C、C#、Delphi、Visual Basic and HTML source codes. It's a standalone software which does not rely upon any specific IDE to work. What's even better is that it is a Free Software. In this tutorial I'll show you how to install and use this convenient tool analyze some code.

    1. Download Source Monitor from http://www.campwoodsw.com/sourcemonitor.html. Run the setup wizard.

    2. Click "Next" to install. Choose the installaion path, etc. Nothing unusual.

    3. Open the installed software. In the welcome screen, click "Start SourceMonitor" to begin.

    4. Before proceeding to analyze some code. Let's open the settings page and tick "allow parsing of UTF-8 files" as some of the source code files may be stored in UTF-8 format.

    5. Click "New..." to begin analyze the code. In Step1, we select the language of the code. Here "Java" is chosen as we're going to analyze a Java project.

    6. In Source Monitor, each analysis is seen as a "Project". In this step, we choose where to save the data files of this analysis.

    7. In Step 3, select the path of your source files.

    8. In Step 4, specify some options for this analysis. Here we choose to ignore any blank lines in the source code.

    9. In the following step, choose the desired format to save the analysis project file.

    10. Name the Project Checkpoint. Here we keep the default name, which is "Baseline".

    11. In the final step, review a summary of the project settings. If it's OK, click "Finish" to start the actual analysis process.

    12. Then it will ask you to choose which files to analyze. By default, it will automatically pick out all the files whose extension matches the language that we've selected in Step 1. In this tutorial, as we've selected "Java" in the first step, all .java files are selected automatically. Click "OK" to proceed.

    13. A moment later, the job will finish and shows a general report the whole project.

    14. Double click it will bring you to a new screen where the detailed reports of each file are shown.

    This brings the tutorial to an end. If you're interested in more information about Source Monitor, you can visit its official website http://www.campwoodsw.com/sourcemonitor.html

    Your feedbacks and suggestions are greatly appreciated.

  • 相关阅读:
    使用 jfinal + beetl + bootstrap 实现商城展示及管理系统
    关于Node.js的__dirname,__filename,process.cwd(),./文件路径的一些坑
    canvas离屏、旋转效果实践——旋转的雪花
    走一步再走一步,揭开co的神秘面纱
    用javascript写一个emoji表情插件
    基于HTML5快速搭建TP-LINK电信拓扑设备面板
    百度地图获取规划路径信息
    devicePixelRatio 那些事儿
    怎样用JavaScript和HTML5 Canvas绘制图表
    首次写iPad布局感想(H5)
  • 原文地址:https://www.cnblogs.com/tuhz/p/4521149.html
Copyright © 2011-2022 走看看