internal/

directory
v0.0.0-...-0183ccf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: Apache-2.0, MIT

Directories

Path Synopsis
Package benchresults is the recorded form of a bench/quiet_machine.sh run: one JSON file per run in bench/results, committed, which the website's benchmarks page reads (#rwgs6j2, for #7tmkt32).
Package benchresults is the recorded form of a bench/quiet_machine.sh run: one JSON file per run in bench/results, committed, which the website's benchmarks page reads (#rwgs6j2, for #7tmkt32).
tools/record command
Command record writes one bench/quiet_machine.sh run to bench/results as a validated record (internal/benchresults).
Command record writes one bench/quiet_machine.sh run to bench/results as a validated record (internal/benchresults).
tools/runoutput command
Command runoutput prints what one measured run said about itself, read from its `--json` output (benchresults.ParseRunOutput), as quiet_machine.sh's columns: engine seconds, findings and cache use, tab-separated.
Command runoutput prints what one measured run said about itself, read from its `--json` output (benchresults.ParseRunOutput), as quiet_machine.sh's columns: engine seconds, findings and cache use, tab-separated.
Package corpus names the code outside this repository that some tests read, and is the only way a test finds it (#sycrdr6).
Package corpus names the code outside this repository that some tests read, and is the only way a test finds it (#sycrdr6).
Acknowledged differences are the ones we decided on purpose.
Acknowledged differences are the ones we decided on purpose.
Package docsdata generates the data the cohere website (system.inc/cohere) is built from, from the sources the binary itself is built from, so the site can never say something the binary does not do.
Package docsdata generates the data the cohere website (system.inc/cohere) is built from, from the sources the binary itself is built from, so the site can never say something the binary does not do.
capture
Package capture is the record the lint test harness writes for the docs generator: one case a rule's test asserted, with the source it ran on and what the rule did there.
Package capture is the record the lint test harness writes for the docs generator: one case a rule's test asserted, with the source it ran on and what the rule did there.
tools/generate command
Command generate writes the website's data (internal/docsdata) into the module's docs/data/ directory.
Command generate writes the website's data (internal/docsdata) into the module's docs/data/ directory.
Package fix applies the repairs rules propose, and refuses the ones that would corrupt a file.
Package fix applies the repairs rules propose, and refuses the ones that would corrupt a file.
format
arena
Package arena hands out values from chunks of memory that are kept and reused, for the trees a format builds and drops one file at a time (#93dpede).
Package arena hands out values from chunks of memory that are kept and reused, for the trees a format builds and drops one file at a time (#93dpede).
comparison
Package formatdiff measures typescript-go's formatter against the Prettier fork that formats this codebase today.
Package formatdiff measures typescript-go's formatter against the Prettier fork that formats this codebase today.
css
css/mediaquery
Package mediaquery is postcss-media-query-parser 0.2.3 (dist/), the parser Prettier's src/language-css/parse/parse-media-query.js runs on the params of @media and @custom-media.
Package mediaquery is postcss-media-query-parser 0.2.3 (dist/), the parser Prettier's src/language-css/parse/parse-media-query.js runs on the params of @media and @custom-media.
css/postcss
Package postcss is postcss 8.5.16's CSS parser ported to Go: lib/tokenize.js, lib/parser.js and lib/parse.js, with the parts of lib/input.js, lib/css-syntax-error.js and the node classes they need.
Package postcss is postcss 8.5.16's CSS parser ported to Go: lib/tokenize.js, lib/parser.js and lib/parse.js, with the parts of lib/input.js, lib/css-syntax-error.js and the node classes they need.
css/selector
Package selector is postcss-selector-parser 2.2.3, the selector parser Prettier's CSS printer reads: dist/processor.js, dist/parser.js, dist/tokenize.js and dist/selectors/*.js, ported to Go.
Package selector is postcss-selector-parser 2.2.3, the selector parser Prettier's CSS printer reads: dist/processor.js, dist/parser.js, dist/tokenize.js and dist/selectors/*.js, ported to Go.
css/values
Package values ports postcss-values-parser 2.0.1 (lib/parser.js, lib/tokenize.js and the node classes), the parser Prettier's language-css hands declaration values and some at-rule params to.
Package values ports postcss-values-parser 2.0.1 (lib/parser.js, lib/tokenize.js and the node classes), the parser Prettier's language-css hands declaration values and some at-rule params to.
differential
Package differential measures a candidate formatter against the Prettier fork, byte for byte, over real corpora.
Package differential measures a candidate formatter against the Prettier fork, byte for byte, over real corpora.
doc
Package doc is Prettier's document IR and layout algorithm, ported to Go.
Package doc is Prettier's document IR and layout algorithm, ported to Go.
doc/tools/generate_string_width command
Command generate_string_width captures the three tables Prettier's getStringWidth depends on, from the exact package versions the fork bundles, and writes them as Go.
Command generate_string_width captures the three tables Prettier's getStringWidth depends on, from the exact package versions the fork bundles, and writes them as Go.
estree
Package estree is the ESTree tree Prettier's JavaScript printer reads, built from typescript-go's AST.
Package estree is the ESTree tree Prettier's JavaScript printer reads, built from typescript-go's AST.
formatfiles
Package formatfiles decides which files a tree offers the formatter: the walk, its ignore layers (git's ignore files, the house list, the project's ignorePatterns), and an account of every file it did not offer.
Package formatfiles decides which files a tree offers the formatter: the walk, its ignore layers (git's ignore files, the house list, the project's ignorePatterns), and an account of every file it did not offer.
formatoptions
Package formatoptions is what a file formats with: the options, Prettier's names for them, and how a directory resolves them from its repository's config.
Package formatoptions is what a file formats with: the options, Prettier's names for them, and how a directory resolves them from its repository's config.
graphql
Package graphql is Prettier's GraphQL language: graphql-js's parser, ported here, and Prettier's printer-graphql, ported beside it.
Package graphql is Prettier's GraphQL language: graphql-js's parser, ported here, and Prettier's printer-graphql, ported beside it.
javascript
Package javascript is Prettier's JavaScript and TypeScript printer, src/language-js in the fork, ported to Go over the ESTree tree internal/format/estree builds.
Package javascript is Prettier's JavaScript and TypeScript printer, src/language-js in the fork, ported to Go over the ESTree tree internal/format/estree builds.
markdown
Package markdown is Prettier's markdown printer (src/language-markdown) for the markdown parser, ported to Go over the tree internal/format/markdown/mdast builds with the same parser the fork runs.
Package markdown is Prettier's markdown printer (src/language-markdown) for the markdown parser, ported to Go over the tree internal/format/markdown/mdast builds with the same parser the fork runs.
markdown/mdast
Package mdast is the syntax tree Prettier's markdown printer reads, and mdast-util-from-markdown, the compiler that builds it from micromark's events.
Package mdast is the syntax tree Prettier's markdown printer reads, and mdast-util-from-markdown, the compiler that builds it from micromark's events.
markdown/micromark
Package micromark is micromark 4, the markdown tokenizer Prettier's markdown parser runs, ported to Go.
Package micromark is micromark 4, the markdown tokenizer Prettier's markdown parser runs, ported to Go.
markdown/micromark/tools/generate_characters command
Command generate_characters captures micromark's two Unicode character classes from the bundle the oracle runs, and writes them as Go.
Command generate_characters captures micromark's two Unicode character classes from the bundle the oracle runs, and writes them as Go.
markdown/micromark/tools/generate_entities command
Command generate_entities captures the HTML named character references micromark decodes, from the table the oracle's bundle carries, and writes them as Go.
Command generate_entities captures the HTML named character references micromark decodes, from the table the oracle's bundle carries, and writes them as Go.
markdown/tools/generate_classes command
Command generate_classes captures the character classes Prettier's markdown printer splits and wraps text by, from the bundle the oracle runs, and writes them as Go.
Command generate_classes captures the character classes Prettier's markdown printer splits and wraps text by, from the bundle the oracle runs, and writes them as Go.
markdown/tools/generate_languages command
Command generate_languages captures the languages markdown's embed infers a parser from, from the bundles the oracle runs, and writes them as Go.
Command generate_languages captures the languages markdown's embed infers a parser from, from the bundles the oracle runs, and writes them as Go.
native
Package native is cohere's own formatter: the printers that replace Prettier, routed by file type.
Package native is cohere's own formatter: the printers that replace Prettier, routed by file type.
oracletest
Package oracletest keeps what the embedded Prettier answered for a test's fixtures in a checked-in golden file, so the test compares bytes and runs no JavaScript (#nxgt2ca).
Package oracletest keeps what the embedded Prettier answered for a test's fixtures in a checked-in golden file, so the test compares bytes and runs no JavaScript (#nxgt2ca).
prettier
Package prettier formats source by running our own Prettier fork inside a JavaScript engine.
Package prettier formats source by running our own Prettier fork inside a JavaScript engine.
printing
Package printing is Prettier's print core, shared by every native printer in cohere: AstPath, the print driver that wraps each node's doc in its comments, comment attachment, and embedding.
Package printing is Prettier's print core, shared by every native printer in cohere: AstPath, the print driver that wraps each node's doc in its comments, comment attachment, and embedding.
yaml
Package yaml is Prettier's YAML printer (src/language-yaml) ported to Go, printing the tree internal/format/yaml/unist describes: yaml-unist-parser's, over eemeli/yaml.
Package yaml is Prettier's YAML printer (src/language-yaml) ported to Go, printing the tree internal/format/yaml/unist describes: yaml-unist-parser's, over eemeli/yaml.
yaml/compose
Package compose is eemeli/yaml 2.9.0's composer, dist/compose/, ported to Go with the node classes it builds (dist/nodes/), the parts of dist/doc/ it runs (the Document constructor and setSchema, the Directives), and the schemas it resolves tags against (dist/schema/: the core schema, the common map, seq, string and null tags, and the YAML 1.1 schema, which a %YAML 1.1 directive selects and six of whose tags the core schema reaches as known tags).
Package compose is eemeli/yaml 2.9.0's composer, dist/compose/, ported to Go with the node classes it builds (dist/nodes/), the parts of dist/doc/ it runs (the Document constructor and setSchema, the Directives), and the schemas it resolves tags against (dist/schema/: the core schema, the common map, seq, string and null tags, and the YAML 1.1 schema, which a %YAML 1.1 directive selects and six of whose tags the core schema reaches as known tags).
yaml/cst
Package cst is eemeli/yaml 2.9.0's concrete syntax tree parser, dist/parse/, ported to Go: the lexer (lexer.js), the parser (parser.js), the token types and tokenType (cst.js), and the LineCounter (line-counter.js).
Package cst is eemeli/yaml 2.9.0's concrete syntax tree parser, dist/parse/, ported to Go: the lexer (lexer.js), the parser (parser.js), the token types and tokenType (cst.js), and the LineCounter (line-counter.js).
yaml/unist
Package unist is the syntax tree Prettier's YAML printer reads: yaml-unist-parser 3.2.0's tree, built over the documents eemeli/yaml 2.9.0 composes.
Package unist is the syntax tree Prettier's YAML printer reads: yaml-unist-parser 3.2.0's tree, built over the documents eemeli/yaml 2.9.0 composes.
Package gitignore decides which paths a repository's ignore files exclude, the way git decides it, without running git.
Package gitignore decides which paths a repository's ignore files exclude, the way git decides it, without running git.
lint
checking
Source: tsgolint `internal/utilities/builtin_symbol_likes.go`.
Source: tsgolint `internal/utilities/builtin_symbol_likes.go`.
checking/flow
Package flow finds every place a value of one type is put into a slot of another, and relates the two part by part.
Package flow finds every place a value of one type is put into a slot of another, and relates the two part by part.
configuration
Package config decides which rules apply to which files.
Package config decides which rules apply to which files.
ecmascript/binding
Package binding answers whether an identifier names something this file chose.
Package binding answers whether an identifier names something this file chose.
ecmascript/classmembers
Package classmembers answers which members of a class collide with each other.
Package classmembers answers which members of a class collide with each other.
ecmascript/consistentreturn
Package consistentreturn answers whether the `return` statements in one function agree about carrying a value, and where to point when they do not.
Package consistentreturn answers whether the `return` statements in one function agree about carrying a value, and where to point when they do not.
ecmascript/control_flow_graph
Vendored from web-infra-dev/rslint, `internal/utilities/cfg`, at commit 44956a0c53201157aaf5bc19e1c2728896c83ec4.
Vendored from web-infra-dev/rslint, `internal/utilities/cfg`, at commit 44956a0c53201157aaf5bc19e1c2728896c83ec4.
ecmascript/decorators
Package decorators reads TypeScript decorators and the declared/actual nullability that the decorator parity rules compare.
Package decorators reads TypeScript decorators and the declared/actual nullability that the decorator parity rules compare.
ecmascript/descriptor
Package descriptor answers whether a function is the `get` or `set` of a property descriptor passed to one of the platform methods that read descriptors: `Object.defineProperty`, `Object.defineProperties`, `Object.create` and `Reflect.defineProperty`.
Package descriptor answers whether a function is the `get` or `set` of a property descriptor passed to one of the platform methods that read descriptors: `Object.defineProperty`, `Object.defineProperties`, `Object.create` and `Reflect.defineProperty`.
ecmascript/directives
Package directives is the grammar of suppression comments, and the short list of rules whose findings are about those comments.
Package directives is the grammar of suppression comments, and the short list of rules whose findings are about those comments.
ecmascript/dotnotation
Package dotnotation is the judgment behind `dot-notation`: which bracket accesses with a literal key read better as dot accesses, which dot accesses must be bracketed when keywords are disallowed, and the repairs for both.
Package dotnotation is the judgment behind `dot-notation`: which bracket accesses with a literal key read better as dot accesses, which dot accesses must be bracketed when keywords are disallowed, and the repairs for both.
ecmascript/high_level_intermediate_representation
Making a method call and its property agree about scopes.
Making a method call and its property agree about scopes.
ecmascript/imports
Package imports answers where a file's imports come from, in every shape the language allows.
Package imports answers where a file's imports come from, in every shape the language allows.
ecmascript/jsx
Package jsx answers the questions a rule asks about a JSX element: what tag it names, what attributes it writes, and what a given attribute's text is.
Package jsx answers the questions a rule asks about a JSX element: what tag it names, what attributes it writes, and what a given attribute's text is.
ecmascript/literal
Package literal answers questions about the text a string literal holds, where the bytes on disk and the value the program receives are two different strings.
Package literal answers questions about the text a string literal holds, where the bytes on disk and the value the program receives are two different strings.
ecmascript/module
Package module answers questions about how a file exposes its declarations.
Package module answers questions about how a file exposes its declarations.
ecmascript/module_roots
Package module_roots decides which files are alive with no importer: a framework loads them by filename, a test runner by glob, a computed `import()` by directory.
Package module_roots decides which files are alive with no importer: a framework loads them by filename, a test runner by glob, a computed `import()` by directory.
ecmascript/nextjs
Package nextjs answers which Next.js file a path is, for the rules that gate on it.
Package nextjs answers which Next.js file a path is, for the rules that gate on it.
ecmascript/property
Package property answers what property a key or a member access names, when the syntax settles it without evaluation.
Package property answers what property a key or a member access names, when the syntax settles it without evaluation.
ecmascript/react
Package react answers the questions a rule asks about React code that are not questions about JSX: is this call constructing an element, is this a component, which component encloses this.
Package react answers the questions a rule asks about React code that are not questions about JSX: is this call constructing an element, is this a component, which component encloses this.
ecmascript/reference
Package reference answers what an identifier occurrence does to the binding it names.
Package reference answers what an identifier occurrence does to the binding it names.
ecmascript/regexp
Package regexp compiles a JavaScript regexp the way JavaScript reads it.
Package regexp compiles a JavaScript regexp the way JavaScript reads it.
ecmascript/regexpattern
Package regexpattern walks a regular expression pattern and reports each character it matches, with the structure enclosing it.
Package regexpattern walks a regular expression pattern and reports each character it matches, with the structure enclosing it.
ecmascript/regexsyntax
cspell:ignore octals
cspell:ignore octals
ecmascript/scope
Package scope answers which construct encloses a node.
Package scope answers which construct encloses a node.
ecmascript/text
Package text holds string measurements that are not specific to any language we lint.
Package text holds string measurements that are not specific to any language we lint.
ecmascript/tokens
Package tokens is a node's tokens, comments and whitespace excluded, and the questions ESLint's SourceCode asks of them: getTokenBefore, getTokenAfter and getFirstTokenBetween.
Package tokens is a node's tokens, comments and whitespace excluded, and the questions ESLint's SourceCode asks of them: getTokenBefore, getTokenAfter and getFirstTokenBetween.
housesets
Package housesets decides, from the program, which house sets a zero-config run applies where (#bfxz13m, #j6p9t1g).
Package housesets decides, from the program, which house sets a zero-config run applies where (#bfxz13m, #j6p9t1g).
linter
Package linter walks source files once and dispatches every rule against them.
Package linter walks source files once and dispatches every rule against them.
optionschema
Package optionschema holds every ported rule's upstream options schema and checks a config's options against it, so cohere accepts exactly the option shapes ESLint accepts and refuses the rest (#pd2chkx).
Package optionschema holds every ported rule's upstream options schema and checks a config's options against it, so cohere accepts exactly the option shapes ESLint accepts and refuses the rest (#pd2chkx).
registry
Package registry is the list of every rule cohere knows.
Package registry is the list of every rule cohere knows.
report
Package report turns findings into what a person reads, and says what was covered.
Package report turns findings into what a person reads, and says what was covered.
rule
Package rule defines what a rule is and how it speaks.
Package rule defines what a rule is and how it speaks.
rules/base
Package base holds the rules that check Base's own conventions.
Package base holds the rules that check Base's own conventions.
rules/boundaries
Package boundaries holds cohere's port of eslint-plugin-boundaries, which checks which parts of a codebase may import which.
Package boundaries holds cohere's port of eslint-plugin-boundaries, which checks which parts of a codebase may import which.
rules/core
Package core ports ESLint's own core rules, the ones that guard JavaScript rather than any convention of ours.
Package core ports ESLint's own core rules, the ones that guard JavaScript rather than any convention of ours.
rules/next
Package next holds the rules from `@next/eslint-plugin-next`, ported from Vercel's originals.
Package next holds the rules from `@next/eslint-plugin-next`, ported from Vercel's originals.
rules/nexus
Package nexus holds the rules that describe how Nexus code reads, ported from the TypeScript originals in ahra's libraries/structure/libraries/nexus/code-quality/lint/rules.
Package nexus holds the rules that describe how Nexus code reads, ported from the TypeScript originals in ahra's libraries/structure/libraries/nexus/code-quality/lint/rules.
rules/react
Package react holds the ported `eslint-plugin-react` rules.
Package react holds the ported `eslint-plugin-react` rules.
rules/react/conformance
Package react_conformance scores an implementation against React's own compiler error fixtures.
Package react_conformance scores an implementation against React's own compiler error fixtures.
rules/react/tools/vendor_fixtures command
Command vendor_fixtures re-pulls React's error-named compiler fixtures at a chosen commit.
Command vendor_fixtures re-pulls React's error-named compiler fixtures at a chosen commit.
rules/structure
Package structure holds the rules for this project's own conventions, as opposed to the language rules in core and the cross-cutting ones in nexus.
Package structure holds the rules for this project's own conventions, as opposed to the language rules in core and the cross-cutting ones in nexus.
rules/tailwind
The live candidate split: a class broken into the pieces that decide whether it can merge, using this repository's own roots.
The live candidate split: a class broken into the pieces that decide whether it can merge, using this repository's own roots.
rules/tailwind/collapse
decodeArbitraryValue and isValidArbitrary: the two functions every arbitrary bracket in a class string is routed through before the candidate parser will look at it.
decodeArbitraryValue and isValidArbitrary: the two functions every arbitrary bracket in a class string is routed through before the candidate parser will look at it.
rules/tailwind/tools/generate_candidate command
Command generate_candidate captures candidate readings from the real Tailwind candidate parser, so that the Go port in internal/lint/rules/tailwind/collapse/candidate.go is tested against measurements rather than against a reading of the TypeScript source.
Command generate_candidate captures candidate readings from the real Tailwind candidate parser, so that the Go port in internal/lint/rules/tailwind/collapse/candidate.go is tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_class_literals command
Command generate_class_literals asks better-tailwindcss itself what it reads as a class string (#btxd64n), and writes two files from its answers:
Command generate_class_literals asks better-tailwindcss itself what it reads as a class string (#btxd64n), and writes two files from its answers:
rules/tailwind/tools/generate_class_order command
Command generate_class_order captures the Tier 2 differential fixture: `{order, count}` for every class in every design system, as the shipped Tailwind engine computes it, together with the per-repository tables the Go side needs to answer the same question.
Command generate_class_order captures the Tier 2 differential fixture: `{order, count}` for every class in every design system, as the shipped Tailwind engine computes it, together with the per-repository tables the Go side needs to answer the same question.
rules/tailwind/tools/generate_collapse command
Command generate_collapse regenerates the Tailwind collapse table from the installed Tailwind.
Command generate_collapse regenerates the Tailwind collapse table from the installed Tailwind.
rules/tailwind/tools/generate_css_parser command
Command generate_css_parser captures parse trees from the real Tailwind CSS parser, so that the Go port in internal/lint/rules/tailwind/collapse/cssparser.go is tested against measurements rather than against a reading of the TypeScript source.
Command generate_css_parser captures parse trees from the real Tailwind CSS parser, so that the Go port in internal/lint/rules/tailwind/collapse/cssparser.go is tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_data_type command
Command generate_data_type captures what the real Tailwind engine infers for a corpus of CSS value shapes, so that the Go port in internal/tailwind can be tested against measurements rather than against a reading of the TypeScript source.
Command generate_data_type captures what the real Tailwind engine infers for a corpus of CSS value shapes, so that the Go port in internal/tailwind can be tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_descriptor_base command
Command generate_descriptor_base prints the framework-invariant half of the descriptor table into shipped Go, so a design system can be given a descriptor Table without a checked-in fixture.
Command generate_descriptor_base prints the framework-invariant half of the descriptor table into shipped Go, so a design system can be given a descriptor Table without a checked-in fixture.
rules/tailwind/tools/generate_descriptor_table command
Command generate_descriptor_table turns the descriptor extractor's diagnostic JSON into the Go table `internal/tailwind` looks readings up in.
Command generate_descriptor_table turns the descriptor extractor's diagnostic JSON into the Go table `internal/tailwind` looks readings up in.
rules/tailwind/tools/generate_framework_variants command
Command generate_framework_variants prints the framework's variant registrations into shipped Go.
Command generate_framework_variants prints the framework's variant registrations into shipped Go.
rules/tailwind/tools/generate_statics command
Command generate_statics turns the engine's own static-utility registrations into Go.
Command generate_statics turns the engine's own static-utility registrations into Go.
rules/tailwind/tools/generate_syntax_tree command
Command generate_syntax_tree captures compiled utility trees from the real Tailwind engine, together with the {order, count} reading the engine takes from each, so that the Go AST and PropertySort in internal/tailwind are tested against measurements rather than against a reading of the TypeScript source.
Command generate_syntax_tree captures compiled utility trees from the real Tailwind engine, together with the {order, count} reading the engine takes from each, so that the Go AST and PropertySort in internal/tailwind are tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_theme command
Command generate_theme captures the theme the real Tailwind engine resolved for a corpus of stylesheets, so that the Go port in internal/lint/rules/tailwind/collapse/theme.go is tested against measurements rather than against a reading of the TypeScript source.
Command generate_theme captures the theme the real Tailwind engine resolved for a corpus of stylesheets, so that the Go port in internal/lint/rules/tailwind/collapse/theme.go is tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_utility command
Command generate_utility captures what the shipped Tailwind engine does with a repository's own `@utility` blocks, so that the Go evaluator in internal/lint/rules/tailwind/collapse/utility.go is tested against measurements rather than against a reading of `createCssUtility`.
Command generate_utility captures what the shipped Tailwind engine does with a repository's own `@utility` blocks, so that the Go evaluator in internal/lint/rules/tailwind/collapse/utility.go is tested against measurements rather than against a reading of `createCssUtility`.
rules/tailwind/tools/generate_value_parser command
Command generate_value_parser captures the node tree the real Tailwind value parser produces for a corpus of CSS value shapes, so that the Go port in internal/tailwind is tested against measurements rather than against a reading of the TypeScript source.
Command generate_value_parser captures the node tree the real Tailwind value parser produces for a corpus of CSS value shapes, so that the Go port in internal/tailwind is tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/generate_variant command
Command generate_variant captures how the real Tailwind engine orders variants, so that the Go port in internal/lint/rules/tailwind/collapse/variant.go is tested against measurements rather than against a reading of the TypeScript source.
Command generate_variant captures how the real Tailwind engine orders variants, so that the Go port in internal/lint/rules/tailwind/collapse/variant.go is tested against measurements rather than against a reading of the TypeScript source.
rules/tailwind/tools/tooldirectory
Package tooldirectory finds a generator's own source directory, where its sibling scripts live.
Package tooldirectory finds a generator's own source directory, where its sibling scripts live.
rules/tailwind/vendored
Package vendored is the installed tailwindcss the Tailwind rules' tests build a design system against: a snapshot of tailwindcss 4.3.3 in testdata, so those tests run on any machine instead of only where ahra's node_modules happens to be (#sycrdr6).
Package vendored is the installed tailwindcss the Tailwind rules' tests build a design system against: a snapshot of tailwindcss 4.3.3 in testdata, so those tests run on any machine instead of only where ahra's node_modules happens to be (#sycrdr6).
rules/typescript
Package typescript holds the rules from `@typescript-eslint/eslint-plugin`, ported from the originals.
Package typescript holds the rules from `@typescript-eslint/eslint-plugin`, ported from the originals.
suppression
Package suppression reads the comments that tell a rule "not here", and records what they did.
Package suppression reads the comments that tell a rule "not here", and records what they did.
testing
Package rule_testing runs a rule against source text and reports what it found.
Package rule_testing runs a rule against source text and reports what it found.
release
changelog
Package changelog writes a release's section of CHANGELOG.md from what changed in the rule sets cohere carries, and says the smallest version that change allows.
Package changelog writes a release's section of CHANGELOG.md from what changed in the rule sets cohere carries, and says the smallest version that change allows.
dispatch
Package dispatch resolves which cohere binary to run, rebuilding it when its inputs change.
Package dispatch resolves which cohere binary to run, rebuilding it when its inputs change.
gocache
Package gocache bounds a Go build cache by size, which Go itself never does.
Package gocache bounds a Go build cache by size, which Go itself never does.
notices
Package notices writes cohere's third-party notices: NOTICE, which carries the TypeScript compiler's Apache-2.0 notice, and THIRD_PARTY_NOTICES.md, which credits every other project cohere is built on with its license in full.
Package notices writes cohere's third-party notices: NOTICE, which carries the TypeScript compiler's Apache-2.0 notice, and THIRD_PARTY_NOTICES.md, which credits every other project cohere is built on with its license in full.
packaging
Package release holds what a shipped cohere knows about itself: which build it is, and where its binary comes from on a machine that has no source and no Go toolchain.
Package release holds what a shipped cohere knows about itself: which build it is, and where its binary comes from on a machine that has no source and no Go toolchain.
tools/build_dispatcher_package command
Command build_dispatcher_package writes one npm package to a directory, and compiles nothing.
Command build_dispatcher_package writes one npm package to a directory, and compiles nothing.
tools/changelog command
Command changelog prints a release's section of CHANGELOG.md from what changed in the rule sets, and refuses a version smaller than that change allows.
Command changelog prints a release's section of CHANGELOG.md from what changed in the rule sets, and refuses a version smaller than that change allows.
tools/notices command
Command notices writes NOTICE and THIRD_PARTY_NOTICES.md at the module root, from cohere's build graph and the curated upstreams in internal/release/notices.
Command notices writes NOTICE and THIRD_PARTY_NOTICES.md at the module root, from cohere's build graph and the curated upstreams in internal/release/notices.
Package rename performs a program-wide symbol rename: the command-line equivalent of an editor's rename refactor, answered from the type graph rather than from a text search.
Package rename performs a program-wide symbol rename: the command-line equivalent of an editor's rename refactor, answered from the type graph rather than from a text search.
Package replace puts a finished file in place of another, as one rename, on every platform cohere ships.
Package replace puts a finished file in place of another, as one rename, on every platform cohere ships.
Package settingsschema generates the JSON schemas for CohereSettings.json and NexusCohereSettings.json, and the reference document beside them, from the types that read those files.
Package settingsschema generates the JSON schemas for CohereSettings.json and NexusCohereSettings.json, and the reference document beside them, from the types that read those files.
tools/generate command
Command generate writes the settings schemas and their reference (internal/settingsschema) into the module's schema/ directory.
Command generate writes the settings schemas and their reference (internal/settingsschema) into the module's schema/ directory.
Package testpolicy holds the house rules for cohere's own tests, checked by tests of its own.
Package testpolicy holds the house rules for cohere's own tests, checked by tests of its own.
types
program
Package program builds the type graph and hands the other phases a checker they call as a function.
Package program builds the type graph and hands the other phases a checker they call as a function.
sourcename
Package sourcename says what a source file's name means to cohere's TypeScript decisions.
Package sourcename says what a source file's name means to cohere's TypeScript decisions.
Package unused_exports reports code that was written and never used.
Package unused_exports reports code that was written and never used.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL