{"id":15563049,"url":"https://github.com/svdo/source-code-metrics","last_synced_at":"2025-03-29T05:13:00.319Z","repository":{"id":72064843,"uuid":"194281277","full_name":"svdo/source-code-metrics","owner":"svdo","description":"Collects and presents source code metrics from different sources","archived":false,"fork":false,"pushed_at":"2019-10-29T07:14:16.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T14:48:29.475Z","etag":null,"topics":["clojure","metrics"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/svdo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-28T13:49:01.000Z","updated_at":"2019-10-29T07:14:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c30d79c-0c51-4365-b3a8-76bc84b242e6","html_url":"https://github.com/svdo/source-code-metrics","commit_stats":{"total_commits":93,"total_committers":2,"mean_commits":46.5,"dds":"0.31182795698924726","last_synced_commit":"44db4bc810fac336225b9f9a0b618d5c12e29ca1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svdo%2Fsource-code-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svdo%2Fsource-code-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svdo%2Fsource-code-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svdo%2Fsource-code-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svdo","download_url":"https://codeload.github.com/svdo/source-code-metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140591,"owners_count":20729802,"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":["clojure","metrics"],"created_at":"2024-10-02T16:17:14.798Z","updated_at":"2025-03-29T05:13:00.293Z","avatar_url":"https://github.com/svdo.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"Metrics\n=======\n\nThis program can automatically collect metrics for a given project.\n\nPurpose\n-------\n\nThis project should be viewed as a personal tool, not necessarily intended\nfor other purposes than mine. For me, it's both useful and a great vehicle\nto learn Clojure better. Having said that, you're of course welcome to\nuse it if you see value in it.\n\nConfiguration\n-------------\n\nThe file `config.edn` contains configurable things, including the SonarQube\nproject key. The token must be generated in SonarQube (My Account -\u003e Security\n-\u003e Generate Token). A second token that is needed is for GitLab. You can\ngenerate that token by navigating in GitLab to Account -\u003e Settings -\u003e\nAccess Tokens. Enable the scope 'api' for this token.\n\nIn order to keep your secrets safe, you may should put them in\n`config.local.edn` instead of `config.edn`. The two maps are merged, where\nthe anything in the `local` one will overwrite the other. The file\n`config.local.edn` is ignored by git, so this way you don't have to fear\naccidentally committing your secrets to git. So before running this,\nyou should create `config.local.edn` and put all the Gitlab and SonarQube\ninformation in there by following the instructions in `config.edn`. For example,\nyour final `config.local.edn` when you want to report on two different projects\nshould look like this:\n\n```edn\n{:sonar/base-url      \"https://sonar.example.com\"\n :gitlab/base-url     \"https://gitlab.example.com/api/v4\"\n\n :report/projects\n [{:sonar/token       \"abcdefghijklmnopqrstuvwxyz\"\n   :sonar/project-id  \"my.project-id\"\n   :gitlab/token      \"aBCdeFGHijkLMN\"\n   :gitlab/project-id 42}\n\n  {:sonar/token       \"zyxwvutsrqponmlkjihgfedcba\"\n   :sonar/project-id  \"my.other-project-id\"\n   :gitlab/token      \"NMLkjiHGFedCBa\"\n   :gitlab/project-id 24}]}\n```\n\nRunning\n-------\n\n```bash\n./run.sh\n```\n\nUnit Tests\n----------\n\n```bash\n./test.sh --watch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvdo%2Fsource-code-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvdo%2Fsource-code-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvdo%2Fsource-code-metrics/lists"}