Skip to content

build: replace in-repo optional nil and encapsulation linters with tsk - #28

Merged
alecthomas merged 3 commits into
mainfrom
remove-optional-linting
Oct 8, 2026
Merged

alecthomas merged 3 commits into
mainfrom
remove-optional-linting

Conversation

@alecthomas

@alecthomas alecthomas commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

tsk bundles the optional nil and encapsulation checks with other Go linters, so the repository no longer needs to maintain its own optional nil linter or install the separate encapsulation linter.

A single lint-tsk build target now runs every enabled tsk linter. It replaces the lint-optional and lint-encapsulation targets, the optionalnil command, and the encapsulation-linter package. The one intentional nil now uses tsk's //nolint:optionalnil comment, and the agent guidelines describe how to suppress any tsk finding.

🤖 Generated with Claude Code

alecthomas and others added 2 commits October 8, 2026 14:07
tsk bundles the optional nil check alongside other linters, so the
repository no longer needs to build and maintain its own copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tsk already runs the same encapsulation check, so running both
duplicates work and leaves an extra tool to keep up to date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alecthomas alecthomas changed the title build: replace the in-repo optional nil linter with tsk build: replace in-repo optional nil and encapsulation linters with tsk Oct 8, 2026
@alecthomas
alecthomas marked this pull request as ready for review October 8, 2026 03:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T03:43:20.954637Z 1023583 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f71628621c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread BUILD.bit Outdated
Bit only reruns a task when its inputs change, so editing the tsk config
or upgrading tsk alone would reuse a stale lint result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alecthomas

Copy link
Copy Markdown
Collaborator Author

@codex review

@alecthomas
alecthomas merged commit 431dc10 into main Oct 8, 2026
6 checks passed
@alecthomas
alecthomas deleted the remove-optional-linting branch October 8, 2026 03:42
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 102358378c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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