eprintid: 78737 rev_number: 10 eprint_status: archive userid: 12460 dir: disk0/00/07/87/37 datestamp: 2026-10-06 06:42:48 lastmod: 2026-10-06 06:42:48 status_changed: 2026-10-06 06:42:48 type: thesis metadata_visibility: show contact_email: muh.khabib@uin-suka.ac.id creators_name: Dwi Rif’an Kurniawan, NIM.: 22106050073 title: RANCANG BANGUN ALAT ELIMINASI DEAD CODE DAN UNUSED DEPENDENSI SEMI-OTOMATIS UNTUK PROYEK JAVASCRIPT / TYPESCRIPT ispublished: pub subjects: 005.12. divisions: Informatika(S1) full_text_status: restricted keywords: Abstract Syntax Tree, dead code, unused dependency, analisis statis, Command Line Interface note: Dr. Agung Fatwanto, S.Si., M.Kom. abstract: The development of JavaScript and TypeScript projects can leave behind dead code and unused dependencies, increasing maintenance complexity and the risk of errors. This study aims to develop a Command Line Interface (CLI)-based tool for semi-automatically detecting and eliminating unused code and dependencies. The system applies Abstract Syntax Tree (AST)-based static analysis to map code declarations and references, along with a dependency graph to trace relationships between files. The elimination process includes candidate selection, user confirmation, backup, and recovery mechanisms. The system was developed iteratively using the Extreme Programming method. Evaluation was conducted on four open-source repositories using naturally occurring anomalies and controlled injected specimens, with the results compared against ground truth established through manual inspection. From 106 test cases, the system produced 100 True Positives, 1 False Positive, and 5 False Negatives, achieving a precision of 99.01%, recall of 95.24%, and F1-score of 97.09%. All post-remediation validation procedures were completed without failures or crashes. These results demonstrate that the AST-based approach performs well, although user review remains necessary for dynamic patterns and behavior that depend on runtime context. date: 2026-08-19 date_type: published pages: 138 institution: UIN SUNAN KALIJAGA YOGYAKARTA department: FAKULTAS SAINS DAN TEKNOLOGI thesis_type: skripsi thesis_name: other citation: Dwi Rif’an Kurniawan, NIM.: 22106050073 (2026) RANCANG BANGUN ALAT ELIMINASI DEAD CODE DAN UNUSED DEPENDENSI SEMI-OTOMATIS UNTUK PROYEK JAVASCRIPT / TYPESCRIPT. Skripsi thesis, UIN SUNAN KALIJAGA YOGYAKARTA. document_url: https://digilib.uin-suka.ac.id/id/eprint/78737/1/22106050073_BAB-I_IV-atau-V_DAFTAR-PUSTAKA.pdf document_url: https://digilib.uin-suka.ac.id/id/eprint/78737/2/22106050073_BAB-II_sampai_SEBELUM-BAB-TERAKHIR.pdf