Skip to content

Commit

Permalink
Redundancy: Add docs missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
AsnelChristian committed Jun 11, 2017
1 parent 4cba206 commit 8cbea85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions coalib/bearlib/aspects/Redundancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ class Redundancy:
This aspect describes redundancy in your source code.
"""
class docs:
example = """
int foo(int iX)
{
int iY = iX*2;
return iX*2;
}
"""
example_language = 'C++'
importance_reason = """
Redundant code makes your code harder to read and understand.
"""
Expand Down Expand Up @@ -160,6 +169,10 @@ def func():
print (id(a))
"""
example_language = 'python'
importance_reason = """
We should always keep our codebase clean, having dead code uselessly
makes the code longer and ambiguous.
"""
fix_suggestions = """
These statement can be remove without harming the code.
"""
Expand Down

0 comments on commit 8cbea85

Please sign in to comment.