{"id":22989634,"url":"https://github.com/roxasshadow/codelines","last_synced_at":"2025-04-02T11:45:26.376Z","repository":{"id":14622549,"uuid":"17339926","full_name":"RoxasShadow/codelines","owner":"RoxasShadow","description":"Count the number of lines of code contained in one or more repositories","archived":false,"fork":false,"pushed_at":"2015-10-07T01:21:23.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T02:45:31.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"one or more repositories hosted on GitHub, Bitbucket, etc.","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoxasShadow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-02T15:06:07.000Z","updated_at":"2014-11-24T12:29:43.000Z","dependencies_parsed_at":"2022-09-17T17:02:36.815Z","dependency_job_id":null,"html_url":"https://github.com/RoxasShadow/codelines","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoxasShadow%2Fcodelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoxasShadow%2Fcodelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoxasShadow%2Fcodelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoxasShadow%2Fcodelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoxasShadow","download_url":"https://codeload.github.com/RoxasShadow/codelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811248,"owners_count":20837745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T04:18:06.201Z","updated_at":"2025-04-02T11:45:26.342Z","avatar_url":"https://github.com/RoxasShadow.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"CodeLines\n=========\nCount the number of lines of code contained in one or more repositories.\n\nCurrently there's just the support to GitHub, but feel free to make new adapters for any hosting website you want.\n\nInstall\n-------\n`$ gem install codelines`\n\nExample\n-------\nYou can use *codelines* running the built-in executable or using the gem in a ruby script.\n\n`$ codelines --adapter github --profile RoxasShadow --repository codelines -i README.md,Rakefile`\n\n```ruby\nrequire 'codelines'\nrequire 'codelines/adapters/github' # the adapter we want to use\n\ngithub = CodeLines.setup CodeLines::GitHub, 'RoxasShadow' # the owner of the repositories we want to analyze\ngithub.authenticate 'USERNAME', 'PASSWORD'                # authentication is not required, but it avoids to incurring to limit exceeded errors\n\nCodeLines.count repository: [ { name: :codelines }, { name: :chainedexpressions}  ] # return the sum of the lines of code contained in given repositories\nCodeLines.count repository: [ { name: :mescalina, branch: :'last-episode-preview' ], ignore_comments: true # select the given branch ignoring the comments\nCodeLines.count repository: [ { name: :codelines                                  ], reload: true # count the lines contained in this repository without using the cache\nCodeLines.count repository: [ { name: :codelines, ignore: %w(README.md)           ] # return the sum of the lines of code contained in given repositories ignoring README.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxasshadow%2Fcodelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froxasshadow%2Fcodelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxasshadow%2Fcodelines/lists"}