Skip to content

Conversation

findleyr
Copy link
Contributor

@findleyr findleyr commented Sep 8, 2025

In #294, we accidentally checked files with the default Go project copyright header. Avoid this in the future with a copyright test.

In modelcontextprotocol#294, we accidentally checked files with the default Go project
copyright header. Avoid this in the future with a copyright test.
strings.HasPrefix(d.Name(), "_") ||
filepath.Base(d.Name()) == "testdata") {

// Skip directories starting with "." or "_", and testdata directories.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: put this above L27

}

if !strings.HasSuffix(path, ".go") {
// Skip non-go files.
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

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