{"id":24883171,"url":"https://github.com/ajm188/mccabe","last_synced_at":"2025-03-27T09:16:03.246Z","repository":{"id":30354098,"uuid":"33906555","full_name":"ajm188/mccabe","owner":"ajm188","description":"Measure McCabe complexity of Ruby methods","archived":false,"fork":false,"pushed_at":"2015-11-08T21:50:26.000Z","size":536,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T10:45:46.595Z","etag":null,"topics":["mccabe","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ajm188.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-14T02:37:02.000Z","updated_at":"2015-06-11T14:47:51.000Z","dependencies_parsed_at":"2022-09-17T03:23:33.516Z","dependency_job_id":null,"html_url":"https://github.com/ajm188/mccabe","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajm188%2Fmccabe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajm188%2Fmccabe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajm188%2Fmccabe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajm188%2Fmccabe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajm188","download_url":"https://codeload.github.com/ajm188/mccabe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245814749,"owners_count":20676808,"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":["mccabe","ruby"],"created_at":"2025-02-01T13:48:32.949Z","updated_at":"2025-03-27T09:16:03.224Z","avatar_url":"https://github.com/ajm188.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# McCabe\n\nMeasure the McCabe or [cyclomatic](http://en.wikipedia.org/wiki/Cyclomatic_complexity)\ncomplexity of Ruby code.\n\n## Installation\n\n```\n$ gem install mccabe\n```\n\n## Usage\n\nFrom the command line, pass the list of files you want to analyze. You can\noptionally specify your own threshold as the first argument. The default\nthreshold is 4. You will get error messages for any methods which have\ncomplexity greater than the threshold.\n\nNote that the script only considers files with .rb extensions, so that it\ndoesn't attempt to parse other languages as Ruby. So, if you have\nextensionless Ruby scripts, you won't be able to use this on them.\n\nExamples:\n```\nmccabe file1 ../file2\nmccabe file1 --threshold 3 # using a different threshold\nmccabe *.rb # wildcards work, too\nmccabe . # can also look through entire directories\nmccabe . --quiet # will not print to stdout, only return success/failure status code\n```\n\n## Contributing\n\nFork and pull.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajm188%2Fmccabe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajm188%2Fmccabe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajm188%2Fmccabe/lists"}