Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose analyse results to api #44

Closed

Conversation

sebbonnet
Copy link
Contributor

So clients can benefit from a rich data structure that contains licence detection results
for one or more project paths and that can be parsed as JSON.

The json data structure was already available in main.go,
so I merely moved it to a top level go file to make it easier to expose.

Signed-off-by: Sebastien Bonnet [email protected]`

So clients can benefit from a rich data structure that contains results
for one or more project paths and that can be parsed as JSON.

The json data structure was already available in the main.go,
so I merely moved it to a top level go file to make it easier to expose.

Signed-off-by: Sebastien Bonnet <[email protected]>
Use the correct golint import path.
This was recently changed to only affect import paths for go 1.12+
which explains why the build previously failed on `tip`
See
golang/lint@c67002c

Signed-off-by: Sebastien Bonnet <[email protected]>
Signed-off-by: Sebastien Bonnet <[email protected]>
As it carries the same information as ErrStr and
was used only internally to check for detection errors in main.go

Signed-off-by: Sebastien Bonnet <[email protected]>
Signed-off-by: Sebastien Bonnet <[email protected]>
Signed-off-by: Sebastien Bonnet <[email protected]>
@sebbonnet sebbonnet force-pushed the expose-analyse-results-to-api branch from e03d9c2 to 7bf9130 Compare November 27, 2018 17:21
@sebbonnet
Copy link
Contributor Author

@vmarkovtsev @campoy I mistakenly closed the initial PR #42, so here is the new one.
@campoy Thanks for the feedback, I replied to your comments in the initial PR.

)

func TestMain(t *testing.T) {
func TestCmdMain(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the method name to avoid clashing with https://golang.org/pkg/testing/#hdr-Main

@sebbonnet
Copy link
Contributor Author

I've managed to reopen #42 thanks to @campoy, so closing this one now

@sebbonnet sebbonnet closed this Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant