go-analyzer

command module
v0.4.3-0...-af5a74a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

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 analize

Example to execute with binary:

analyze two-fer ~/solution-238382y7sds7fsadfasj23j/

From source with Go installed:

go run ./main.go two-fer ~/solution-238382y7sds7fsadfasj23j/

Build Executable

This will create an executable called analyze.

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:

docker build -t jamessouth/go-analyzer .

To run from docker pass in the solutions path as a volume and execute with the necessary parameters:

docker run -v $(PATH_TO_SOLUTION):/solution jamessouth/go-analyzer ${SLUG} /solution

Example:

docker run -v ~/solution-238382y7sds7fsadfasj23j:/solution jamessouth/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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
patterns/hamming/3
Package hamming implements hamming distance
Package hamming implements hamming distance
patterns/two-fer/1
Package twofer contains sharing algorithms.
Package twofer contains sharing algorithms.
patterns/two-fer/2
Package twofer contains sharing algorithms.
Package twofer contains sharing algorithms.
solutions/hamming/10
Package hamming provides the Distance function.
Package hamming provides the Distance function.
solutions/hamming/11
Package hamming contains function to calculate amount of character difference between two equal strings.
Package hamming contains function to calculate amount of character difference between two equal strings.
solutions/hamming/12
Package hamming provides the Distance function.
Package hamming provides the Distance function.
solutions/hamming/4
Package hamming is used for calculating difference between DNA It has a function Distance(string, string) (int,error), that accept 2 DNA strings and return difference in integer value, or -1 and error message
Package hamming is used for calculating difference between DNA It has a function Distance(string, string) (int,error), that accept 2 DNA strings and return difference in integer value, or -1 and error message
solutions/hamming/8
Package hamming contains function to calculate amount of character difference between two equal strings.
Package hamming contains function to calculate amount of character difference between two equal strings.
solutions/hamming/patterns/2
Package hamming implements hamming distance
Package hamming implements hamming distance
solutions/isogram/3
Package isogram implements IsIsogram to check input string is an isogram
Package isogram implements IsIsogram to check input string is an isogram
solutions/isogram/4
Package isogram tests for whether or not a word is an isogram
Package isogram tests for whether or not a word is an isogram
solutions/permutations/3
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
solutions/raindrops/1
Package raindrops converts number to string and outputs info depending on numbers factors
Package raindrops converts number to string and outputs info depending on numbers factors
solutions/raindrops/10
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
solutions/raindrops/11
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
solutions/raindrops/13
Package raindrops is involved in converting numbers to pattern-based strings
Package raindrops is involved in converting numbers to pattern-based strings
solutions/raindrops/14
Package raindrops converts ints into onomatopoeia depending on factors of that int.
Package raindrops converts ints into onomatopoeia depending on factors of that int.
solutions/raindrops/17
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
solutions/raindrops/18
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
solutions/raindrops/2
Package raindrops provides a simple int to raindrop-speak conversion function
Package raindrops provides a simple int to raindrop-speak conversion function
solutions/raindrops/4
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
solutions/raindrops/6
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
solutions/raindrops/7
Package raindrops ...
Package raindrops ...
solutions/raindrops/8
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
solutions/raindrops/patterns/1
Package raindrops provides a simple int to raindrop-speak conversion function
Package raindrops provides a simple int to raindrop-speak conversion function
solutions/raindrops/patterns/2
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
solutions/raindrops/patterns/3
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
solutions/twofer/1
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
solutions/twofer/10
Package twofer or 2-fer is short for two for one.
Package twofer or 2-fer is short for two for one.
solutions/twofer/11
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
solutions/twofer/12
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
solutions/twofer/2
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
solutions/twofer/3
Package twofer implements sharing functionality
Package twofer implements sharing functionality
solutions/twofer/4
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
solutions/twofer/5
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
solutions/twofer/6
Package twofer implements a "Two-Fer" statement.
Package twofer implements a "Two-Fer" statement.
solutions/twofer/7
Package twofer or 2-fer is short for two for one.
Package twofer or 2-fer is short for two for one.
solutions/twofer/9
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
solutions/twofer/patterns/1
Package twofer contains sharing algorithms.
Package twofer contains sharing algorithms.
solutions/twofer/patterns/2
Package twofer contains sharing algorithms.
Package twofer contains sharing algorithms.
example/5
Package diffsquares provides method for square diffs.
Package diffsquares provides method for square diffs.
example/7
Package hamming contains function to calculate amount of character difference between two equal strings.
Package hamming contains function to calculate amount of character difference between two equal strings.
cmd
tests
hamming/10
Package hamming provides the Distance function.
Package hamming provides the Distance function.
hamming/11
Package hamming promises to improve your productivity 100x by computing your hamming distances.
Package hamming promises to improve your productivity 100x by computing your hamming distances.
hamming/4
Package hamming is used for calculating difference between DNA It has a function Distance(string, string) (int,error), that accept 2 DNA strings and return difference in integer value, or -1 and error message
Package hamming is used for calculating difference between DNA It has a function Distance(string, string) (int,error), that accept 2 DNA strings and return difference in integer value, or -1 and error message
hamming/8
Package hamming contains function to calculate amount of character difference between two equal strings.
Package hamming contains function to calculate amount of character difference between two equal strings.
raindrops/1
Package raindrops converts number to string and outputs info depending on numbers factors
Package raindrops converts number to string and outputs info depending on numbers factors
raindrops/10
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
raindrops/11
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
raindrops/13
Package raindrops is involved in converting numbers to pattern-based strings
Package raindrops is involved in converting numbers to pattern-based strings
raindrops/14
Package raindrops converts ints into onomatopoeia depending on factors of that int.
Package raindrops converts ints into onomatopoeia depending on factors of that int.
raindrops/18
Package raindrops provides a simple int to raindrop-speak conversion function
Package raindrops provides a simple int to raindrop-speak conversion function
raindrops/19
Package raindrops implements raindrop functionality
Package raindrops implements raindrop functionality
raindrops/2
Package raindrops provides a simple int to raindrop-speak conversion function
Package raindrops provides a simple int to raindrop-speak conversion function
raindrops/4
Package raindrops is used to transform a number into the lovely sound of rain
Package raindrops is used to transform a number into the lovely sound of rain
raindrops/6
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
raindrops/7
Package raindrops ...
Package raindrops ...
raindrops/8
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
raindrops/9
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
Package raindrops convert a number to a string, the contents of which depend on the number's factors.
two-fer/1
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/10
Package twofer or 2-fer is short for two for one.
Package twofer or 2-fer is short for two for one.
two-fer/11
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/12
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/13
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/14
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/15
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/16
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.
two-fer/18
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/19
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/2
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/20
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/21
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/22
Package twofer has a share function.
Package twofer has a share function.
two-fer/23
Package twofer shares things.
Package twofer shares things.
two-fer/25
Package twofer provides a routine for two-for-one strings
Package twofer provides a routine for two-for-one strings
two-fer/26
Package twofer contains ShareWith
Package twofer contains ShareWith
two-fer/27
Package twofer has methods for the common "One for you, one for me" saying.
Package twofer has methods for the common "One for you, one for me" saying.
two-fer/29
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/3
Package twofer implements sharing functionality
Package twofer implements sharing functionality
two-fer/30
Package twofer provides directions for how to split items.
Package twofer provides directions for how to split items.
two-fer/31
Package twofer provides directions for how to split items.
Package twofer provides directions for how to split items.
two-fer/4
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/5
Package twofer should have a package comment that summarizes what it's about.
Package twofer should have a package comment that summarizes what it's about.
two-fer/6
Package twofer implements a "Two-Fer" statement.
Package twofer implements a "Two-Fer" statement.
two-fer/7
Package twofer or 2-fer is short for two for one.
Package twofer or 2-fer is short for two for one.
two-fer/9
Package twofer implements some sharing functionality.
Package twofer implements some sharing functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL