boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.49k stars 254 forks source link

Migrated previous GitLab CI code to a GitLab CI/CD Component #486

Open DarwinJS opened 2 months ago

DarwinJS commented 2 months ago

Describe the bug @boyter - we've previously collaborated and you have some links to my GitLab CI Include for using this with GitLab.

We had some interest at a GitLab customer in your counter - so I took the previous include code and ported it to a GitLab CI/CD Component - which are reusable, GitLab CI/CD dependencies with version pegging and many other feature.

By default the component will count the current project after using a highly efficient Git Clone. However, it retains the ability to count a set of named projects or a Gitlab Group Heirarchy.

I also found a repository that tries to have examples for every known programming language.

You can find the component here: https://gitlab.com/explore/catalog/guided-explorations/ci-components/scc-code-counter The source here: https://gitlab.com/guided-explorations/ci-components/scc-code-counter And the working example here: https://gitlab.com/guided-explorations/ci-components/working-code-examples/sample-programs Here's an example job log from the working example: https://gitlab.com/guided-explorations/ci-components/working-code-examples/sample-programs/-/jobs/7278841658

To Reproduce

  1. Tell us how you were using scc either as command line or library.
  2. If command line please list the arguments. If library please supply code to demonstrate the issue.
  3. If the issue is a miscount or some such please link or supply a file which demonstrates the issue.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

boyter commented 1 month ago

Great. So not sure what you want me to do here? Update the README.md to point at the new links and such?