четверг, 19 декабря 2013 г.

3.0.7 Code duplication

JS:  +543 lines, +118 dup lines (+21.73%),  19.62% overall (+0.01%)
CS: +246 lines, 0 dup lines (0%), 5.04% overal (0%)







New code duplication:

Found 25 duplicate lines in the following files:
  Between lines 9 and 39 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\component.board.editor.customize.board.js
  Between lines 9 and 38 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\component.board.editor.customize.list.js
Found 12 duplicate lines in the following files:
 Between lines 34 and 47 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\model.timeList.js
 Between lines 11 and 23 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\model.timeList.js
Found 11 duplicate lines in the following files:
 Between lines 17 and 30 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.editor.customize\model.board.editor.customize.editor.js
 Between lines 15 and 28 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.editor.customize\model.board.editor.customize.editor.list.js
Found 11 duplicate lines in the following files:
 Between lines 1 and 14 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.editor.customize\model.board.editor.customize.editor.js
 Between lines 1 and 13 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.editor.customize\model.board.editor.customize.editor.list.js
Found 10 duplicate lines in the following files:
 Between lines 6 and 18 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\component.board.editor.customize.types.list.js
 Between lines 6 and 18 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\component.board.editor.customize.types.js
Found 9 duplicate lines in the following files:
 Between lines 150 and 158 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\settings\settingsManager.js
 Between lines 128 and 136 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\store\acid.store.js
 Between lines 176 and 184 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\libs\boardSettings\model.board.settings.js
Found 9 duplicate lines in the following files:
 Between lines 86 and 96 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\extensions\menu\extensions.menu.converterToTask.js
 Between lines 56 and 65 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\components\extensions\menu\extensions.menu.createTask.js
Found 9 duplicate lines in the following files:
 Between lines 707 and 715 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.customize.units\board.customize.units.oneToOne.js
 Between lines 724 and 732 in d:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\models\board.customize.units\board.customize.units.oneToOne.js


пятница, 15 ноября 2013 г.

3.0.5 Code duplication


JS:  +2783 lines -175 dup lines (-6.29%), 19.74% overall (-0.79%)
CS: +82 lines -12 dup lines (-14.63%), 5.09% overal (-0.01%)



The most significant added JS duplication:

Found 22 duplicate lines in the following files:
 Between lines 128 and 152 in D:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\ui\templates\list_\grid.entity\ui.template.list.grid.entity.row.js
 Between lines 65 and 90 in D:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\ui\templates\list_\grid.entity\testplanrun\ui.template.list.grid.entity.row.testcaserun.js
 Between lines 90 and 114 in D:\src\trunk\Utilities\..\Code\Main\Tp.Web\JavaScript\tau\scripts\tau\ui\templates\list_\grid.entity\testplan\ui.template.list.grid.entity.row.testplanrun.js




https://docs.google.com/spreadsheet/ccc?key=0ArF9ExjGEio4dENPWXVpTUdNTTc4RGRHWVBQOG9mZHc&usp=sharing

пятница, 23 августа 2013 г.

Git Extensions + Hub flow + Git

Here is some tips how to somehow integrate GitHub and Hubflow to Git Extensions:

Git Extensions supports scripting, that could be integrated either in UI or autostart before/after some actions.

I've created the following scripts for Git Extension, hope they will be useful:

Flow feature start, create pull request and prune remote branches:

To add these scripts go to Settings->Settings->Scripts:

  1. Prune remote - git / remote prune origin
  2. HF Feature start - git / hf feature start {UserInput} - it will ask for feature name
  3. Create pull requests - git / hub pull-request -b TargetProcess:develop -h TargetProcess:{cLocalBranch}

For pull requests you need to download a hub extension for git from here and put in your Git\Bin folder. It just nothing than a https://github.com/github/hub script. As far as git bash we are using could not start the hub script directly, I've just renamed it to git-hub to allow run it as standard git command, i.e. git hub pull-request.