Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

More linters #631

Merged
merged 61 commits into from
Nov 9, 2020
Merged

More linters #631

merged 61 commits into from
Nov 9, 2020

Conversation

lcd1232
Copy link
Contributor

@lcd1232 lcd1232 commented Oct 23, 2020

Description

How to verify it

golangci-lint run ./...

Changelog

@GuillaumeFalourd GuillaumeFalourd added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 23, 2020
@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #631 into master will decrease coverage by 1.54%.
The diff coverage is 72.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
- Coverage   81.99%   80.45%   -1.55%     
==========================================
  Files         105      101       -4     
  Lines        3955     3617     -338     
==========================================
- Hits         3243     2910     -333     
+ Misses        513      509       -4     
+ Partials      199      198       -1     
Impacted Files Coverage Δ
pkg/cmd/add.go 100.00% <ø> (ø)
pkg/cmd/autocomplete.go 97.46% <ø> (ø)
pkg/cmd/cmd.go 71.42% <ø> (-8.58%) ⬇️
pkg/cmd/create.go 100.00% <ø> (ø)
pkg/cmd/delete.go 100.00% <ø> (ø)
pkg/cmd/delete_context.go 33.33% <ø> (ø)
pkg/cmd/list.go 100.00% <ø> (ø)
pkg/cmd/list_workspace.go 93.93% <ø> (ø)
pkg/cmd/set.go 100.00% <ø> (ø)
pkg/cmd/set_context.go 47.22% <ø> (ø)
... and 47 more

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 112a782...ed6e5c2. Read the comment docs.

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
# Conflicts:
#	pkg/commands/builder.go
#	pkg/formula/runner/inputs.go
#	pkg/formula/runner/local/runner_test.go
@lcd1232
Copy link
Contributor Author

lcd1232 commented Oct 27, 2020

@henriquemoraeszup I fixed merged conflicts but I cannot fix DCO. Could you approve it without DCO check?

@brunasilvazup brunasilvazup added ✔️ ready-for-review ready for review and removed waiting reply Waiting for an answer to a comment labels Oct 27, 2020
@henriquemoraeszup
Copy link
Contributor

@lcd1232 the dco is passing now =]

@@ -177,7 +177,8 @@ func (ad addRepoCmd) runPrompt() CommandRunnerFunc {
return err
}

