-
Notifications
You must be signed in to change notification settings - Fork 259
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
FIX: LGTM alerts #1043
Conversation
There was a problem hiding this 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 Report
@@ 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
Continue to review full report at Codecov.
|
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/
Import of '...' is not used. https://lgtm.com/rules/6770079/
e677a67
to
cb72438
Compare
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
This fixes some alerts where the solution is obvious.
Other alerts can be found here:
https://lgtm.com/projects/g/nipy/nibabel/