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

lint: enable the CODEOWNERS linter on non-clean workdirs #81467

Merged
merged 1 commit into from
May 19, 2022

Conversation

knz
Copy link
Contributor

@knz knz commented May 18, 2022

Prior to this patch, the linter would bark if there were spurious
files in otherwise-empty unowned directories (e.g. pkg/).

This patch fixes it.

Release note: None

Prior to this patch, the linter would bark if there were spurious
files in otherwise-empty unowned directories (e.g. pkg/).

This patch fixes it.

Release note: None
@knz knz requested a review from andrewbaptist May 18, 2022 18:00
@knz knz requested a review from a team as a code owner May 18, 2022 18:00
@knz knz requested review from srosenberg and removed request for a team May 18, 2022 18:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andrewbaptist and @knz)


pkg/internal/codeowners/lint.go line 69 at r1 (raw file):

		"README.md":                         {},
	}
	skipGlobs := []string{

Seems odd that these globs are not part of .gitignore; if they were, we could load them from there to avoid bit rot.

Copy link
Contributor Author

@knz knz left a comment

Choose a reason for hiding this comment

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

Thanks stan!

bors r=srosenberg

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andrewbaptist and @srosenberg)


pkg/internal/codeowners/lint.go line 69 at r1 (raw file):

Previously, srosenberg (Stan Rosenberg) wrote…

Seems odd that these globs are not part of .gitignore; if they were, we could load them from there to avoid bit rot.

  1. IIRC they are not because folk have argued in the past that "this type of global ignores belongs to a ~/.gitignore file, not a per-project one".
  2. the .gitignore files are strewn across multiple levels of the hierarchy. The cost of loading them, and then applying the rules in the right order and the right way (NB, gitignore has its own matching syntax and order, not simple globs), seems more hassle than is worth here.

Copy link
Collaborator

@andrewbaptist andrewbaptist left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @srosenberg)

Copy link
Collaborator

@andrewbaptist andrewbaptist left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @srosenberg)

Copy link
Collaborator

@andrewbaptist andrewbaptist left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @srosenberg)

@craig
Copy link
Contributor

craig bot commented May 19, 2022

Build succeeded:

@craig craig bot merged commit fb8e09a into cockroachdb:master May 19, 2022
@knz knz deleted the 20220518-lint branch May 19, 2022 14:52
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.

4 participants