beautypg.com

Coding conventions and checkers – Google RLint: Reformatting R Code to Follow the Google Style Guide User Manual

Page 19

background image

Google Confidential and Proprietary

Coding conventions and checkers

Coding conventions have existed for decades.

1918:

The Elements of Style

by Strunk & White (writing English)

1974:

The Elements of Programming Style

(writing code)

1997:

Java code conventions

2001:

Python style guide

2014:

Google style guides

for 12 languages available

Style checkers have existed for decades.

1977:

lint

checks C style

2002:

PyChecker

checks Python style

2011:

gofmt

reformats Go code

(

70% adoption

in 2013)