Stata Code Linter

•
1.9k
•

Analyzes Stata .do and .ado files to identify style issues, hardcoded paths, and outdated coding practices.

The Stata Code Linter is a specialized tool designed for researchers and data scientists to ensure their empirical scripts meet high standards of reproducibility and maintainability. It performs deep static analysis on Stata files to detect common issues such as hardcoded directory paths, improper use of preserve/restore commands, and missing version statements. By grouping findings by severity and suggesting modern alternatives, this skill helps users transition legacy codebases into modern, robust research workflows suitable for academic publication and collaborative data science.

主な機能

011,860 GitHub stars
02Identification of deprecated commands like #delimit and cd
03Automated static analysis of Stata .do and .ado files
04Integrated suggestions for modernizing research code
05Issue grouping by severity and type for streamlined debugging
06Detection of hardcoded paths and absolute directory references

ユースケース

01Preparing replication packages for academic journal submissions
02Auditing legacy Stata scripts for reproducibility and portability
03Enforcing consistent coding standards across research teams