Towards an Automated Approach to Detect Code Smells in ReScript

  • Maykon Nunes UFC
  • Carla Bezerra UFC
  • Emanuel Coutinho UFC

Abstract


Component-based development has become a dominant paradigm in front-end, with languages and frameworks evolving to support modular and reusable UI elements. While extensive research exists on detecting code smells in JAVASCRIPT frameworks like REACT, similar analyses for RESCRIPT, a statically typed functional language that compiles to JavaScript and integrates with REACT, remain unexplored. This work aims to fill this gap by presenting a prototype static analysis tool capable of detecting relevant code smells in RESCRIPT applications.

References

Fard, A. M. and Mesbah, A. (2013). Jsnose: Detecting javascript code smells. In 2013 IEEE 13th International Working Conference on Source Code Analysis and Manipulation (SCAM), pages 116–125.

Ferreira, F., Borges, H., and Valente, M. (2021). On the (un-)adoption of javascript front-end frameworks. Software: Practice and Experience, 52:947–966.

Ferreira, F. and Valente, M. T. (2023). Detecting code smells in react-based web apps. Information and Software Technology, 155:107111.

Fowler, M. (2018). Refactoring. Addison-Wesley Professional.

Walker, A., Das, D., and Cerný, T. (2020). Automated code-smell detection in microservices through static analysis: A case study. Applied Sciences, 10:1–20.

Zakeri-Nasrabadi, M., Parsa, S., Esmaili, E., and Palomba, F. (2023). A systematic literature review on the code smells datasets and validation mechanisms. ACM Comput. Surv., 55(13s).
Published
2025-09-23
NUNES, Maykon; BEZERRA, Carla; COUTINHO, Emanuel. Towards an Automated Approach to Detect Code Smells in ReScript. In: WORKSHOP ON SOFTWARE ENGINEERING FOR FUNCTIONAL PROGRAMMING (SE4FP), 1. , 2025, Recife/PE. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2025 . p. 45-50. DOI: https://doi.org/10.5753/se4fp.2025.14841.