﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5905	Clean up large copy pasted code parts in OMEdit	Anatoly Trosinenko	Adeel Asghar	"While adding a Call Function context menu entry back in 2018, I have spotted large amounts of copy-pasted code inside the OMEdit C++ codebase. While copy-pasted code does not introduce any bugs on its own, such refactoring could improve code maintainability a bit. Unfortunately, I have not managed to investigate it better since then. Creating a separate issue, because the [https://github.com/OpenModelica/OMEdit/pull/172 original pull request] was closed long ago.

For example, at the time of writing, both `HTMLEditor.cpp` and `OMSimulatorEditor.cpp` files have 50-line `highlightMultiLine` functions. Such cases can be found by using Copy-Paste Detector component from [https://pmd.github.io/ PMD]. Meanwhile, it has Modelica support since 6.21.0 version.

You could see the [https://github.com/OpenModelica/OMEdit/pull/172 original discussion] for more details, as well."	enhancement	new	low	Future	OMEdit			copy-paste, pmd, cpd	
