{"id":43724356,"url":"https://github.com/wayneashleyberry/jsonstructlint","last_synced_at":"2026-02-05T08:36:07.757Z","repository":{"id":64305045,"uuid":"147192986","full_name":"wayneashleyberry/jsonstructlint","owner":"wayneashleyberry","description":"An opinionated linter for json struct tags in Go","archived":false,"fork":false,"pushed_at":"2021-10-25T06:43:21.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T17:54:43.122Z","etag":null,"topics":["go","golang","json","linter"],"latest_commit_sha":null,"homepage":"","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/wayneashleyberry.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-09-03T11:07:51.000Z","updated_at":"2021-10-25T06:43:21.000Z","dependencies_parsed_at":"2023-01-15T10:30:44.107Z","dependency_job_id":null,"html_url":"https://github.com/wayneashleyberry/jsonstructlint","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/wayneashleyberry/jsonstructlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fjsonstructlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fjsonstructlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fjsonstructlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fjsonstructlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayneashleyberry","download_url":"https://codeload.github.com/wayneashleyberry/jsonstructlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fjsonstructlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29117248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","json","linter"],"created_at":"2026-02-05T08:36:06.042Z","updated_at":"2026-02-05T08:36:07.749Z","avatar_url":"https://github.com/wayneashleyberry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e An opinionated linter for json struct tags in Go\n\n[![Go](https://github.com/wayneashleyberry/jsonstructlint/actions/workflows/go.yml/badge.svg)](https://github.com/wayneashleyberry/jsonstructlint/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wayneashleyberry/jsonstructlint)](https://goreportcard.com/report/github.com/wayneashleyberry/jsonstructlint)\n\nThis linter is based on [a post by Fatih Arslan](https://arslan.io/2019/06/13/using-go-analysis-to-write-a-custom-linter/), which is a fantastic read and highly recommended.\n\n### Rules\n\n- `json` struct tags must be lower camel case eg. `camelCase`\n- `json` struct tags must not contain whitespace\n- `json` struct tags must exist on all fields, if they exist on one\n\n### Example\n\n```sh\ngo get -u github.com/wayneashleyberry/jsonstructlint\njsonstructlint ./...\ntest_data/testdata.go:14:2: `x_y` is not camelcase\ntest_data/testdata.go:16:2: `foo bar` contains whitespace\ntest_data/testdata.go:17:2: `TitleCase` is not camelcase\ntest_data/testdata.go:18:2: `a b` contains whitespace\ntest_data/testdata.go:25:3: `Inline Struct` contains whitespace\ntest_data/testdata.go:25:3: `Inline Struct` is not camelcase\ntest_data/testdata.go:30:4: `Super Inline` contains whitespace\ntest_data/testdata.go:30:4: `Super Inline` is not camelcase\ntest_data/testdata.go:40:4: `FileName` is not camelcase\ntest_data/testdata.go:12:2: `F2` is missing a json tag\ntest_data/testdata.go:13:2: `F3` is missing a json tag\ntest_data/testdata.go:41:4: `MissingStructTag` is missing a json tag\n```\n\n### Editor Config\n\nThis linter checks that code conforms to the following vscode config:\n\n```json\n\"go.addTags\": {\n  \"tags\": \"json\",\n  \"options\": \"json=omitempty\",\n  \"promptForTags\": false,\n  \"transform\": \"camelcase\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fjsonstructlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayneashleyberry%2Fjsonstructlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fjsonstructlint/lists"}