Replication Package for "Comment Convention Compliance: How Linters and LLMs Enforce Style Guides"

# Replication Package for `Comment Convention Compliance: How Linters and LLMs Enforce Style Guides` This repository contains the replication package for the study `Comment Convention Compliance: How Linters and LLMs Enforce Style Guides`. We present the first empirical study examining the alignment between style guides and linters for Java and Python. We analyze six major style guides, nine linters, and 100 open-source projects to assess rule coverage and usage of tools in practice. We evaluate several LLMs, e.g., LLaMA 3.1 Instruct, CodeT5, and ChatGPT to detect and fix comment convention violations. ## Structure ``` README.md ├── RQ1/ │ ├── Data │ ├── Results │ └── Scripts │ ├── README.md ├── RQ2/ │ ├── Results/ │ ├── Data/ │ ├── README.md ├── RQ3/ │ ├── IdentifyingViolations/ │ │ ├── Data │ │ ├── Results │ │ └── Scripts │ ├── FixingViolations/ │ │ ├── Data │ │ ├── Results │ │ └── Scripts │ ├── Environment/ │ ├── README.md ``` ## Contents of the Replication Package --- ## `RQ1`: - `Data` - Data required to answer RQ - `Scripts` - Programming scripts for analysis of RQ - `Results` - Results achieved for the RQ - `README.md` - the file to describe each file in the folder ## `RQ2`: - `Data` - Data required to answer RQ - `Results` - Results achieved for the RQ - `README.md` - the file to describe each file in the folder ## `RQ3`: - `IdentifyingViolations/` - `Data` - Data required to train and test models for this task - `Scripts` - Programming scripts for analysis of this task - `Results` - Results achieved for this task. - `FixingViolations/` - `Data` - Data required to train and test models for this task - `Scripts` - Programming scripts for analysis of this task - `Results` - Results achieved for this task - `Environment/requirements.txt` — _Required environment to that works for all llm training and testing scripts._ - `README.md` - the file to describe each file in the folder

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-03
DOI
https://doi.org/10.5281/zenodo.18854126
Primary Topic
Green IT and Sustainability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Replication Package for "Comment Convention Compliance: How Linters and LLMs Enforce Style Guides"

Anonymous Anonymous
Zenodo (CERN European Organization for Nuclear Research)
Green IT and Sustainability
article

Replication Package for "Comment Convention Compliance: How Linters and LLMs Enforce Style Guides"

Anonymous Anonymous
article en

Abstract

# Replication Package for `Comment Convention Compliance: How Linters and LLMs Enforce Style Guides` This repository contains the replication package for the study `Comment Convention Compliance: How Linters and LLMs Enforce Style Guides`. We present the first empirical study examining the alignment between style guides and linters for Java and Python. We analyze six major style guides, nine linters, and 100 open-source projects to assess rule coverage and usage of tools in practice. We evaluate several LLMs, e.g., LLaMA 3.1 Instruct, CodeT5, and ChatGPT to detect and fix comment convention violations. ## Structure ``` README.md ├── RQ1/ │ ├── Data │ ├── Results │ └── Scripts │ ├── README.md ├── RQ2/ │ ├── Results/ │ ├── Data/ │ ├── README.md ├── RQ3/ │ ├── IdentifyingViolations/ │ │ ├── Data │ │ ├── Results │ │ └── Scripts │ ├── FixingViolations/ │ │ ├── Data │ │ ├── Results │ │ └── Scripts │ ├── Environment/ │ ├── README.md ``` ## Contents of the Replication Package --- ## `RQ1`: - `Data` - Data required to answer RQ - `Scripts` - Programming scripts for analysis of RQ - `Results` - Results achieved for the RQ - `README.md` - the file to describe each file in the folder ## `RQ2`: - `Data` - Data required to answer RQ - `Results` - Results achieved for the RQ - `README.md` - the file to describe each file in the folder ## `RQ3`: - `IdentifyingViolations/` - `Data` - Data required to train and test models for this task - `Scripts` - Programming scripts for analysis of this task - `Results` - Results achieved for this task. - `FixingViolations/` - `Data` - Data required to train and test models for this task - `Scripts` - Programming scripts for analysis of this task - `Results` - Results achieved for this task - `Environment/requirements.txt` — _Required environment to that works for all llm training and testing scripts._ - `README.md` - the file to describe each file in the folder

Zenodo (CERN European Organization for Nuclear Research)
Affordable and clean energy
Openalex Percentile: Top 37%
Green IT and Sustainability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.