https://github.com/exercism/go-analyzer
https://github.com/exercism/go-analyzer
community-contributions-paused exercism-analyzer exercism-tooling maintained-autonomous
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/go-analyzer
- Owner: exercism
- License: agpl-3.0
- Created: 2019-03-17T18:35:47.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T07:06:26.000Z (9 months ago)
- Last Synced: 2025-04-29T06:34:48.856Z (about 2 months ago)
- Topics: community-contributions-paused, exercism-analyzer, exercism-tooling, maintained-autonomous
- Language: Go
- Size: 237 KB
- Stars: 10
- Watchers: 13
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Exercism's Go Analyzer
This is Exercism's automated analyzer for the Go track.
## Executing the Analyzer
The analyser takes two parameters:
- the exercise `slug`, e.g. `two-fer`
- the `path` to the solution to analizeExample to execute with binary:
```bash
analyze two-fer ~/solution-238382y7sds7fsadfasj23j/
```From source with Go installed:
```bash
go run ./main.go two-fer ~/solution-238382y7sds7fsadfasj23j/
```## Build Executable
This will create an executable called `analyze`.
```bash
go generate .
go build -tags build -o analyze .
````go generate` is called before the build to incorporate all necessary files within the binary.
## Docker
To `build` execute the following from the repositories `root` directory:
```bash
docker build -t exercism/go-analyzer .
```To `run` from docker pass in the solutions path as a volume and execute with the necessary parameters:
```bash
docker run -v $(PATH_TO_SOLUTION):/solution exercism/go-analyzer ${SLUG} /solution
```Example:
```bash
docker run -v ~/solution-238382y7sds7fsadfasj23j:/solution exercism/go-analyzer two-fer /solution
```## Stats
### Twofer
Out of 500 real world solutions we get:
```
approve 34
disapprove 463
refer_to_mentor 3
ejected (failed) 0
```