{"id":30450203,"url":"https://github.com/nochso/ctxerr","last_synced_at":"2025-08-23T13:25:58.018Z","repository":{"id":57608508,"uuid":"77624504","full_name":"nochso/ctxerr","owner":"nochso","description":"ctxerr is a Go library for printing pretty parser errors.","archived":false,"fork":false,"pushed_at":"2017-01-22T22:31:24.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T15:03:02.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nochso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T16:16:52.000Z","updated_at":"2016-12-29T16:26:08.000Z","dependencies_parsed_at":"2022-08-30T09:00:20.130Z","dependency_job_id":null,"html_url":"https://github.com/nochso/ctxerr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nochso/ctxerr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nochso%2Fctxerr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nochso%2Fctxerr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nochso%2Fctxerr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nochso%2Fctxerr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nochso","download_url":"https://codeload.github.com/nochso/ctxerr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nochso%2Fctxerr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749048,"owners_count":24814115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-23T13:25:54.407Z","updated_at":"2025-08-23T13:25:58.007Z","avatar_url":"https://github.com/nochso.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ctxerr\n======\n\n[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![GoDoc](https://godoc.org/github.com/nochso/ctxerr?status.svg)](https://godoc.org/github.com/nochso/ctxerr)\n[![GitHub release](https://img.shields.io/github/release/nochso/ctxerr.svg)](https://github.com/nochso/ctxerr/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/nochso/ctxerr)](https://goreportcard.com/report/github.com/nochso/ctxerr)\n[![Build Status](https://travis-ci.org/nochso/ctxerr.svg?branch=master)](https://travis-ci.org/nochso/ctxerr)\n[![Coverage Status](https://coveralls.io/repos/github/nochso/ctxerr/badge.svg?branch=master)](https://coveralls.io/github/nochso/ctxerr?branch=master)\n\n**ctxerr** is a [Go][] library and CLI utility for pretty-printing linter/parser errors.\n\nInstead of just describing what's wrong, it lets you point at the wrong input:\n\n```\nnarf.txt:1:8: string is missing closing quote\n 1 | \"foo bar\n   |         ^ missing closing quote\n```\n\n- Create pretty error messages for linters, parsers, etc. by pointing at the\n  relevant position in the source code.\n- Parse existing error messages into `Ctx` structs.\n- CLI utility `ctx` scans STDIN for linter errors and enhances them with the\n  reported source line.\n\n---\n\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Changes](#changes)\n- [License](#license)\n\n\nInstallation\n------------\n\n\n### Library\n\n```bash\ngo get -u github.com/nochso/ctxerr\n```\n\n### CLI utility `ctx`\n\n```bash\ngo install github.com/nochso/ctxerr/cmd/ctx\n```\n\n\nDocumentation\n-------------\n\n### Library\n\nThe [GoDoc](https://godoc.org/github.com/nochso/ctxerr) pages contain plenty\nof examples.\n\n\n### CLI utility `ctx`\n\n```shell\n$ ctx -h\nctx 1.0.0-beta\nPretty prints parser errors from stdin.\n\nPossible input:\n  path/file.ext:1:5: some error on line 1, column 5\n  file.ext:123: column is optional and so is the message:\n  file.ext:1\n\nUsage:\n  ctx \u003c log.txt\n  gometalinter . | ctx\n\nFlags:\n  -context NUM\n        print NUM lines of context surrounding an error. negative for all, positive for limited and 0 for none (default)\n  -no-color\n        disable any color output\n  -pessimistic\n        print only matching errors, ignore everything else\n```\n\n\nChanges\n-------\n\nAll notable changes to this project will be documented in the [changelog].\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/) and this\nproject adheres to [Semantic Versioning](http://semver.org/).\n\n\nLicense\n-------\n\nThis project is released under the [MIT license](LICENSE).\n\n\n[changelog]: CHANGELOG.md\n[releases]: https://github.com/nochso/ctxerr/releases\n[Go]: https://golang.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnochso%2Fctxerr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnochso%2Fctxerr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnochso%2Fctxerr/lists"}