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

stylecheck added to linting and issues resolved #1639

Merged
merged 3 commits into from
Aug 13, 2020
Merged

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Aug 7, 2020

Signed-off-by: Ken Sipe kensipe@gmail.com

Signed-off-by: Ken Sipe <kensipe@gmail.com>
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

I'm not sure about small case for user-facing error strings. But otherwise lgtm

@@ -169,7 +169,7 @@ func (initCmd *initCmd) run() error {
"IfNotPresent":
opts.ImagePullPolicy = initCmd.imagePullPolicy
default:
return fmt.Errorf("Unknown image pull policy %s, must be one of 'Always', 'IfNotPresent' or 'Never'", initCmd.imagePullPolicy)
return fmt.Errorf("unknown image pull policy %s, must be one of 'Always', 'IfNotPresent' or 'Never'", initCmd.imagePullPolicy)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure about the small case: this string is afaik user-facing (and is not wrapped) - shouldn't it start with a capital letter?

@@ -20,7 +20,7 @@ func ForOperator(fs afero.Fs, pathDefault string, overwrite bool, operatorDefaul

nameValid := func(input string) error {
if len(input) < 3 {
return errors.New("Operator name must have more than 3 characters")
return errors.New("operator name must have more than 3 characters")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same for all these errors.

Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
@kensipe
Copy link
Member Author

kensipe commented Aug 13, 2020

resolved merge conflict...

@kensipe kensipe merged commit 0be3e0d into main Aug 13, 2020
@kensipe kensipe deleted the ken/stylecheck branch August 13, 2020 16:44
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.

None yet

2 participants