-
Notifications
You must be signed in to change notification settings - Fork 167
Update common files from starter template and fix linter issues #958
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
base: master
Are you sure you want to change the base?
Conversation
- Update Makefile with manifest-check target and newer tool versions
(golangci-lint v2.8.0, gotestsum v1.13.0)
- Update build/manifest/main.go with check command and modern Go APIs
- Update .golangci.yml to v2 format with new linters
- Update .nvmrc from 16.13.1 to 20.11
- Update .editorconfig and .github/workflows/ci.yml
- Fix all linter issues:
- Replace interface{} with any (Go 1.18+)
- Replace manual loops with slices.Contains
- Replace string concatenation in loops with strings.Builder
- Fix gofumpt formatting issues
- Add nolint directives for intentionally ignored errors
- Fix directory permissions (0755 -> 0750)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
hanzei
left a comment
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.
Some changes in the starter template are needed first
| manifest.ReleaseNotesURL, err = url.JoinPath(manifest.HomepageURL, "releases", "tag", BuildTagLatest) | ||
| if err != nil { | ||
| return nil, errors.Wrap(err, "failed to generate release notes URL") | ||
| } | ||
| manifest.ReleaseNotesURL = manifest.HomepageURL + "releases/tag/" + BuildTagLatest |
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.
That's a bug in the starter template. Submitted mattermost/mattermost-plugin-starter-template#236
| [*.{js,jsx,ts,tsx,json,html}] | ||
| [*.{js, jsx, ts, tsx, json, html}] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| [webapp/package.json] | ||
| indent_size = 2 | ||
|
|
||
| [Makefile,*.mk] | ||
| [{Makefile, *.mk}] |
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.
We should not be doing these changes. The starter template is wrong. See mattermost/mattermost-plugin-starter-template#236
Summary
Changes
Build tooling updates
manifest-checktarget, updated tool versionscheckcommand, modernized Go APIsLinter fixes
interface{}withany(Go 1.18+)slices.Containsstrings.BuilderTest plan
make check-stylepasses with 0 issues🤖 Generated with Claude Code