We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Sorting the output with the items with the most amount of duplicate first would allow users to see where the biggest refactoring wins are at.
Describe the solution you'd like
Have a flag that enables sorting by number of duplicate lines detected, for each item found
The text was updated successfully, but these errors were encountered:
As I understand you are going to sort summary results with a list of languages.
Sorry, something went wrong.
If you are using the HTML reporter you can order them with this bit of JavaScript, I know its not the ideal solution but it works well.
let elements = document.querySelectorAll('#txt-clones .py-4'); elements = Array.from(elements); elements.sort((a, b) => b.textContent.length - a.textContent.length); let parent = elements[0].parentNode; elements.forEach(el => el.parentNode.removeChild(el)); elements.forEach(el => parent.appendChild(el));
If you are using the HTML reporter you can order them with this bit of JavaScript, I know its not the ideal solution but it works well. let elements = document.querySelectorAll('#txt-clones .py-4'); elements = Array.from(elements); elements.sort((a, b) => b.textContent.length - a.textContent.length); let parent = elements[0].parentNode; elements.forEach(el => el.parentNode.removeChild(el)); elements.forEach(el => parent.appendChild(el));
it works, but is it porssible to add this as a feature ?
No branches or pull requests
Is your feature request related to a problem? Please describe.
Sorting the output with the items with the most amount of duplicate first would allow users to see where the biggest refactoring wins are at.
Describe the solution you'd like
Have a flag that enables sorting by number of duplicate lines detected, for each item found
The text was updated successfully, but these errors were encountered: