{"id":15636639,"url":"https://github.com/feliciousx/static-code-analyzer","last_synced_at":"2026-07-09T10:31:35.014Z","repository":{"id":32289374,"uuid":"35864224","full_name":"FeliciousX/static-code-analyzer","owner":"FeliciousX","description":"Using cccc, bash script and nodejs to make a static code analyzer","archived":false,"fork":false,"pushed_at":"2015-06-03T09:17:16.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T20:23:03.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/FeliciousX.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":"2015-05-19T06:45:15.000Z","updated_at":"2015-06-03T09:17:16.000Z","dependencies_parsed_at":"2022-09-12T22:10:14.741Z","dependency_job_id":null,"html_url":"https://github.com/FeliciousX/static-code-analyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FeliciousX/static-code-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeliciousX%2Fstatic-code-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeliciousX%2Fstatic-code-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeliciousX%2Fstatic-code-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeliciousX%2Fstatic-code-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FeliciousX","download_url":"https://codeload.github.com/FeliciousX/static-code-analyzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeliciousX%2Fstatic-code-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35296693,"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-07-09T02:00:07.329Z","response_time":57,"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-03T11:05:38.108Z","updated_at":"2026-07-09T10:31:34.985Z","avatar_url":"https://github.com/FeliciousX.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains the code used to analyze C++ code for an assignment.\n\nThe repository being analyzed was [nodejs](https://github.com/joyent/node)\n\n## The steps taken:-\n\n1. Clone [nodejs](https://github.com/joyent/com/node)\n2. `cd` to the `nodejs` repository\n3. Copy my `static-code-analyzer` files here\n4. Run `git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags \u003e versions` to get all the releases sorted by date into a file called versions.\n5. Run `git for-each-ref --sort='*authordate' --format='%(tag) %(*authordate:iso8601)' refs/tags \u003e nodejs-dates` to get all the releases with the date as well.\n5. Run `analyze.sh versions` which takes the first argument as the file. It will read the file and go through everyline while `git checkout` to that specific version in the `nodejs` repository and run `cccc` static code analyzer on it, creating folders in `analyze/%version` for every checkout.\n6. Move all the data to another folder for analyzing (including the `static-code-analyzer` files.\n7. Run `node main.js versions \u003e data.csv` that will parse the XML data from the `analyze` folders into a .csv format\n8. Run `node date.js nodejs-dates \u003e age.csv` that will sort the date by date with the age as well.\n9. Use R to plot graph using `data.csv` and `age.csv`\n\nTODO:-\n- [ ] Write the R code for plotting graph\n\nData obtained is the total of:-\n\n- Number of modules\n- Lines of code\n- Cyclomatic complexity\n- Number of methods\n- Number of private methods\n\n## Dependency\n- [nodejs](https://github.com/joyent/com/node)\n- [npm](https://github.com/npm/npm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliciousx%2Fstatic-code-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeliciousx%2Fstatic-code-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliciousx%2Fstatic-code-analyzer/lists"}