LitterBox: A Linter for Scratch Programs

Gordon Fraser, Ute Heuer, Nina Körber, Florian Obermüller, Ewald Wasmeier
2/15/2021
cs.SEcs.PL

Official code: se2p/LitterBox (36 stars, Java, GPL-3.0, last commit 2026-03-07).

Abstract

Creating programs with block-based programming languages like Scratch is easy and fun. Block-based programs can nevertheless contain bugs, in particular when learners have misconceptions about programming.

Show full abstract

Even when they do not, Scratch code is often of low quality and contains code smells, further inhibiting understanding, reuse, and fun. To address this problem, in this paper we introduce LitterBox, a linter for Scratch programs. Given a program or its public project ID, LitterBox checks the program against patterns of known bugs and code smells. For each issue identified, LitterBox provides not only the location in the code, but also a helpful explanation of the underlying reason and possible misconceptions. Learners can access LitterBox through an easy to use web interface with visual information about the errors in the block-code, while for researchers LitterBox provides a general, open source, and extensible framework for static analysis of Scratch programs.

View on arXivView PDF

Code Implementations(1)

se2p/LitterBoxOfficial100%
GPL-3.0

Static code analysis tool for detecting recurring patterns in Scratch projects.

366Java, JavaScriptMar 24, 20208 months agoGPL-3.0
scratch

Similar Papers

Cite this paper

@article{fraser2021litterbox,
  title  = {LitterBox: A Linter for Scratch Programs},
  author = {Gordon Fraser and Ute Heuer and Nina Körber and Florian Obermüller and Ewald Wasmeier},
  year   = {2021},
  eprint = {2102.07440},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.07440}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.07440.svg)](https://codeofpaper.com/paper/2102.07440)

Discussion