{"id":35114554,"url":"https://github.com/ryanfowler/lines","last_synced_at":"2026-04-08T13:31:31.491Z","repository":{"id":32398554,"uuid":"35975162","full_name":"ryanfowler/lines","owner":"ryanfowler","description":"Counts lines of code, fast","archived":false,"fork":false,"pushed_at":"2026-02-20T14:03:27.000Z","size":1484,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-20T18:18:08.639Z","etag":null,"topics":["count","lines-of-code","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanfowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-05-20T21:26:48.000Z","updated_at":"2026-02-20T14:03:34.000Z","dependencies_parsed_at":"2023-02-13T22:45:28.673Z","dependency_job_id":"e0784723-a50d-455e-8398-703c994e2d13","html_url":"https://github.com/ryanfowler/lines","commit_stats":{"total_commits":711,"total_committers":5,"mean_commits":142.2,"dds":0.3502109704641351,"last_synced_commit":"ad91b8535ff2befee042814968fda3b093c6387a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ryanfowler/lines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfowler%2Flines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfowler%2Flines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfowler%2Flines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfowler%2Flines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanfowler","download_url":"https://codeload.github.com/ryanfowler/lines/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfowler%2Flines/sbom","scorecard":{"id":791952,"data":{"date":"2025-08-11","repo":{"name":"github.com/ryanfowler/lines","commit":"a2cb6ba47d5e560e151d4260bcdd08b47096475d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ryanfowler/lines/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/ryanfowler/lines/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ryanfowler/lines/dependabot.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/ryanfowler/lines/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/ryanfowler/lines/release.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:14","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/dependabot.yml:5","Warn: no topLevel permission defined: .github/workflows/release.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.16 not signed: https://api.github.com/repos/ryanfowler/lines/releases/231003130","Warn: release artifact v0.3.15 not signed: https://api.github.com/repos/ryanfowler/lines/releases/228157892","Warn: release artifact v0.3.14 not signed: https://api.github.com/repos/ryanfowler/lines/releases/209500325","Warn: release artifact v0.3.13 not signed: https://api.github.com/repos/ryanfowler/lines/releases/205454735","Warn: release artifact v0.3.12 not signed: https://api.github.com/repos/ryanfowler/lines/releases/166632280","Warn: release artifact v0.3.16 does not have provenance: https://api.github.com/repos/ryanfowler/lines/releases/231003130","Warn: release artifact v0.3.15 does not have provenance: https://api.github.com/repos/ryanfowler/lines/releases/228157892","Warn: release artifact v0.3.14 does not have provenance: https://api.github.com/repos/ryanfowler/lines/releases/209500325","Warn: release artifact v0.3.13 does not have provenance: https://api.github.com/repos/ryanfowler/lines/releases/205454735","Warn: release artifact v0.3.12 does not have provenance: https://api.github.com/repos/ryanfowler/lines/releases/166632280"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T07:48:27.991Z","repository_id":32398554,"created_at":"2025-08-23T07:48:27.991Z","updated_at":"2025-08-23T07:48:27.991Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["count","lines-of-code","rust"],"created_at":"2025-12-27T20:39:29.107Z","updated_at":"2026-04-08T13:31:31.483Z","avatar_url":"https://github.com/ryanfowler.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lines\n\nCounts lines of code, fast.\n\n## Installation\n\nUsing `cargo`:\n\n```sh\ncargo install lines-cli\n```\n\n## Usage\n\n```\n❯ lines -h\nCounts lines of code, fast.\n\nUsage: lines [OPTIONS] [PATH]\n\nArguments:\n  [PATH]  Directory or file to scan [default: .]\n\nOptions:\n  -o, --output \u003cFORMAT\u003e    Output format (\"table\" or \"json\") [default: table]\n  -t, --timing             Show timing information\n  -e, --exclude \u003cEXCLUDE\u003e  Exclude regex patterns (can be used multiple times)\n  -h, --help               Print help\n  -V, --version            Print version\n```\n\nUsing `lines` in this repo outputs:\n\n```\n Language | Files | Lines\n----------+-------+-------\n Rust     |     4 |   600\n Markdown |     1 |    47\n TOML     |     1 |    36\n---------- ------- -------\n Total    |     6 |   683\n```\n\n### Exclude Patterns\n\nYou can exclude files and directories from the count using regex patterns with the `--exclude` flag:\n\n```bash\n# Exclude all test files (exact match)\nlines --exclude \"^test$\"\n\n# Exclude files containing \"test\" anywhere in the name\nlines --exclude \"test\"\n\n# Exclude multiple patterns\nlines --exclude \"target\" --exclude \"\\.git\" --exclude \"node_modules\"\n\n# Exclude by file extension\nlines --exclude \"\\.log$\" --exclude \"\\.tmp$\"\n\n# Exclude files starting with \"temp\"\nlines --exclude \"^temp\"\n\n# Exclude hidden files (starting with .)\nlines --exclude \"^\\.\"\n\n# Complex pattern: exclude test files and directories\nlines --exclude \"(test|spec)\" --exclude \".*\\.test\\.\"\n```\n\n## License\n\nlines is released with the MIT license.\nPlease see the [LICENSE](./LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfowler%2Flines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanfowler%2Flines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfowler%2Flines/lists"}