Hi, we are using SonarQube at our company, and we have a recurrent problem concerning duplicated blocks in data headers.
{
text: vm.$t(".."),
value: "...",
sortable: false,
},
{
text: vm.$t("..."),
value: "...",
sortable: false,
},
{
text: vm.$t("..."),
value: "...",
sortable: false,
},
I know that the analyzer doesn’t check for the strings, and that’s why there’s a lot of theses blocks that are flagged as dupplication, but in reality that’s not duplication, that’s expected.
How to fix this by not using a solution that will complexify the code for nothing like using a method to construct the header ?