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

Fixes lint setup to skip embedded tinygo examples #138

Merged
merged 2 commits into from
Mar 26, 2021
Merged

Conversation

codefromthecrypt
Copy link
Contributor

Signed-off-by: Adrian Cole adrian@tetrate.io

Signed-off-by: Adrian Cole <adrian@tetrate.io>
@@ -141,6 +132,7 @@ issues:
- errcheck
- dupl
- gosec
- lll
Copy link
Contributor Author

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
Copy link
Contributor Author

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
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 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)

@codefromthecrypt
Copy link
Contributor Author

Added #139 to discuss linting of templates in general

@codefromthecrypt codefromthecrypt merged commit 26b60a1 into master Mar 26, 2021
@codefromthecrypt codefromthecrypt deleted the lint branch March 26, 2021 07:37
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.

2 participants