bifurcation / rocket-skates

A light, fast ACME implementation
Mozilla Public License 2.0
1 stars 1 forks source link

Coding standards #4

Open bifurcation opened 8 years ago

bifurcation commented 8 years ago

Draft list of standards to enforce:

hildjj commented 8 years ago
hildjj commented 8 years ago

OK?

// Copyright (c) 2016 the rocket-skates CONTRIBUTORS.  All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
hildjj commented 8 years ago

Reference needed for es6lint, apparently. Do you just mean eslint in es6 mode?

bifurcation commented 8 years ago

Yep. Whatever was running with gulp lint.

bifurcation commented 8 years ago

One more:

hildjj commented 8 years ago

Do you have a list of acronyms you want to support? It will be possible to add more later.

bifurcation commented 8 years ago

One more:

As far as acronyms, things that come to mind:

Some of those are going to appear as all-lowercase variable names (e.g., jws for a variable pointing to a signed object), so maybe that one isn't great to enforce.

hildjj commented 8 years ago

What about not needing them uppercase if they're the whole word? http is ok, but HTTPfoo.