Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate LOC in code.json #42

Open
ghost opened this issue Aug 9, 2019 · 2 comments
Open

Generate LOC in code.json #42

ghost opened this issue Aug 9, 2019 · 2 comments
Labels
code.gov https://github.com/GSA/code-gov/blob/master/HelpWanted.md help wanted

Comments

@ghost
Copy link

ghost commented Aug 9, 2019

Generate LOC in code.json. Note that this requires the code.gov metadata schema 2.0.0 to be updated to include a measurement field.

@leebrian
Copy link
Collaborator

leebrian commented Aug 9, 2019

I think this may be related to GSA/code-gov-data#22

@IanLee1521
Copy link
Member

This will be trivial once a field is added.

Today we calculate the laborHours (which does have a field in the schema), which is done based on the number of lines of code:

sum_sloc = git_repo_to_sloc(url)

So all we need to do is store that value in the correct place and we’re already done.

@IanLee1521 IanLee1521 added code.gov https://github.com/GSA/code-gov/blob/master/HelpWanted.md help wanted labels Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code.gov https://github.com/GSA/code-gov/blob/master/HelpWanted.md help wanted
Projects
None yet
Development

No branches or pull requests

2 participants