{"id":13771787,"url":"https://github.com/sgatev/lingo","last_synced_at":"2025-12-15T19:02:17.937Z","repository":{"id":57522650,"uuid":"107803557","full_name":"sgatev/lingo","owner":"sgatev","description":"Define and enforce project-specific Go lingo ","archived":false,"fork":false,"pushed_at":"2018-08-15T06:47:53.000Z","size":1023,"stargazers_count":8,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T01:03:49.645Z","etag":null,"topics":["analysis","go","linter"],"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/sgatev.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":"2017-10-21T18:01:43.000Z","updated_at":"2024-10-18T19:21:55.000Z","dependencies_parsed_at":"2022-08-30T01:42:04.028Z","dependency_job_id":null,"html_url":"https://github.com/sgatev/lingo","commit_stats":null,"previous_names":["s2gatev/lingo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sgatev/lingo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgatev%2Flingo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgatev%2Flingo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgatev%2Flingo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgatev%2Flingo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgatev","download_url":"https://codeload.github.com/sgatev/lingo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgatev%2Flingo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27755893,"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-12-15T02:00:09.782Z","response_time":96,"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":["analysis","go","linter"],"created_at":"2024-08-03T17:00:55.517Z","updated_at":"2025-12-15T19:02:17.893Z","avatar_url":"https://github.com/sgatev.png","language":"Go","readme":"# lingo\n\n[![Build Status](https://travis-ci.org/s2gatev/lingo.svg?branch=master)](https://travis-ci.org/s2gatev/lingo)\n[![Build status](https://ci.appveyor.com/api/projects/status/r56oupucuay39tu8?svg=true)](https://ci.appveyor.com/project/s2gatev/lingo)\n[![Coverage Status](https://coveralls.io/repos/github/s2gatev/lingo/badge.svg?branch=master)](https://coveralls.io/github/s2gatev/lingo?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/s2gatev/lingo)](https://goreportcard.com/report/github.com/s2gatev/lingo)\n\nLingo helps you define and enforce project-specific Go lingo.\n\n## Description\n\nLingo is a tool for fully-automated static code analysis of Go code. It is designed\nto be integrated in continuous delivery pipelines and act as a single source of truth\nfor a project's code style.\n\n## Installation\n\nTo install the latest version of lingo execute:\n\n```sh\ngo get -u github.com/s2gatev/lingo\n```\n\n## Configuration\n\nThe static analysis checks performed by lingo are defined in a configuration file\nthat needs to be provided upon execution. The following example defines five\nstatic analysis checks that are executed against all `.go` files except those\nunder `vendor/` and those with names ending in `_test`:\n\n```yaml\nmatchers:\n  -\n    type: 'glob'\n    config:\n      pattern: '**/*.go'\n  -\n    type: 'not'\n    config:\n      type: 'glob'\n      config:\n        pattern: '**/vendor/**/*'\n  -\n    type: 'not'\n    config:\n      type: 'glob'\n      config:\n        pattern: '**/*_test.go'\n\ncheckers:\n  local_return:\n  multi_word_ident_name:\n  exported_ident_doc:\n  test_package:\n  consistent_receiver_names:\n```\n\n[Here](doc/checkers.md) is a list of the available checkers.\n\n## Check\n\nTo check all files rooted at the current directory for lingo violations execute:\n\n```sh\nlingo check ./...\n```\n\n## Guide\n\nTo read a guide with all the lingo rules applicable for the project execute:\n\n```sh\nlingo guide \n```\n\n## Contributing\n\n1. Fork the project\n2. Clone your fork (`git clone https://github.com/username/lingo \u0026\u0026 cd lingo`)\n3. Create a feature branch (`git checkout -b new-feature`)\n4. Make changes and add them (`git add .`)\n5. Make sure tests are passing and coverage is good (`go test ./... -race -cover`)\n6. Make sure code style is matching the lingo of the project (`lingo ./...`)\n7. Commit your changes (`git commit -m 'Add some feature'`)\n8. Push the branch (`git push origin new-feature`)\n9. Create a new pull request\n\n## Credits\n\nLingo draws huge inspiration from [RuboCop](https://github.com/bbatsov/rubocop) and\nother Go tools such as [dep](https://github.com/golang/dep), [cobra](https://github.com/spf13/cobra)\nand [golint](https://github.com/golang/lint).\n\n## Copyright\n\nCopyright (c) 2017 Stanislav Gatev. See [LICENSE](LICENSE) for\nfurther details.\n","funding_links":[],"categories":["Linters"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgatev%2Flingo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgatev%2Flingo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgatev%2Flingo/lists"}