Bakalářská práce

Analysis and Extension of the Ruff Linter

Tomáš Brtník
Anotace

Tato práce analyzuje a rozšiřuje Ruff, vysoce výkonný Python linter napsaný v Rustu. Zkoumá strukturu Ruffu, procesy vedoucí k detekci a opravě chyb a inkonzistenící kódu. Pojmenovává nástroje a postupy pro vývoj nových pravidel. Bylo implementováno a vyhodnoceno jedenáct nových pravidel zaměřených na zlepšení kvality kódu Pythonu. Analýzou architektury Ruffu, rozšířením pravidel a jejich praktickou implementaci, tato práce přispívá oblasti statické analýzy.

Abstract

This thesis analyzes and extends Ruff, a high-performance Python linter written in Rust. It examines Ruff's architecture, linting process, and rule development tools. Eleven new lint rules focused on improving Python code quality were implemented and evaluated. This work contributes to static analysis by providing insights into high-performance linter design, rule extension, and practical implementation within a modern linting framework.

Zadání práce
This thesis aims to describe and extend a Python linter, Ruff. Contrary to other Python linters, Ruff is written in Rust. The student will document the structure of Ruff, detailing the various phases of file inspection and their mapping to the parts of the project. Additionally, the student will describe the auxiliary tools provided by Ruff to assist developers in creating new detectors, such as different parsers and analyses of the source code. As a part of the thesis, the student will implement several (10–15) detectors from other linters, with a focus on code quality defects that may be particularly relevant to novice programmers. The effectiveness and performance of these detectors will be evaluated through a comparison with the original implementation.
Práce zkontrolována:
23. 12. 2024 00:59, Mgr. Anna Řechtáčková
Jazyk práce
angličtina angličtina
Termín obhajoby
6. 2. 2025
Práce byla úspěšně obhájena

Vedoucí

Mgr. Anna Řechtáčková
KPSK FI MU

Oponent

RNDr. Samuel Pastva, Ph.D., učo 410286
KPSK FI MU

Masarykova univerzita Fakulta informatiky
Studijní program
Plán
Informatika

Práce na příbuzné téma

Seznam prací, které mají shodná klíčová slova.

  • Přidání souboru

    Soubor nebo složku lze nahrát pomocí tlačítka Přidat.
  • Další operace se soubory

    Podrobnosti lze zjistit označením příslušného řádku.
  • Pohled pro experty

    Pro častou práci je možné zvolit režim Více možností.
  • Vyhledávání souborů

    Vyhledávaný výraz můžete zadat přímo do adresního řádku.
  • Rychlý přístup k souborům

    Pomocí funkce Nedávné je možné se rychle vrátit k právě prohlíženým souborům. Oblíbené soubory je také možné označit Hvězdičkou.