Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Gryniewicz
90d0b934ac RGW - Make sure editor settings are correct for all files
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2019-08-19 12:51:07 -04:00
Sage Weil
2f361a6eee relicense LGPL-2.1 code as LGPL-2.1 or LGPL-3.0
The primary motivation to relicense is a desire to integrate with projects
that are licensed under the Apache License version 2.0.  Although opinions
vary, there are some who argue the the LGPL-2.1 and Apache-2.0 licenses
are not fully compatible.  We would like to avoid the ambiguity and
potential for controversy.

Projects we would like to consume that are Apache-2.0 licensed include
Seastar, OpenSSL (which is in the process of relicensing to Apache-2.0),
and Swagger (swagger.io).  Note that some of these are dynamically linked
or consumed via a high-level language and may or may not require a change
to LGPL-3.0, but providing the option for LGPL-3.0 certainly avoids any
uncertainty.

A few other source files are already incorporated into Ceph that claim an
Apache-2.0 license:

    src/common/deleter.h
    src/common/sstring.h
    src/include/cpp-btree

The Ceph developers would further like to provide a license option that is
more modern than the current LGPL-2.1.  LGPL-3.0 includes updated,
clarified language around several issues and is widely considered
more modern, superior license.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-04-22 11:22:55 -05:00
Tiago Melo
2aa869b368 mgr/dashboard: Add reference to prettier in CodingStyle
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-07-26 13:38:12 +01:00
Sage Weil
ffce49f96a CodingStyle: update my_type_t sample
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-24 14:03:49 -05:00
Sage Weil
2c45dc6fe7 CodingStyle: allow #pragma once
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-23 06:42:09 -05:00
Sage Weil
69a1715a74 CodingStyle: a few updates
The C++ style was originally adopted in 2011.  Most of the guidelines
have been followed but some have not.  Drop the ones we haven't been
following.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-22 21:40:11 -05:00
Joao Eduardo Luis
7528728197 CodingStyle: add python and javascript/typescript
As we are rapidly expanding our code base beyond C++ and C, it is a good
idea to enforce coding styles for other languages.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2018-04-11 14:45:36 +01:00
Sage Weil
4e05cc748b "Correct" license from LGPL2 to LGPL2.1
Back in commit 7469f26a33 when the COPYING
file was added to the repository and the project was "licensed," the
license file was

                     GNU LESSER GENERAL PUBLIC LICENSE
                          Version 2.1, February 1999

However, the license was abbreviated as LGPL2 in various places (pretty
much everywhere, actually), due to my own ignorance/carelessness.  (I was
distinguishing it from shiny new version 3, released 6 months earlier.)

Version 2 of LGPL is the "Library General Public License," published in
June 1991: https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html

Note that this ambiguity persists for most of the project's lifetime.  For
example, the original debian/copyright in 8adc9dac1d
said "LGPL2" bug in 4545f8b929 (2009, a year
later) it is changed to LGPL2.1 to satisfy Debian's lintian checks.  (It's
remained LGPL2.1 ever since.)

"Correct" the record by changing LGPL2 references to LGPL2.1.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:07:50 -05:00
Kefu Chai
691199bd37 CodingStyle: fix broken URLs
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-11-30 21:12:37 +08:00
Dan Mick
e920a61521 Clarify CodingStyle with respect to tab compression of space runs
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Greg Farnum <gregory.farnum@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-08-31 15:47:12 -07:00
Sage Weil
a9f815b554 CodingStyle: whitespace
Signed-off-by: Sage Weil <sage@newdream.net>
2011-07-14 10:50:08 -07:00
Sage Weil
bc6eb10586 CodingStyle: final decisions?
- _d suffix for naked struct/class types (not _t!)

- m_ prefix for class members

- prefer braces for single line ifs.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-07-14 10:49:33 -07:00
Tommi Virtanen
f29b9bd7de CodingStyle: Typos, whitespace. 2011-07-13 11:25:22 -07:00
Sage Weil
24faa3d198 CodingStyle 2011-07-11 09:57:22 -07:00