or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Reduce Code Clones from FT code
Proposal Overview
In general, by copying and pasting, code clones makes development more efficient. However, it also makes maintenance more complicated and difficult.
a tool called jscpd is used to find out the code clone rate, and according to the following results, it is clear that there are many code clones in Tacker's FT code.
[jscpd] https://www.npmjs.com/package/jscpd
In particular, since sol_kubernetes's code clone rate is up to 40% , we think it will be better to refactor to make future maintenance easier.
To improve this situation, a base file needs to be created and LCM operations as well as common test functions code should move into it .
Also, code clone rate of sol is about 30%, although the rate is not as high as that of sol-Kubernetes, we would like to deal with it if we can afford it.
Datail Datas
For each job's code, the duplicate lines data for each file is as follows:
legacy
sol
sol_kubernetes
sol_separated_nfvo
test_vnf_instance_with_user_data_nfvo_separate.py