Skip to content

Contributor Documentation

Nick Kwiatkowski edited this page Nov 25, 2026 · 1 revision

Contributor Documentation (Build from source and contributing code)

This section is for people working on clif itself.

Page What it covers
Building binaries from source Toolchain, every make target, tests, the pre-push check, docs and grammar regeneration, cross-builds, releases
Submitting code to the project (stub)

If you only want a working binary from a checkout, Building CLIF from source is shorter.

Repository layout

Path Contents
cmd/clif The clif binary: LSP server entry point and every CLI subcommand
cmd/cfparse A standalone parse/debug tool (make cfparse <file>)
cmd/cfstubgen Generates the bundled framework API stubs (make framework-stubs)
cmd/docpipe Fetches and assembles the embedded CFML documentation (make docs, make generate)
internal/server The LSP request handlers, commands, code actions
internal/daemon Daemon mode: shared index over a Unix socket
internal/supervise The restarting supervisor that wraps the server
internal/config .clif.json / initializationOptions parsing, merging and defaults
internal/parser, internal/lex, internal/language CFML parsing on top of tree-sitter-cfml
internal/resolve, internal/index, internal/nativetype Component and method resolution, the workspace index, built-in types
internal/unresolved, internal/refs, internal/deps, internal/graph What unresolved, refs and deps report
internal/codemap clif graph, the SQLite store, the HTML viewer and the MCP server (internal/codemap/mcp)
internal/route Framework routing conventions
internal/formatter The formatter
internal/cflint Locating, embedding and running CFLint
internal/knownissues Known-issues files and generated reports
internal/frameworkapi Bundled framework API stubs and their pinned sources
internal/docs, internal/lspdoc Embedded tag/function documentation
internal/tsoracle Cross-checks the parser against the raw grammar (make gapcheck)
internal/confine, internal/vfs, internal/path, internal/cache, internal/flock, internal/log, … Infrastructure
scripts/ Install scripts, CFLint fetch, docs driver, release script
packaging/ Homebrew, Scoop, winget, Chocolatey manifests
testdata/ Fixtures
docs/ Documentation sources and the pinned docs lock
VERSION The version make build stamps into the binary
CHANGELOG.md Release notes
.pre-commit-hooks.yaml The clif-cflint hook definition for pre-commit/prek

Key dependencies

Module Used for
github.com/cfmleditor/tree-sitter-cfml The CFML grammar (C, via CGO)
github.com/tree-sitter/go-tree-sitter Go bindings for tree-sitter
go.lsp.dev/protocol, go.lsp.dev/jsonrpc2, go.lsp.dev/uri LSP types and transport
modernc.org/sqlite The code-map database (pure Go)
go.uber.org/zap Logging

← Home

Clone this wiki locally