Skip to content

Commit

Permalink
{.java, .c, .cpp}: Major fixing
Browse files Browse the repository at this point in the history
Fix linting issue using eclint
  • Loading branch information
sangamcse committed Oct 2, 2018
1 parent 7741968 commit 1f488e2
Show file tree
Hide file tree
Showing 13 changed files with 481 additions and 396 deletions.
15 changes: 10 additions & 5 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

[all]
max_line_length = 80
use_spaces = True

[all.space_checks]
files = **/*.py, **/*.java, **/*.c, **/*.h, **/*.cpp
[all.cpp]
files = **/*.c, **/*.h, **/*.cpp
bears = SpaceConsistencyBear
use_spaces = False

[all.pyjava]
files = **/*.py, **/*.java
bears = SpaceConsistencyBear
use_spaces = True

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

[all.cpp]
[all.cpplint]
files = **/*.cpp, **/*.h, **/*.c
ignore = queue/Cpp/Queue.h
bears = CPPLintBear
cpplint_ignore = build/namespaces, legal/copyright, runtime/references
cpplint_ignore = build/namespaces, legal/copyright, runtime/references,
whitespace/tab, whitespace/comments

[all.commit]
bears = GitCommitBear
Expand Down
11 changes: 3 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,17 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true

[*.{go,c,cpp}]
[*.{c,cpp}]
indent_style = tab
tab_width = 4
trim_trailing_whitespace = true

[*.js]
indent_style = tab
tab_width = 2
trim_trailing_whitespace = true

[*.{py,java,cs}]
[*.{py,java}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{c,cpp,java,js}]
[*.{c,cpp,java}]
block_comment_start = /*
block_comment = *
block_comment_end = */
Expand Down
Loading

0 comments on commit 1f488e2

Please sign in to comment.