Repository navigation
A linter for TypeScript pipeline code - #5
Merged
Merged
Conversation
packages/codeupipe-lint-ts reads TypeScript source and reports: - a step with no name: a function, an object literal, a class that is declared in a function, a plain nested Pipeline (CUP-A001, A002, A003, A005, A008, A009); - a Filter or a Predicate that reads State (CUP-I003); - a Tap, a Predicate or a Hook that writes to the Payload (CUP-I004); - more than one primitive in a file, a file name that is not the class name in kebab-case, a class name with no role (CUP-I005, I006, I007). The linter is a codeupipe pipeline. It uses the typescript package to parse. A finding is turned off with a comment marker, --exclude, --disable, or the lint section of cup.config.json. CUP-I001 is not needed in TypeScript, because the data of a Payload is in a private field. CUP-I002 is not built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is added
packages/codeupipe-lint-ts, a linter that reads TypeScript source. It is a codeupipe pipeline, and it parses with thetypescriptpackage.Rules
CUP-I001 is not needed in TypeScript, because the data of a Payload is in a private field. CUP-I002 is not built.
Turn a finding off
A comment marker,
--exclude,--disable, or thelintsection ofcup.config.json.This pull request is part of a stack. Merge the stack in order, with a merge commit: step-labels, typescript-runtime, typescript-lint, typescript-compile, python-compile-rename, version-2-beta. Each one shows only its own change.
🤖 Generated with Claude Code