Skip to content

Style guides for Google-originated open-source projects

Notifications You must be signed in to change notification settings

DanCard/styleguide

This branch is 417 commits behind google/styleguide:gh-pages.

Folders and files

NameName
Last commit message
Last commit date
Oct 13, 2015
Sep 4, 2015
Sep 8, 2014
Aug 8, 2015
Jul 18, 2013
May 21, 2014
Nov 1, 2015
Sep 8, 2014
Jun 29, 2012
Feb 3, 2014
Sep 29, 2014
Jul 18, 2013
Nov 29, 2010
Jul 12, 2013
Aug 30, 2011
Mar 21, 2014
Mar 21, 2014
Dec 17, 2013
Sep 25, 2013
Jul 12, 2010
Mar 8, 2010
Feb 22, 2010
Feb 22, 2010
Mar 18, 2014
Sep 25, 2013
Sep 25, 2013
Sep 25, 2013
Jul 12, 2010
Nov 28, 2012
Nov 15, 2014
Apr 12, 2014
Mar 18, 2009

Repository files navigation

Google Style Guides

Every major open-source project has its own style guide: a set of conventions (sometimes arbitrary) about how to write code for that project. It is much easier to understand a large codebase when all the code in it is in a consistent style.

“Style” covers a lot of ground, from “use camelCase for variable names” to “never use global variables” to “never use exceptions.” This project holds the style guidelines we use for Google code. If you are modifying a project that originated at Google, you may be pointed to this page to see the style guides that apply to that project.

Our C++ Style Guide, Objective-C Style Guide, Java Style Guide, Python Style Guide, R Style Guide, Shell Style Guide, HTML/CSS Style Guide, JavaScript Style Guide, AngularJS Style Guide, Common Lisp Style Guide, and Vimscript Style Guide are now available. We have also released cpplint, a tool to assist with style guide compliance, and google-c-style.el, an Emacs settings file for Google style.

If your project requires that you create a new XML document format, our XML Document Format Style Guide may be helpful. In addition to actual style rules, it also contains advice on designing your own vs. adapting an existing format, on XML instance document formatting, and on elements vs. attributes.

These style guides are licensed under the CC-By 3.0 License, which encourages you to share these documents. See http://creativecommons.org/licenses/by/3.0/ for more details.

About

Style guides for Google-originated open-source projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.3%
  • Python 31.4%
  • XSLT 5.5%
  • CSS 1.6%
  • JavaScript 1.2%
  • Emacs Lisp 0.9%
  • Other 0.1%