-
Notifications
You must be signed in to change notification settings - Fork 104
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
Conversation
Signed-off-by: Ken Sipe <kensipe@gmail.com>
There was a problem hiding this 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) |
There was a problem hiding this 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 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") |
There was a problem hiding this comment.
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>
resolved merge conflict... |
Signed-off-by: Ken Sipe kensipe@gmail.com