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

Support Modules #176

Merged
merged 7 commits into from
Mar 22, 2019
Merged

Support Modules #176

merged 7 commits into from
Mar 22, 2019

Conversation

izumin5210
Copy link
Owner

#83

@@ -25,10 +25,11 @@ func ProvideScriptLoader(ctx *grapicmd.Ctx, executor excmd.Executor) module.Scri
return script.NewLoader(ctx.FS, executor, ctx.RootDir.String())
}

func ProvideInitializeProjectUsecase(ctx *grapicmd.Ctx, gexCfg *gex.Config, ui cli.UI, generator module.Generator) usecase.InitializeProjectUsecase {
func ProvideInitializeProjectUsecase(ctx *grapicmd.Ctx, gexCfg *gex.Config, ui cli.UI, generator module.Generator, excmd excmd.Executor) usecase.InitializeProjectUsecase {

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function ProvideInitializeProjectUsecase should have comment or be unexported

funcMap := template.FuncMap{
"module": func(in string) (string, error) {
if isMod {
return e.getModulePath(ctx, in)

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/protoc/wrapper.go:140:12: return e.getModulePath(ctx, in)


func (e *wrapperImpl) commands(ctx context.Context, protoPath string) ([][]string, error) {
cmds := make([][]string, 0, len(e.cfg.Plugins))
relProtoPath, _ := filepath.Rel(e.rootDir.String(), protoPath)

Choose a reason for hiding this comment

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

[errcheck] reported by reviewdog 🐶
relProtoPath, _ := filepath.Rel(e.rootDir.String(), protoPath)

@codecov-io
Copy link

codecov-io commented Mar 22, 2019

Codecov Report

Merging #176 into master will decrease coverage by 0.49%.
The diff coverage is 45.23%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #176     +/-   ##
=========================================
- Coverage   61.67%   61.17%   -0.5%     
=========================================
  Files          39       39             
  Lines        1328     1378     +50     
=========================================
+ Hits          819      843     +24     
- Misses        452      474     +22     
- Partials       57       61      +4
Impacted Files Coverage Δ
pkg/grapicmd/internal/usecase/init_config.go 100% <ø> (ø) ⬆️
pkg/protoc/config.go 77.77% <ø> (-4.05%) ⬇️
pkg/grapicmd/cmd/init.go 0% <0%> (ø) ⬆️
...cmd/internal/usecase/initialize_project_usecase.go 0% <0%> (ø) ⬆️
pkg/protoc/wrapper.go 71.84% <77.55%> (+4.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee6573f...a27d653. Read the comment docs.

@izumin5210 izumin5210 merged commit 44f2a47 into master Mar 22, 2019
@izumin5210 izumin5210 deleted the izumin5210/mod branch March 22, 2019 04:07
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.

3 participants