Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/SalGnt/cscs

A curated list of Coding Style Conventions and Standards.
https://github.com/SalGnt/cscs

coding-conventions coding-standards coding-style curated-list

Last synced: about 2 months ago
JSON representation

A curated list of Coding Style Conventions and Standards.

Lists

README

        


Coding Style Conventions and Standards

# Coding Style Conventions and Standards

A curated list of _Coding Style Conventions and Standards_.

## Table of Contents

- [Programming Languages](#programming-languages)
- [Miscellaneous](#miscellaneous)

## Programming Languages

### Arduino

- **[Arduino Style Guide for Creating Libraries](https://docs.arduino.cc/learn/contributions/arduino-library-style-guide)**.
- **[Arduino Style Guide for Writing Content](https://docs.arduino.cc/learn/contributions/arduino-writing-style-guide)**.
- [The ArduPirates Coder's Bible](https://code.google.com/p/ardupirates/wiki/CodingConventions).

### C

- [C Coding Standard](https://users.ece.cmu.edu/~eno/coding/CCodingStandard.html).
- [C Programming/Structure and Style](https://en.wikibooks.org/wiki/C_Programming/Structure_and_style).
- [SEI CERT C Coding Standard](https://www.securecoding.cert.org/confluence/display/c/SEI+CERT+C+Coding+Standard).

### C#

- [C# Coding Standards Best Practices](https://www.dofactory.com/csharp-coding-standards).
- **[Microsoft C# Coding Conventions](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions)**.
- [Mono Coding Guidelines](https://www.mono-project.com/community/contributing/coding-guidelines).

### C++

- [Apache OpenOffice Cpp Coding Standards](https://wiki.openoffice.org/wiki/Cpp_Coding_Standards)
- [C++ Coding Standard](http://www.possibility.com/Cpp/CppCodingStandard.html).
- [C++ Coding Standard](https://users.ece.cmu.edu/~eno/coding/CppCodingStandard.html).
- [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html).
- [High Integrity C++ Coding Standard](http://www.codingstandard.com/section/index).
- [WebKit Code Style Guidelines](https://webkit.org/code-style-guidelines).

### Clojure

- [The Clojure Style Guide](https://github.com/bbatsov/clojure-style-guide) - A community coding style guide for the Clojure programming language.

### Common Lisp

- [Google Common Lisp Style Guide](https://google.github.io/styleguide/lispguide.xml).

### D

- **[The D Style](https://dlang.org/dstyle.html)**.

### Dart

- **[Effective Dart: Style](https://www.dartlang.org/articles/style-guide/)**.

### Elixir

- [The Elixir Style Guide](https://github.com/christopheradams/elixir_style_guide) - A community driven style guide for Elixir.

### Erlang

- [Erlang Coding Standards & Guidelines](https://github.com/inaka/erlang_guidelines) - Inaka's Erlang Coding Guidelines.

### F#

- **[Microsoft F# code formatting guidelines](https://learn.microsoft.com/dotnet/fsharp/style-guide/formatting)**.
- **[Microsoft F# coding conventions](https://learn.microsoft.com/dotnet/fsharp/style-guide/conventions)**.
- **[Microsoft F# component design guidelines](https://learn.microsoft.com/dotnet/fsharp/style-guide/component-design-guidelines)**.

### Fortran

- **[Fortran Best Practices](https://www.fortran90.org/src/best-practices.html)**.

### Go

- **[How to Write Go Code](https://go.dev/doc/code)**.

### Haskell

- **[Haskell Programming guidelines](https://wiki.haskell.org/Programming_guidelines)**.
- [Haskell Style Guide](https://github.com/tibbe/haskell-style-guide) - A style guide for Haskell code.

### HTML/CSS

- [Airbnb CSS-in-JavaScript Style Guide](https://airbnb.io/javascript/css-in-javascript/) - A mostly reasonable approach to CSS-in-JavaScript.
- [Airbnb CSS / Sass Styleguide](https://github.com/airbnb/css) - A mostly reasonable approach to CSS and Sass.
- [Evernote CSS Style Guide](https://github.com/evernote/css-style-guide).
- [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html).
- [HTML style guide](https://github.com/caiogondim/html-style-guide).
- [jQuery CSS Style Guide](https://contribute.jquery.org/style-guide/css/).
- [jQuery HTML Style Guide](https://contribute.jquery.org/style-guide/html/).
- [MediaWiki Coding conventions/CSS](https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS).
- **[W3Schools HTML Style Guide](https://www.w3schools.com/html/html5_syntax.asp)**.
- [WordPress CSS Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/).
- [WordPress HTML Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/html/).

### Java

- **[Code Conventions for the Java ™ Programming Language](https://www.oracle.com/java/technologies/javase/codeconventions-contents.html)**.
- [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html).
- [Java Programming Style Guidelines](https://geosoft.no/javastyle.html).
- **[OpenJDK Java Style Guidelines](https://cr.openjdk.java.net/~alundblad/styleguide/index.html)**.
- [SEI CERT Oracle Coding Standard for Java](https://wiki.sei.cmu.edu/confluence/display/java/SEI+CERT+Oracle+Coding+Standard+for+Java).

### JavaScript

- [Airbnb JavaScript Style Guide() {](https://airbnb.io/javascript/) - A mostly reasonable approach to JavaScript.
- [Code Conventions for the JavaScript Programming Language](https://www.crockford.com/code.html).
- [function qualityGuide () {](https://github.com/bevacqua/js) - A JavaScript Quality Guide.
- [Google JavaScript Style Guide](https://google.github.io/styleguide/javascriptguide.xml).
- [JavaScript Style Guide](https://github.com/bengourley/js-style-guide) - JavaScript style guide.
- [JavaScript Style Guide](https://github.com/chamnap/javascript_style_guide) - JavaScript Style Guide.
- [JS: The Right Way](https://jstherightway.org).
- [jQuery JavaScript Style Guide](https://contribute.jquery.org/style-guide/js/).
- [MediaWiki Coding conventions/JavaScript](https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript).
- [The GoCardless JavaScript style guide](https://github.com/gocardless/javascript-style-guide) - The GoCardless JavaScript styleguide .
- **[W3Schools JavaScript Style Guide](https://www.w3schools.com/js/js_conventions.asp)**.
- [WordPress JavaScript Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/javascript/).

#### AngularJS

- **[An AngularJS Style Guide for Closure Users at Google](https://google.github.io/styleguide/angularjs-google-style.html)**.
- [Angular Style Guide](https://github.com/johnpapa/angular-styleguide) - Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.

#### React

- [Airbnb React/JSX Style Guide](https://airbnb.io/javascript/react/) - A mostly reasonable approach to React and JSX.

### JSON

- [Google JSON Style Guide](https://google.github.io/styleguide/jsoncstyleguide.xml).

### Lua

- [Lua Style Guide](https://github.com/Olivine-Labs/lua-style-guide) - Olivine Labs Lua Style Guide .

### Markdown

- [Markdown Style Guide](https://cirosantilli.com/markdown-style-guide/).
- [Style Guidelines: Markdown](https://github.com/carwin/markdown-styleguide) - Formatting standards for readable & consistent Markdown.

### Objective-C

- **[Apple Programming with Objective-C Conventions](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html)**.
- **[Apple Introduction to Coding Guidelines for Cocoa](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html)**.
- [Google Objective-C Style Guide](https://google.github.io/styleguide/objcguide.html).
- [Macoscope Objective-C Style Guide](https://github.com/macoscope/objc-style-guide) - Our code style guidelines.
- [NYTimes Objective-C Style Guide](https://github.com/NYTimes/objective-c-style-guide) - The Objective-C Style Guide used by The New York Times.
- [Robots & Pencils Objective-C Style Guide](https://github.com/RobotsAndPencils/objective-c-style-guide) - Our Objective-C coding style guide.
- [Wonderful Objective-C Style Guide](https://github.com/markeissler/wonderful-objective-c-style-guide) - A complete OSX and iOS Objective-C coding style guide.

### Pascal

- **[Free Pascal and Lazarus Coding style](https://wiki.freepascal.org/Coding_style)**.
- [Object Pascal Style Guide ](https://edn.embarcadero.com/article/10280).

### Perl

- [Apache OpenOffice Perl Coding Standards](https://wiki.openoffice.org/wiki/Perl_Coding_Standards).
- **[Perl style guide](https://perldoc.perl.org/perlstyle)**.
- [Perl style guide](https://metacpan.org/dist/perl/view/pod/perlstyle.pod).
- [SEI CERT Perl Coding Standard](https://wiki.sei.cmu.edu/confluence/display/perl/SEI+CERT+Perl+Coding+Standard).

### PHP

- [MediaWiki Coding conventions/PHP](https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP).
- [PHP-FIG PSR-12: Extended Coding Style](https://www.php-fig.org/psr/psr-12/).
- [WordPress PHP Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/).

### Prolog

- [Prolog programming guidelines](https://lifeware.inria.fr/~soliman/post/prolog_guidelines/).

### Python

- [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html).
- [MediaWiki Coding conventions/Python](https://www.mediawiki.org/wiki/Manual:Coding_conventions/Python).
- **[Python PEP 8 - Style Guide for Python Code](https://peps.python.org/pep-0008/)**.
- [The Hitchhiker's Guide to Python - Code Style](https://docs.python-guide.org/writing/style/).

### R

- [Google's R Style Guide](https://google.github.io/styleguide/Rguide.html).
- [R Style Guide](https://jef.works/R-style-guide/) - Best practices for readable, sharable, and verifiable R code.

### Ruby

- [Airbnb Ruby Style Guide](https://github.com/airbnb/ruby) - Ruby Style Guide.
- [MediaWiki Coding conventions/Ruby](https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby).
- [Ruby Style Guide](https://github.com/rubocop/ruby-style-guide) - A community-driven Ruby coding style guide.
- [The Unofficial Ruby Usage Guide](https://caliban.org/ruby/rubyguide.shtml).

#### Ruby on Rails

- **[Contributing to Ruby on Rails](https://guides.rubyonrails.org/contributing_to_ruby_on_rails.html)**.
- [Rails Style Guide](https://github.com/rubocop/rails-style-guide) - A community-driven Ruby on Rails style guide .

### Rust

- **[Rust Style Guidelines](https://doc.rust-lang.org/1.0.0/style/README.html)**.

### Scala

- **[Scala Style Guide](https://docs.scala-lang.org/style/)**.

### Shell

- [Bash Style Guide](https://github.com/bahamas10/bash-style-guide) - A style guide for writing safe, predictable, and portable bash scripts (not sh!) .
- [Community Bash Style Guide](https://github.com/azet/community_bash_style_guide) - Community Bash Style Guide: writing useful and modern bash scripts, seriously.
- [Google Shell Style Guide](https://google.github.io/styleguide/shellguide.html).
- [Shell Script Best Practices](https://sharats.me/posts/shell-script-best-practices/).

### Swift

- **[Apple API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/)**.
- [Google Swift Style Guide](https://google.github.io/swift/).
- [Metova's Swift Style Guide](https://github.com/metova/swift-style-guide).
- [Swift Style Guide](https://github.com/SlideShareInc/swift-style-guide) - SlideShare Swift Style Guide we are using for our upcoming iOS 8 only app written in Swift .

### VHDL

- [VHDL Coding Style Guidelines](https://webdocs.cs.ualberta.ca/~amaral/courses/329/labs/VHDL_Guideline.html).

### Visual Basic

- **[Microsoft Visual Basic Coding Conventions](https://learn.microsoft.com/dotnet/visual-basic/programming-guide/program-structure/coding-conventions)**.
- **[Microsoft Visual Basic Naming Conventions](https://learn.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/naming-conventions)**.
- [Visual Basic/Coding Standards](https://en.wikibooks.org/wiki/Visual_Basic/Coding_Standards).

### XML

- [Google XML Document Format Style Guide](https://google.github.io/styleguide/xmlstyle.html).

## Miscellaneous

### Changelog

- [Keep a Changelog](https://keepachangelog.com) - Don't let your friends dump git logs into changelogs.

### Git

- [Git Style Guide](https://github.com/agis-/git-style-guide) - A Git Style Guide.
- [Udacity Git Commit Message Style Guide](https://udacity.github.io/git-styleguide).

## Contributing

Contributions are welcome! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## License

This list was created by [Salvatore Gentile](https://twitter.com/_sgentile) and is released under **The MIT License (MIT)**.