{"id":17560064,"url":"https://github.com/knsh14/go-conditional-complexity","last_synced_at":"2026-06-10T16:31:02.023Z","repository":{"id":150324204,"uuid":"155704925","full_name":"knsh14/go-conditional-complexity","owner":"knsh14","description":"Checks conditional complexity of go code","archived":false,"fork":false,"pushed_at":"2019-03-12T16:38:20.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T06:48:32.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/knsh14.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}},"created_at":"2018-11-01T11:27:22.000Z","updated_at":"2019-03-12T16:38:21.000Z","dependencies_parsed_at":"2023-04-25T00:46:32.905Z","dependency_job_id":null,"html_url":"https://github.com/knsh14/go-conditional-complexity","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.2068965517241379,"last_synced_commit":"bbecee7bca7e8f990a26b28060e4828231c437ba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knsh14/go-conditional-complexity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fgo-conditional-complexity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fgo-conditional-complexity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fgo-conditional-complexity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fgo-conditional-complexity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knsh14","download_url":"https://codeload.github.com/knsh14/go-conditional-complexity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fgo-conditional-complexity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34161283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2024-10-21T11:09:56.004Z","updated_at":"2026-06-10T16:31:02.000Z","avatar_url":"https://github.com/knsh14.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-conditional-complexity\n\n# Install\n\n```\n$ go get github.com/knsh14/go-conditional-complexity/cmd/gocc\n```\n\n# Usage\n\n```\n$ gocc -max 16 -exclude testdata -top 10 -avg ./\n```\n\n## -max N\nthreshold to show. command shows more complicated functions than this parameter.   \ndefault value is 12. it is same score to flake8.\n\n## -exclude PATTERN\ncommand will not checks any files to match input pattern.  \npattern is complied to go regular expression.\n\n## -top N\noutput most complicated functions\n\n## -avg\noutput average complexity for all functions and filtered functions if this flag is set.\n\n## ARG\npath to check complexity.  \nchecks all go files under input directory recursive.\n\nif no path is passed. checks current directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fgo-conditional-complexity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknsh14%2Fgo-conditional-complexity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fgo-conditional-complexity/lists"}