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: LGTM alerts #1043

Merged
merged 4 commits into from
Sep 8, 2021
Merged

FIX: LGTM alerts #1043

merged 4 commits into from
Sep 8, 2021

Conversation

DimitriPapadopoulos
Copy link
Contributor

This fixes some alerts where the solution is obvious.

Other alerts can be found here:
https://lgtm.com/projects/g/nipy/nibabel/

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

All looks good...

@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #1043 (cb72438) into master (75af371) will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1043   +/-   ##
=======================================
  Coverage   92.26%   92.27%           
=======================================
  Files         100      100           
  Lines       12205    12204    -1     
  Branches     2136     2136           
=======================================
  Hits        11261    11261           
+ Misses        616      615    -1     
  Partials      328      328           
Impacted Files Coverage Δ
nibabel/cmdline/dicomfs.py 18.96% <0.00%> (ø)
nibabel/pydicom_compat.py 92.00% <ø> (-0.31%) ⬇️
nibabel/cifti2/cifti2.py 96.69% <100.00%> (ø)
nibabel/filebasedimages.py 89.36% <100.00%> (+0.70%) ⬆️

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 75af371...cb72438. Read the comment docs.

Too few parameters for special method __getitem__, which has 1 parameter, but should have 2, in class FileBasedImage.

https://lgtm.com/rules/7850093/
This 'for' statement has a redundant 'else' as no 'break' is present in the body.

https://lgtm.com/rules/5980098/
This assignment to 'patient_info' is unnecessary as it is redefined here before this value is used.

https://lgtm.com/rules/1800095/
@effigies effigies merged commit 85c7b37 into nipy:master Sep 8, 2021
effigies pushed a commit that referenced this pull request Feb 7, 2022
FIX: LGTM error: Special method has incorrect signature

Too few parameters for special method __getitem__, which has 1 parameter, but should have 2, in class FileBasedImage.

https://lgtm.com/rules/7850093/

FIX: LGTM warning: Unnecessary 'else' clause in loop

This 'for' statement has a redundant 'else' as no 'break' is present in the body.

https://lgtm.com/rules/5980098/

FIX: LGTM warning: Variable defined multiple times

This assignment to 'patient_info' is unnecessary as it is redefined here before this value is used.

https://lgtm.com/rules/1800095/

FIX: LGTM recommendations: Unused import

Import of '...' is not used.

https://lgtm.com/rules/6770079/

Backport of gh-1043
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.

2 participants