Skip to main content

Leveraging Code Smell Detection with Inter-smell Relations

  • Conference paper
Book cover Extreme Programming and Agile Processes in Software Engineering (XP 2006)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4044))

Abstract

The variety of code smells deserves a numerous set of detectors capable of sensing them. There exist several sources of data that may be examined: code metrics, existence of particular elements in an abstract syntax tree, specific code behavior or subsequent changes in the code. Another factor that can be used for this purpose is the knowledge of other, already detected or rejected smells. In the paper we define and analyze different relations that exist among smells and provide tips how they could be exploited to alleviate detection of other smells.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Pearse, T., Oman, P.: Maintainability Measurements on Industrial Source Code Maintenance Activities. In: Proceedings of International Conference of Software Maintenance, Opio (France), pp. 295–303 (1995)

    Google Scholar 

  2. Beck, K.: Extreme Programming Explained. Embrace Change. Addison-Wesley, Reading (2000)

    Google Scholar 

  3. Fowler, M.: Refactoring. Improving Design of Existing Code. Addison-Wesley, Reading (1999)

    Google Scholar 

  4. Walter, B., Pietrzak, B.: Multi-criteria Detection of Bad Smells in the Code. In: Baumeister, H., Marchesi, M., Holcombe, M. (eds.) XP 2005. LNCS, vol. 3556, pp. 154–161. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  5. The Apache Jakarta Project: Tomcat 5.5.4 (January 2005), http://jakarta.apache.org/tomcat/index.html

  6. Chidamber, S.R., Kemerer, C.F.: A Metrics Suite from Object-Oriented Design. IEEE Transactions on Software Engineering 20(6), 476–493 (1994)

    Article  Google Scholar 

  7. Marinescu, R.: Using Object-oriented metrics for Automatic Design Flaws Detection in Large Scale Systems. In: Demeyer, S., Bosch, J. (eds.) ECOOP 1998 Workshops. LNCS, vol. 1543, pp. 252–255. Springer, Heidelberg (1998)

    Google Scholar 

  8. Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns. Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1995)

    Google Scholar 

  9. Tomcat Defect Metric Report (visited in April 2005), http://www.reasoning.com/pdf/Tomcat_Metric_Report.pdf

  10. NASA Software Assurance Technology Center: SATC Historical Metrics Database (January 2005), http://satc.gsfc.nasa.gov/metrics/codemetrics/oo/java/index.html

  11. Pietrzak, B., Walter, B.: Exploring Bad Code Smells Dependencies. In: Zielinski, K., Szmuc, T. (eds.) Software Engineering: Evolution and Emerging Technologies. Frontiers in Artificial Intelligence and Applications, vol. 130, pp. 353–364

    Google Scholar 

  12. Łukasiewicz, J.: Die logischen Grundlagen der Wahrscheinilchkeitsrechnung. Kraków, 1913. In: Borkowski, L., Łukasiewicz, J. (eds.) Selected Works. North Holland Publishing Company, Amsterdam, London, Polish Scientific Publishers, Warsaw (1970)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Pietrzak, B., Walter, B. (2006). Leveraging Code Smell Detection with Inter-smell Relations. In: Abrahamsson, P., Marchesi, M., Succi, G. (eds) Extreme Programming and Agile Processes in Software Engineering. XP 2006. Lecture Notes in Computer Science, vol 4044. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11774129_8

Download citation

  • DOI: https://doi.org/10.1007/11774129_8

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-35094-1

  • Online ISBN: 978-3-540-35095-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics