-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fixes lint setup to skip embedded tinygo examples #138
Conversation
Signed-off-by: Adrian Cole <adrian@tetrate.io>
@@ -141,6 +132,7 @@ issues: | |||
- errcheck | |||
- dupl | |||
- gosec | |||
- lll |
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.
tests tend to have really long lines
@@ -39,7 +39,7 @@ var ( | |||
) | |||
|
|||
// NewToolchain returns a builtin toolchain with a given configuration. | |||
func NewToolchain(name string, cfg *config.ToolchainConfig, workspace model.Workspace) *builtin { | |||
func NewToolchain(name string, cfg *config.ToolchainConfig, workspace model.Workspace) *builtin { //nolint |
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.
the lint error is that returning unexported types is confusing. I feel it probably isn't unexpected here, so disabled it.
# from this option's value: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs: | ||
- pkg/binary/envoytest |
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 took out the skip-dirs thing from here as it is handled externally. we aren't vendoring anything and addressing or ignoring the lint problems in envoytest was imho a better call than the confusion of two things doing skip-dir (make and here)
Added #139 to discuss linting of templates in general |
Signed-off-by: Adrian Cole adrian@tetrate.io