{"id":13398529,"url":"https://github.com/google/styleguide","last_synced_at":"2025-03-14T02:31:23.515Z","repository":{"id":32392550,"uuid":"35969061","full_name":"google/styleguide","owner":"google","description":"Style guides for Google-originated open-source projects","archived":false,"fork":false,"pushed_at":"2025-01-18T01:26:44.000Z","size":2917,"stargazers_count":37819,"open_issues_count":180,"forks_count":13315,"subscribers_count":1271,"default_branch":"gh-pages","last_synced_at":"2025-02-07T09:39:18.495Z","etag":null,"topics":["cpplint","style-guide","styleguide"],"latest_commit_sha":null,"homepage":"https://google.github.io/styleguide/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-20T19:18:59.000Z","updated_at":"2025-02-07T09:19:29.000Z","dependencies_parsed_at":"2024-01-30T19:12:20.103Z","dependency_job_id":"9f4bfd9a-796c-4262-9bbf-a97e89491913","html_url":"https://github.com/google/styleguide","commit_stats":{"total_commits":378,"total_committers":111,"mean_commits":"3.4054054054054053","dds":0.8809523809523809,"last_synced_commit":"8487c083e1faecb1259be8a8873618cfdb69d33d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fstyleguide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fstyleguide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fstyleguide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fstyleguide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/styleguide/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243451734,"owners_count":20293195,"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","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":["cpplint","style-guide","styleguide"],"created_at":"2024-07-30T19:00:28.017Z","updated_at":"2025-03-14T02:31:23.481Z","avatar_url":"https://github.com/google.png","language":"HTML","readme":"# Google Style Guides\n\nEvery major open-source project has its own style guide: a set of conventions\n(sometimes arbitrary) about how to write code for that project. It is much\neasier to understand a large codebase when all the code in it is in a consistent\nstyle.\n\n“Style” covers a lot of ground, from “use camelCase for variable names” to\n“never use global variables” to “never use exceptions.” This project\n([google/styleguide](https://github.com/google/styleguide)) links to the style\nguidelines we use for Google code. If you are modifying a project that\noriginated at Google, you may be pointed to this page to see the style guides\nthat apply to that project.\n\n\n*   [AngularJS Style Guide][angular]\n*   [Common Lisp Style Guide][cl]\n*   [C++ Style Guide][cpp]\n*   [C# Style Guide][csharp]\n*   [Go Style Guide][go]\n*   [HTML/CSS Style Guide][htmlcss]\n*   [JavaScript Style Guide][js]\n*   [Java Style Guide][java]\n*   [JSON Style Guide][json]\n*   [Markdown Style Guide][markdown]\n*   [Objective-C Style Guide][objc]\n*   [Python Style Guide][py]\n*   [R Style Guide][r]\n*   [Shell Style Guide][sh]\n*   [Swift Style Guide][swift]\n*   [TypeScript Style Guide][ts]\n*   [Vim script Style Guide][vim]\n\nThis project also contains [google-c-style.el][emacs], an Emacs settings file\nfor Google style.\n\nWe used to host the cpplint tool, but we stopped making internal updates public.\nAn open source community has forked the project, so users are encouraged to use\nhttps://github.com/cpplint/cpplint instead.\n\nIf your project requires that you create a new XML document format, the\n[XML Document Format Style Guide][xml] may be helpful. In addition to actual\nstyle rules, it also contains advice on designing your own vs. adapting an\nexisting format, on XML instance document formatting, and on elements vs.\nattributes.\n\nThe style guides in this project are licensed under the CC-By 3.0 License, which\nencourages you to share these documents. See\n[https://creativecommons.org/licenses/by/3.0/][ccl] for more details.\n\nThe following Google style guide lives outside of this project:\n\n*  [Effective Dart][dart]\n*  [Kotlin Style Guide][kotlin]\n\nSince projects are largely maintained in a [VCS], writing good commit messages\nis important to long term project health. Please refer to [How to Write a Git\nCommit Message](https://cbea.ms/git-commit/) as an excellent resource. While it\nexplicitly refers to the Git [SCM], its principles apply to any system, and many\nGit conventions are trivial to translate to others.\n\n## Contributing\n\nWith few exceptions, these style guides are copies of Google's internal style\nguides to assist developers working on Google owned and originated open source\nprojects. Changes to the style guides are made to the internal style guides\nfirst and eventually copied into the versions found here. **External\ncontributions are not accepted.** Pull requests are regularly closed without\ncomment.\n\nPeople can file [issues using the GitHub tracker][gh-tracker]. Issues that raise\nquestions, justify changes on technical merits, or point out obvious mistakes\nmay get some engagement and could in theory lead to changes, but we are\nprimarily optimizing for Google's internal needs.\n\n\u003ca rel=\"license\" href=\"https://creativecommons.org/licenses/by/3.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by/3.0/88x31.png\" /\u003e\u003c/a\u003e\n\n[cpp]: https://google.github.io/styleguide/cppguide.html\n[csharp]: https://google.github.io/styleguide/csharp-style.html\n[swift]: https://google.github.io/swift/\n[objc]: objcguide.md\n[gh-tracker]: https://github.com/google/styleguide/issues\n[go]: go/\n[java]: https://google.github.io/styleguide/javaguide.html\n[json]: https://google.github.io/styleguide/jsoncstyleguide.xml\n[kotlin]: https://developer.android.com/kotlin/style-guide\n[py]: https://google.github.io/styleguide/pyguide.html\n[r]: https://google.github.io/styleguide/Rguide.html\n[sh]: https://google.github.io/styleguide/shellguide.html\n[htmlcss]: https://google.github.io/styleguide/htmlcssguide.html\n[js]: https://google.github.io/styleguide/jsguide.html\n[markdown]: https://google.github.io/styleguide/docguide/style.html\n[ts]: https://google.github.io/styleguide/tsguide.html\n[angular]: https://google.github.io/styleguide/angularjs-google-style.html\n[cl]: https://google.github.io/styleguide/lispguide.xml\n[vim]: https://google.github.io/styleguide/vimscriptguide.xml\n[emacs]: https://raw.githubusercontent.com/google/styleguide/gh-pages/google-c-style.el\n[xml]: https://google.github.io/styleguide/xmlstyle.html\n[dart]: https://www.dartlang.org/guides/language/effective-dart\n[ccl]: https://creativecommons.org/licenses/by/3.0/\n[SCM]: https://en.wikipedia.org/wiki/Source_control_management\n[VCS]: https://en.wikipedia.org/wiki/Version_control_system\n","funding_links":[],"categories":["HTML","Coding Style","CSS","Archive","Programming Language","HTML (17)","Best Practice ##","语言资源库","其他","资源","Development","博客","书籍","Welcome to Learn101"],"sub_categories":["Algorithm","Version 1.x ###","books","网络服务_其他","指南","Common","编码规范","手册","Style Guides"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fstyleguide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fstyleguide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fstyleguide/lists"}