Content Deep Dive
Manage Duplicated Code with Sonar
Blog post from Sonar
Post Details
Company
Date Published
Author
Evgeny Mandrikov
Word Count
1,219
Company Posts That Month
Language
English
Hacker News Points
-
Summary
Sonar can help improve the quality of code by detecting duplicated or cloned code, which can lead to bugs, increased maintenance costs, and decreased productivity. Duplicated code can be created through various means, including copying and pasting, reusing existing code without modification, generating code with tools, and lack of abstraction mechanisms in programming languages. Sonar has its own library called sonar-cpd to detect duplicated code, which offers improved performance, accuracy, and control compared to previous methods. Additionally, Sonar can now detect cross-project duplications, providing more opportunities for abstracting and mutualizing code.
Trends Found in this Post
No tracked trend matches for this post yet.