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

[project] Fix linting picking up local dir #13412

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

jsumners
Copy link
Contributor

Description:

While working on #13410 I encountered a linting error. When running make lint locally, the linter was failing for two reasons:

  1. It wanted a license block added to a Go file in the local/ directory
  2. It didn't like that a function was unused in the same Go file in the local/ directory

The .gitignore specifically excludes the local/ directory:

We should not lint code in that directory.

Does this PR need a changelog yaml file?

@jsumners jsumners requested review from a team and jpkrohling August 18, 2022 12:46
@TylerHelmuth TylerHelmuth added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 18, 2022
@jsumners jsumners force-pushed the mezmo/tweak-lint branch 2 times, most recently from e6abeaa to cd4b277 Compare August 18, 2022 17:03
@dmitryax
Copy link
Member

@jsumners what do need to have in local directory causing such issues? Usually local should have only configs for local testing

@jsumners
Copy link
Contributor Author

Does it matter? The directory is meant to be ignored. Regardless, I have a scratch file that contains arbitrary code.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 6, 2022
@jsumners
Copy link
Contributor Author

jsumners commented Sep 6, 2022

Can we merge this?

@jpkrohling jpkrohling merged commit d2490af into open-telemetry:main Sep 6, 2022
@jsumners jsumners deleted the mezmo/tweak-lint branch September 6, 2022 14:31
@jsumners
Copy link
Contributor Author

jsumners commented Sep 6, 2022

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants