[gjs: 1/3] CI: Tweak cpplint rules



commit e54d9f70145123a2370519f29c91446072def109
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Mar 25 00:05:39 2018 -0700

    CI: Tweak cpplint rules
    
    This disables the cpplint rules that cause the most problems with our
    existing style. It's not possible to customize the rules, so
    unfortunately this means that, for example, braces aren't checked at all,
    because the cpplint brace style disagrees with our existing brace style.
    
    [skip cpplint] because some messages changed (e.g. line length).
    
    Closes #137.

 CPPLINT.cfg      | 7 +++++++
 util/CPPLINT.cfg | 1 +
 2 files changed, 8 insertions(+)
---
diff --git a/CPPLINT.cfg b/CPPLINT.cfg
new file mode 100644
index 0000000..edef0ae
--- /dev/null
+++ b/CPPLINT.cfg
@@ -0,0 +1,7 @@
+# This is the toplevel CPPLINT.cfg file
+set noparent
+
+linelength=100
+
+filter=-build/include_subdir
+filter=-whitespace/braces
diff --git a/util/CPPLINT.cfg b/util/CPPLINT.cfg
new file mode 100644
index 0000000..67a8c5c
--- /dev/null
+++ b/util/CPPLINT.cfg
@@ -0,0 +1 @@
+exclude_files=sp-capture-.*
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]