successMsg := fmt.Sprintf("The %q repository was added with success, now you can use your formulas with the Ritchie!", repository.Name)
successMsg := fmt.Sprintf("The %q repository was added with success, "+
Copy link
Contributor

Choose a reason for hiding this comment

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

What about identing like so

successMsg := fmt.Sprintf(
   "The %q repository was added with success, now you can use your formulas with the Ritchie!", 
   repository.Name,
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 207 to 208
successMsg := fmt.Sprintf("The %q repository was added with success, "+
"now you can use your formulas with the Ritchie!", r.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

What about identing like so

Suggested change
successMsg := fmt.Sprintf("The %q repository was added with success, "+
"now you can use your formulas with the Ritchie!", r.Name)
successMsg := fmt.Sprintf(
"The %q repository was added with success, now you can use your formulas with Ritchie!",
r.Name,
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -34,12 +34,12 @@ const (

var supportedShell = []string{zsh.String(), bash.String(), fish.String(), powerShell.String()}

// autocompleteCmd type for set autocomplete command
// autocompleteCmd type for set autocomplete command.
Copy link
Contributor

Choose a reason for hiding this comment

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

How important is this rule to keep it? I feel this could become an experience barrier for users from the community making PRs to Ritchie to have to add periods in comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to add this linter, but then I realized that I don't have enough patience to do this. Right now it's disabled. I can discard this change if you want.

Copy link
Contributor

Choose a reason for hiding this comment

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

no, it is fine this way

@@ -35,7 +35,9 @@ func NewMetricsCmd(file stream.FileWriteReadExister, inList prompt.InputList) *c
func (m metricsCmd) run() CommandRunnerFunc {
return func(cmd *cobra.Command, args []string) error {
options := []string{"yes", "no"}
choose, err := m.input.List("You want to send anonymous data about the product, feature use, statistics and crash reports?", options)
choose, err := m.input.List("You want to send anonymous data "+
Copy link
Contributor

Choose a reason for hiding this comment

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

How about newlining on the parenthesis?

choose, err := m.input.List(
   ...
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 45 to 50
ErrDockerNotInstalled = errors.New("you must have the docker installed to run formulas inside it," +
" check how to install it at: [https://docs.docker.com/get-docker]")
ErrDockerImageNotFound = errors.New("config.json does not contain the" +
" \"dockerImageBuilder\" field, to run this formula with docker add a docker image name to it")
ErrDockerfileNotFound = errors.New("the formula cannot be executed inside the docker," +
" you must add a \"Dockerfile\" to execute the formula inside the docker")
Copy link
Contributor

Choose a reason for hiding this comment

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

How about newlining on the parenthesis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

return DefaultUrlFinder{version: version}
}

func (duf DefaultUrlFinder) Url(os string) string {
func (duf DefaultUrlFinder) Url(os string) string { //nolint:stylecheck
//stableVersion, err := resolver.StableVersion()
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove this commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
# Conflicts:
#	pkg/cmd/formula.go
#	pkg/formula/input/prompt/prompt.go
#	pkg/formula/runner/local/runner_test.go
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>
Copy link
Contributor

@henriquemoraeszup henriquemoraeszup left a comment

Choose a reason for hiding this comment

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

Nice job! Thanks for the contribution!
giphy (8)

Comment on lines +58 to +61
resp, err := sm.client.Do(req)
if err != nil {
return
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you can use _ in this err? and dont check if.

@brunasilvazup
Copy link
Contributor

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Nov 6, 2020

🔥 Merge Conflict

@ZupIT ZupIT deleted a comment from ritchie-bot bot Nov 6, 2020
@ZupIT ZupIT deleted a comment from ritchie-bot bot Nov 6, 2020
@victorschumacherzup
Copy link
Contributor

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Nov 6, 2020

👌 Merged branch add_linters into qa

@henriquemoraeszup henriquemoraeszup merged commit 970b8ec into ZupIT:master Nov 9, 2020
brunonmelo pushed a commit to brunonmelo/ritchie-cli that referenced this pull request Nov 12, 2020
* Add file

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Remove one of linters

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Update ci

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More disables

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Disable one linter, fix code

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More improvements

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix errors

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More improvements

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Update ci

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Improve linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* goftm

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix some gocritic issues

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversation

* Improvement pipeline (ZupIT#614)

* adding stg environment

* adding stg environment

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* Trying to make DCO pass

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* adding stg environment (ZupIT#606)

* adding stg environment

* adding stg environment

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* Trying to make DCO pass

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* refactoring pipeline

* minor tweaks

* removing unnecessary files

* adding routing script

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* added context printing (ZupIT#632)

* added context printing

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* fix extra spaces, showling only non default contexts now

Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Prompt to auto rebuild formula on source modifications (ZupIT#578)

* Prompting to rebuild on modifications

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Go style to pre run builder

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Running pre build for local repo only

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding more pre run build tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Refactor: Extracting workspace hashing to workspace.go

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Updating formula hash on manual builds

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding workspace hash tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Customizing workspace hashing custom mock methods

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Organizing pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Removing dead code

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Organizing pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Hashing the whole formula instead of only the src

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Decoupling build commands from main (ZupIT#630)

* Decoupling build commands from main

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>

* Linter

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* added warning on same env name (ZupIT#633)

* added warning and test case

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* remove print'

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* new function for check

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Merge master

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Disable maligned

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix ci

* Check for errors

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix errors after merge

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

Co-authored-by: viniciusramosdefaria <viniciusramosdefaria@gmail.com>
Co-authored-by: Victor Schumacher <51962831+victorschumacherzup@users.noreply.github.com>
Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Co-authored-by: gabriel-pinheiro <56726395+gabriel-pinheiro@users.noreply.github.com>
Co-authored-by: henriquemoraeszup <68074718+henriquemoraeszup@users.noreply.github.com>
Signed-off-by: Bruno N. Melo <brunonobrega.melo@gmail.com>
brunonmelo pushed a commit to brunonmelo/ritchie-cli that referenced this pull request Nov 12, 2020
* Add file

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Remove one of linters

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Update ci

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More disables

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Disable one linter, fix code

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More improvements

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix errors

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More improvements

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Update ci

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Improve linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix linter

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* goftm

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* More fixes

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix some gocritic issues

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversation

* Improvement pipeline (ZupIT#614)

* adding stg environment

* adding stg environment

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* Trying to make DCO pass

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* adding stg environment (ZupIT#606)

* adding stg environment

* adding stg environment

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* Trying to make DCO pass

Signed-off-by: Vinicius Ramos de Faria <viniciusramosdefaria@gmail.com>

* refactoring pipeline

* minor tweaks

* removing unnecessary files

* adding routing script

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* added context printing (ZupIT#632)

* added context printing

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* fix extra spaces, showling only non default contexts now

Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Prompt to auto rebuild formula on source modifications (ZupIT#578)

* Prompting to rebuild on modifications

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Go style to pre run builder

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Running pre build for local repo only

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding more pre run build tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Refactor: Extracting workspace hashing to workspace.go

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Updating formula hash on manual builds

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Adding workspace hash tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Customizing workspace hashing custom mock methods

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Organizing pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Removing dead code

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* refactor: Organizing pre run builder tests

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Hashing the whole formula instead of only the src

Signed-off-by: Gabriel Pinheiro <gabrielctpinheiro@gmail.com>

* Decoupling build commands from main (ZupIT#630)

* Decoupling build commands from main

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>

* Linter

Signed-off-by: Henrique Moraes <henrique.moraes@zup.com.br>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* added warning on same env name (ZupIT#633)

* added warning and test case

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* remove print'

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

* new function for check

Signed-off-by: victor-schumacher <victorschumacher255@gmail.com>

Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Merge master

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Disable maligned

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix ci

* Check for errors

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Resolve conversations

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

* Fix errors after merge

Signed-off-by: lcd1232 <8745863+lcd1232@users.noreply.github.com>

Co-authored-by: viniciusramosdefaria <viniciusramosdefaria@gmail.com>
Co-authored-by: Victor Schumacher <51962831+victorschumacherzup@users.noreply.github.com>
Co-authored-by: victor-schumacher <victorschumacher255@gmail.com>
Co-authored-by: gabriel-pinheiro <56726395+gabriel-pinheiro@users.noreply.github.com>
Co-authored-by: henriquemoraeszup <68074718+henriquemoraeszup@users.noreply.github.com>
Signed-off-by: Bruno N. Melo <brunonobrega.melo@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Hacktoberfest https://hacktoberfest.digitalocean.com/ 🔨 improvement Improvement in features ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improves code quality related to linters and tests
8 participants