This set of scripts allows you to run the repo linter described below for many repositories in one script. The default behavior of the linter is to generate one file for each repository. This is more cumbersome to work with when analyzing a portfolio of repositories
- This uses the TODO Group's RepoLinter Here: https://todogroup.github.io/repolinter/ (Note: Uses NodeJS and includes all the usual NodeJS configuration challenges)
- The
todo-linter.pyfile runs to generate a JSON output for a set of Augur repos in an existing Augur Database. It reads metadata about the repository's physical location on disk, and then genrates the linting output as one large JSON file. There is an example output from CNCF Projects in the output subfolder. - The
insert_data.pyfile creates and populates table in theanalysisschema of an Augur database (this is a new schema). For this file, you need to edit it so that the output fromtodo-linter.pyis the input file referenced here. - The
data_analysis.sqlfile is how the results of analysis can be generated. In the example, we look only for the presence of a license file and a README.md file. If you remove thewhereclause on this query there will be many other linted indicators.