-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address 'Code Clone Detection' results #933
Comments
Think this may be a good idea to do. |
ok! |
eliminated the exact matches, moving to 2.4 for the rest |
is this a tracked item for this release? |
I'd prefer to do this on 3.0 branch |
lower priority due to wizard code, lets do in 3.0 Are we doing the test on generated projects as well? |
As we aim to only have minimal, necessary, code in the generated projects and the generated code should be easy to understand, I would not expect any clones to be found. If any were found, removing the duplication would likely make the generated code harder to read/understand. |
lets just do a sanity check for generated projects but i do agree we chances are this would be a low chance we would dup code per your statement @mrlacey |
We have refactored the duplicated code in the UI and Core projects, and some cases that we thought convenient in the tests. We have ignored the rest of the duplicated code in the tests (adding .codeclonesettings files) since they are initializations and we think it is more understandable that way. In the generated projects, there is only duplicated code when adding Ink Pages, since the initializations of the services are very similar, and in a configuration method of the CameraControl, which contains 2 similar switch statements. We think that the code is easier to understand as it is, so we think there is no action to take here. |
verified in dev |
The 'Code Clone Detection' functionality in VSEnt highlights some areas where we can improve the generator code base.
I see 705 lines of Cloned Code.
Some of the duplication in test code might not be worth removing but there's strong evidence of someone having abused cut-and-paste when it comes to other code.
The text was updated successfully, but these errors were encountered: