-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from worldbank/ssc-publication
Version 1.0 submitted
- Loading branch information
Showing
9 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
### PACKAGE NAME: | ||
STATA_LINTER | ||
|
||
### TITLE: | ||
'STATA_LINTER': tool to detect and correct bad Stata coding practices | ||
|
||
### DESCRIPTION: | ||
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. | ||
|
||
### AUTHOR: | ||
"DIME Analytics, DIME, The World Bank Group", [email protected] | ||
|
||
### KEYWORDS: | ||
- linter | ||
- style guide | ||
- code best practices | ||
|
||
### STATA VERSION REQUIREMENT: | ||
Stata 16 | ||
|
||
### FILES REQUIRED TO BE IN PACKAGE: | ||
- lint.ado | ||
- lint.sthlp | ||
- stata_linter_correct.py | ||
- stata_linter_detect.py | ||
- stata_linter_utils.py |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.0.0 12dec2022 DIME Analytics [email protected] | ||
*! version 1.0.0 06dec2022 DIME Analytics [email protected] | ||
|
||
capture program drop lint | ||
program lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{smcl} | ||
{* 9 Jun 2021}{...} | ||
{* 06 Dec 2022}{...} | ||
{hline} | ||
help for {hi:lint} | ||
{hline} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# version 1.0.0 12dec2022 DIME Analytics [email protected] | ||
# version 1.0.0 06dec2022 DIME Analytics [email protected] | ||
# Import packages ============ | ||
import os | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# version 1.0.0 12dec2022 DIME Analytics [email protected] | ||
# version 1.0.0 06dec2022 DIME Analytics [email protected] | ||
# Import packages ==================== | ||
import os | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# version 1.0.0 06dec2022 DIME Analytics [email protected] | ||
# Import packages ==================== | ||
import re | ||
import pandas as pd | ||
import stata_linter_detect as sld | ||
|
File renamed without changes.