{"id":23082423,"url":"https://github.com/morganzhang100/line-counter","last_synced_at":"2025-08-16T00:31:25.172Z","repository":{"id":29621867,"uuid":"33162598","full_name":"MorganZhang100/line-counter","owner":"MorganZhang100","description":"A command line tool to analyze the amount of lines and files under current directory","archived":false,"fork":false,"pushed_at":"2019-08-14T14:29:05.000Z","size":11,"stargazers_count":87,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-15T22:52:53.940Z","etag":null,"topics":["developer-tools","python","utility"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/MorganZhang100.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}},"created_at":"2015-03-31T03:22:20.000Z","updated_at":"2025-05-27T11:38:31.000Z","dependencies_parsed_at":"2022-09-20T22:31:53.235Z","dependency_job_id":null,"html_url":"https://github.com/MorganZhang100/line-counter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MorganZhang100/line-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganZhang100%2Fline-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganZhang100%2Fline-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganZhang100%2Fline-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganZhang100%2Fline-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorganZhang100","download_url":"https://codeload.github.com/MorganZhang100/line-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganZhang100%2Fline-counter/sbom","scorecard":{"id":96073,"data":{"date":"2025-08-11","repo":{"name":"github.com/MorganZhang100/line-counter","commit":"5a3dc0ae8b7dd757a0a9ea2a8144a49f613b3dc7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":-1,"reason":"No tokens found","details":null,"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":"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":"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-15T09:05:16.714Z","repository_id":29621867,"created_at":"2025-08-15T09:05:16.714Z","updated_at":"2025-08-15T09:05:16.714Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270651046,"owners_count":24622433,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["developer-tools","python","utility"],"created_at":"2024-12-16T14:52:19.904Z","updated_at":"2025-08-16T00:31:24.909Z","avatar_url":"https://github.com/MorganZhang100.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# line-counter\nA command line tool to analyze the amount of lines and files under current directory.   \nIt supports 'line.select' rules which works like '.gitignore'.\n\n## Installation\nYou can install, upgrade, uninstall line-counter.py with these commands:\n```\n$ pip install line-counter  \n$ pip install --upgrade line-counter  \n$ pip uninstall line-counter  \n```\n\n## Usage\n```\nUsage: line [options] [args]\n\nAnalyze the amount of lines and files under current directory following the\nrules in 'line.select' or analyze all files if 'line.select' doesn't exist\n\nOptions:\n  --version     show program's version number and exit\n  -h, --help    show this help message and exit\n  -d, --detail  show more detail in the result\n  -s, --show    show rules in 'line.select'\n```\n\n## Example usage and output\nAnalyze all files (when 'line.select' doesn't exist) or specific files (when 'line.select' exists) under current directory.\n```\n$ line\nSearch in /Users/Morgan/Documents/Example/\nfile count: 4\nline count: 839\n```\nAnalyze all files (when 'line.select' doesn't exist) or specific files (when 'line.select' exists) under current directory.  \nAnd show results in detail.\n```\n$ line -d\nSearch in /Users/Morgan/Documents/Example/\nDir A/file C.c                                             72\nDir A/file D.py                                           268\nfile A.py                                                 467\nfile B.c                                                   32\nfile count: 4\nline count: 839\n```\nShow the rules in 'line.select'\n```\n$ line -s\nHere are the rules in 'line.select' under /Users/Morgan/Documents/Example/:\n#Select rules:\n*.c\n\n#Ignore rules:\n!Dir A\n!*.py\n```\nCheck current version\n```\n$ line --version\nline 0.7.4\n```\n\n## line.select\nThis file works like '.gitignore'.\n* Each line is a rule\n* Each line starts with a '#' means that's a comment\n* Each line starts with a '!' means it's a ignore rule\n* Otherwise it's a select rule\n* The order of rules is irrelevant and ignore rules can always override select rules\n* The rules can find all the pathnames matching a specified pattern according to the rules used by the Unix shell. No tilde expansion is done, but *, ?, and character ranges expressed with [ ] will be correctly matched.\n\n## Roadmap\n* Add order output function\n* Add option to only count file amount or line amount\n\n## Change Log\n* **0.7.4**  03/25/2017  \nFix distribution on PyPI.\n\n* **0.7.3**  03/25/2017  \nFix the long description format on PyPI.\n\n* **0.7.2**  03/25/2017  \nFix a bug that file cannot be matched when there is a '[' in the path.\n\n## Author\nI'm Morgan Zhang, a graduate computer science student in University of San Francisco.  \n\n#### Why I made it\nI always want to know how many lines of code that I have done, but there isn't a easy way to get it.  \nSo I decide to make a tool for this.\n\n#### Contact Information\nMorganZhang100@gmail.com\n\n## License\nThe MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganzhang100%2Fline-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorganzhang100%2Fline-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganzhang100%2Fline-counter/lists"}