Skip to content

Commit 1f488e2

Browse files
committed
{.java, .c, .cpp}: Major fixing
Fix linting issue using eclint
1 parent 7741968 commit 1f488e2

File tree

13 files changed

+481
-396
lines changed

13 files changed

+481
-396
lines changed

.coafile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33

44
[all]
55
max_line_length = 80
6-
use_spaces = True
76

8-
[all.space_checks]
9-
files = **/*.py, **/*.java, **/*.c, **/*.h, **/*.cpp
7+
[all.cpp]
8+
files = **/*.c, **/*.h, **/*.cpp
9+
bears = SpaceConsistencyBear
10+
use_spaces = False
11+
12+
[all.pyjava]
13+
files = **/*.py, **/*.java
1014
bears = SpaceConsistencyBear
1115
use_spaces = True
1216

@@ -15,11 +19,12 @@ files = **/*.py
1519
bears = PEP8Bear, PycodestyleBear
1620
default_actions = PEP8Bear: ApplyPatchAction
1721

18-
[all.cpp]
22+
[all.cpplint]
1923
files = **/*.cpp, **/*.h, **/*.c
2024
ignore = queue/Cpp/Queue.h
2125
bears = CPPLintBear
22-
cpplint_ignore = build/namespaces, legal/copyright, runtime/references
26+
cpplint_ignore = build/namespaces, legal/copyright, runtime/references,
27+
whitespace/tab, whitespace/comments
2328

2429
[all.commit]
2530
bears = GitCommitBear

.editorconfig

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ charset = utf-8
55
end_of_line = lf
66
insert_final_newline = true
77

8-
[*.{go,c,cpp}]
8+
[*.{c,cpp}]
99
indent_style = tab
1010
tab_width = 4
1111
trim_trailing_whitespace = true
1212

13-
[*.js]
14-
indent_style = tab
15-
tab_width = 2
16-
trim_trailing_whitespace = true
17-
18-
[*.{py,java,cs}]
13+
[*.{py,java}]
1914
indent_style = space
2015
indent_size = 4
2116
trim_trailing_whitespace = true
2217

23-
[*.{c,cpp,java,js}]
18+
[*.{c,cpp,java}]
2419
block_comment_start = /*
2520
block_comment = *
2621
block_comment_end = */

0 commit comments

Comments
 (0)