Skip to content

Commit 3f29a16

Browse files
authored
improvement(lint): strip comment noise and add check:comment-hygiene (#8551)
* chore(lint): delete commented-out code Removes dead sub-block configs from the Human in the Loop and Greptile blocks and an unused commented-out DisplayMode type. The docs generator read the commented-out greptile_search entry in tools.access, so the generated Greptile docs advertised a disabled operation; regenerated. * improvement(audits): add check:comment-hygiene Fails on banner separator comments and on line comments whose text parses as TypeScript (commented-out code). Comments come from the Babel token stream so strings are never inspected; prose lines split comment groups, and labels, literals and one-off glosses are rejected, giving zero false positives across the tree. Change-history phrasing was measured and left out because most hits describe live state. * chore(lint): remove banner separators and narrating comments Converts decorated section banners to plain comments or drops them, and sweeps the noisiest files for comments that restate the code or name what follows. Field-level notes that carry units, enums or invariants move to TSDoc. Comment-only: the non-comment token stream of every changed file is identical. * fix(audits): fail comment-hygiene on unparsable files, raise listing buffer, correct ribbon arc note
1 parent 31503c5 commit 3f29a16

94 files changed

Lines changed: 804 additions & 3314 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/components/icons.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9613,7 +9613,7 @@ export function EnrowIcon(props: SVGProps<SVGSVGElement>) {
96139613
)
96149614
}
96159615

9616-
// ---- Competitor brand logos (sourced via Context.dev brand-intelligence API, 2026-07-02) ----
9616+
// Competitor brand logos (sourced via Context.dev brand-intelligence API, 2026-07-02)
96179617

96189618
export function N8nIcon(props: SVGProps<SVGSVGElement>) {
96199619
return (

‎apps/docs/content/docs/integrations/greptile.mdx‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,6 @@ Query repositories in natural language and get answers with relevant code refere
5353
| ↳ `summary` | string | Summary of the code section |
5454
| ↳ `distance` | number | Similarity score \(lower = more relevant\) |
5555

56-
### Greptile Search
57-
58-
Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.
59-
60-
#### Input
61-
62-
| Parameter | Type | Required | Description |
63-
| --------- | ---- | -------- | ----------- |
64-
| `query` | string | Yes | Natural language search query to find relevant code. Example: "authentication middleware" or "database connection handling" |
65-
| `repositories` | string | Yes | Comma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" \(defaults to github:main\). Example: "facebook/react" or "github:main:facebook/react,github:main:facebook/relay" |
66-
| `sessionId` | string | No | Session ID for conversation continuity. Use the same sessionId across multiple searches to maintain context. Example: "session-abc123" |
67-
| `genius` | boolean | No | Enable genius mode for more thorough search \(slower but more accurate\) |
68-
| `apiKey` | string | Yes | Greptile API key |
69-
| `githubToken` | string | Yes | GitHub Personal Access Token with repo read access |
70-
71-
#### Output
72-
73-
| Parameter | Type | Description |
74-
| --------- | ---- | ----------- |
75-
| `sources` | array | Relevant code references matching the search query |
76-
| ↳ `repository` | string | Repository name \(owner/repo\) |
77-
| ↳ `remote` | string | Git remote \(github/gitlab\) |
78-
| ↳ `branch` | string | Branch name |
79-
| ↳ `filepath` | string | Path to the file |
80-
| ↳ `linestart` | number | Starting line number |
81-
| ↳ `lineend` | number | Ending line number |
82-
| ↳ `summary` | string | Summary of the code section |
83-
| ↳ `distance` | number | Similarity score \(lower = more relevant\) |
84-
8556
### Greptile Index Repository
8657

8758
Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.

0 commit comments

Comments
 (0)