-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPPLINT.cfg
More file actions
57 lines (48 loc) · 1.84 KB
/
Copy pathCPPLINT.cfg
File metadata and controls
57 lines (48 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# CPPLINT Configuration for C++14 Embedded Project
# Place this file in the project root directory
# Line length: 80 characters (embedded standard)
linelength=80
# Filters to disable certain checks
# Format: filter=-category/subcategory
# === Legal ===
filter=-legal/copyright
# === Build ===
filter=-build/include_subdir
filter=-build/header_guard
filter=-build/c++11
filter=-build/include_order
filter=-build/include_what_you_use
filter=-build/namespaces
# === Runtime ===
filter=-runtime/references
filter=-runtime/int
filter=-runtime/explicit
# === Whitespace ===
filter=-whitespace/indent
filter=-whitespace/braces
filter=-whitespace/parens
filter=-whitespace/blank_line
filter=-whitespace/comments
filter=-whitespace/ending_newline
filter=-whitespace/newline
filter=-whitespace/line_length
# === Readability ===
filter=-readability/braces
filter=-readability/todo
filter=-readability/casting
# Explanation of disabled filters:
# -legal/copyright : No copyright header requirement
# -build/include_subdir : Allow flexible include paths
# -build/header_guard : Allow ZTASK_FILE_HPP_ style
# -build/c++11 : Allow C++14 features freely
# -build/include_order : Allow flexible include ordering
# -build/include_what_you_use: Don't require explicit includes for every symbol
# -runtime/references : Allow non-const references (common in modern C++)
# -runtime/int : Allow int, long, etc. (not just fixed-width)
# -runtime/explicit : Allow implicit constructors where appropriate
# -whitespace/* : Allow flexible formatting styles
# -readability/braces : Allow single-line if/else without braces
# -readability/todo : Allow TODO comments without assignee
# -readability/casting : Allow C-style casts where appropriate
# Root directory for header guard naming
root=include