EconPapers    
Economics at your fingertips  
 

STATA_LINTER: Stata module providing a tool to detect and correct bad Stata coding practices

Analytics Dime ()
Additional contact information
Analytics Dime: The World Bank, DECIE

Statistical Software Components from Boston College Department of Economics

Abstract: The stata_linter package provides a linter for Stata code. Read about what a linter is here: https://en.wikipedia.org/wiki/Lint_(software). The package contains a command that detects bad Stata coding practices in a do-file so that users can manually correct them. The command can also correct some of the issues flagged in a new do-file. The purpose of the command is to help users improve code clarity, readability, and organization in Stata do-files. This linter is based on the best practices outlined in The DIME Analytics Coding Guide published as an appendix to the book Development Research in Practice. See here https://worldbank.github.io/dime-data-handbook/coding.html. For more info about this linter, see https://github.com/worldbank/stata_linter.

Language: Stata
Requires: Stata version 16, Python, pandas package
Keywords: linter; style guide; code best practices (search for similar items in EconPapers)
Date: 2022-12-06, Revised 2023-05-15
Note: This module should be installed from within Stata by typing "ssc install stata_linter". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/s/stata_linter.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lint.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lint.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/s/stata_linterFil ... /bocode/_/correct.py program code (text/plain)
Our link check indicates that this URL is bad, the error code is: 404 Not Found
http://fmwww.bc.edu/repec/bocode/s/stata_linter_detect.py program code (text/plain)
http://fmwww.bc.edu/repec/bocode/s/stata_linter_utils.py program code (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459150

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-04-14
Handle: RePEc:boc:bocode:s459150