Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix dangerous default argument #24

Merged
merged 1 commit into from
Sep 22, 2021
Merged

Fix dangerous default argument #24

merged 1 commit into from
Sep 22, 2021

Conversation

deepsource-autofix[bot]
Copy link
Contributor

No description provided.

@@ -102,7 +102,7 @@ def integrateBodyForce(self, f, nodeCoords, constitutive, n=1):
# quad element for something else, like 2D heat transfer where there's no thickness
return super().integrateBodyForce(f, nodeCoords, n=n) * constitutive.t

def integrateTraction(self, f, nodeCoords, constitutive, edges=[0, 1, 2, 3], n=1):
def integrateTraction(self, f, nodeCoords, constitutive, edges=None, n=1):
Copy link

Choose a reason for hiding this comment

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

Function integrateTraction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Sep 22, 2021

Code Climate has analyzed commit f8b5b02 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #24 (f8b5b02) into main (a529d8a) will decrease coverage by 0.13%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
- Coverage   49.71%   49.57%   -0.14%     
==========================================
  Files          18       18              
  Lines         712      714       +2     
==========================================
  Hits          354      354              
- Misses        358      360       +2     
Impacted Files Coverage Δ
FEMpy/QuadElement.py 59.18% <33.33%> (-2.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a529d8a...f8b5b02. Read the comment docs.

@A-CGray A-CGray merged commit 8df276f into main Sep 22, 2021
@A-CGray A-CGray deleted the deepsource-fix-b339689f branch September 22, 2021 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant