Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Wip #87

Merged
merged 15 commits into from
Feb 17, 2019
Merged

Wip #87

merged 15 commits into from
Feb 17, 2019

Conversation

nil0x42
Copy link
Owner

@nil0x42 nil0x42 commented Feb 17, 2019

No description provided.

@codecov
Copy link

codecov bot commented Feb 17, 2019

Codecov Report

Merging #87 into master will not change coverage.
The diff coverage is 69.16%.

@@           Coverage Diff           @@
##           master      #87   +/-   ##
=======================================
  Coverage   58.81%   58.81%           
=======================================
  Files          69       69           
  Lines        3249     3249           
  Branches      607      607           
=======================================
  Hits         1911     1911           
  Misses       1139     1139           
  Partials      199      199

@codecov
Copy link

codecov bot commented Feb 17, 2019

Codecov Report

Merging #87 into master will increase coverage by 0.47%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   58.34%   58.81%   +0.47%     
==========================================
  Files          69       69              
  Lines        3212     3249      +37     
  Branches      606      607       +1     
==========================================
+ Hits         1874     1911      +37     
  Misses       1139     1139              
  Partials      199      199

@@ -178,7 +178,7 @@ def process_tags(line):
line = colorize(*tag) + line[len(tag[1]):]

# colorize «*» patterns from tagged line:
dye = lambda obj: colorize('%White', "« " + obj.group(1) + " »")
dye = lambda obj: colorize('%White', repr(obj.group(1)))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not assign a lambda expression, use a def

@@ -31,12 +31,14 @@ def __init__(self, path):
path = path[:-1]
self.path = path
self.name = os.path.basename(path)
self.argv = [] # redefined at runtime on run()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least two spaces before inline comment

return re.match("^[A-Z][A-Z0-9_]+$", name)

def update(self, dic):
def update(self, new_dict):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cyclomatic complexity is too high in method update. (8)

nil0x42 and others added 2 commits February 17, 2019 23:02
@codeclimate
Copy link

codeclimate bot commented Feb 17, 2019

Code Climate has analyzed commit b3e31a9 and detected 147 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 47
Complexity 82
Clarity 16
Bug Risk 2

Note: there are 14 critical issues.

View more on Code Climate.

@nil0x42 nil0x42 merged commit d06ef12 into master Feb 17, 2019
@nil0x42 nil0x42 deleted the wip branch February 17, 2019 23:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant