Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
158f01e
Add ts dev lint domains and install-hooks on the commands/dev layout
aram356 Jul 10, 2026
c2703eb
Fix lint fixture committer identity and spec markdown formatting
aram356 Jul 17, 2026
eb18c83
Merge branch 'main' into feature/check-domains-spec
aram356 Jul 19, 2026
231abb9
Merge branch 'main' into feature/check-domains-spec
aram356 Aug 1, 2026
2ddccb9
Merge branch 'main' into feature/check-domains-spec
aram356 Aug 18, 2026
c0ffbfc
Address review: fix self-exclusion path, hook safety, subdir discovery
aram356 Sep 6, 2026
d86e4aa
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 6, 2026
db714df
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 7, 2026
1c2914a
Fix dead link to the design spec in the lint-domains plan
aram356 Sep 7, 2026
026fafc
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 8, 2026
fbbb6ae
Install the pre-commit hook into .git/hooks instead of repointing cor…
aram356 Sep 11, 2026
4c510b2
Canonicalize the whole URL authority before the allowlist check
aram356 Sep 11, 2026
76c7b26
Treat renames from unscanned paths as additions in diff modes
aram356 Sep 11, 2026
0c9ba26
Narrow the self-exclusion to the linter's own files and ignore extens…
aram356 Sep 11, 2026
96e8371
Pin fixture repositories to main regardless of init.defaultBranch
aram356 Sep 11, 2026
e48dd8b
Address the smaller lint domains review findings
aram356 Sep 11, 2026
f9eab1c
Merge remote-tracking branch 'origin/main' into feature/check-domains…
aram356 Sep 11, 2026
7077b7a
Record the shell-script scope gap and format the check-domains spec
aram356 Sep 11, 2026
0da2520
Drop em dashes from new doc comments
aram356 Sep 11, 2026
0a0bfea
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 11, 2026
875ca36
Close four hook and host-extraction bypasses in ts dev lint domains
aram356 Sep 11, 2026
07b86ee
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 21, 2026
e88b5e4
Close five URL-extraction and path-scope bypasses in ts dev lint domains
aram356 Sep 22, 2026
7593a39
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 22, 2026
195e7ef
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 24, 2026
606384a
Keep source punctuation and IDNA TLDs out of the host-extraction bypass
aram356 Sep 24, 2026
944df4d
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 24, 2026
fcba41d
Terminate the authority capture at a closing single quote
aram356 Sep 25, 2026
873eec5
Merge branch 'main' into feature/check-domains-spec
aram356 Sep 28, 2026
a076f05
Merge branch 'main' into feature/check-domains-spec
aram356 Oct 1, 2026
83e7f3d
Merge branch 'main' into feature/check-domains-spec
aram356 Oct 8, 2026
eb1ee27
Ungate the console output helpers so non-macOS hosts compile
aram356 Oct 8, 2026
0ccb687
Merge branch 'main' into feature/check-domains-spec
aram356 Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,31 @@ Keep a pull request in draft while required checks or known changes remain.
Before requesting review, inspect the complete diff, resolve all failures, and
state any platform path that could not be exercised.

### Pre-commit URL-host linter

`ts dev lint domains` flags non-allowlisted URL hosts in source, config, and
docs. Install the managed hook once per checkout so staged changes are checked
before every commit:

```bash
ts dev install-hooks
```

This writes a `pre-commit` hook into `.git/hooks`, shared by every linked
worktree of the clone. It never edits git configuration and never writes into
the working tree. It refuses to replace a hook it did not write (`--force`
replaces it and prints the backup path), and refuses when `core.hooksPath` is
set, since git then runs hooks from that directory instead. To uninstall, delete
`.git/hooks/pre-commit` and restore any `pre-commit.bak.*` backup.

To scan on demand, `ts dev lint domains` audits the whole working tree and
`--changed-vs <ref>` limits it to lines added against a ref. The full audit
reports pre-existing violations, so a non-zero exit is expected today.

To allow a new host, add it to the allowlist constants in
`crates/trusted-server-cli/src/commands/dev/lint/domains.rs`. To suppress a
single line, append `// allow-domain: <host>` in a comment.

## Commits

Write concise, imperative, sentence-case subjects without semantic prefixes or
Expand Down
Loading
Loading