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

HLA-1254: Address issues caught by SonarQube #1802

Merged
merged 7 commits into from
May 22, 2024

Conversation

mdlpstsci
Copy link
Collaborator

@mdlpstsci mdlpstsci commented May 20, 2024

Resolves HLA-1254

Closes #

This PR addresses ...
Address issues caught by SonarQube statis code analysis. This must be done according to ITSD requirements.

Deleted the deprecated parameter, dao_threshold, in
astrometric_utils.py/extract_sources(). Removed parameter from any calling functions.

Checklist for maintainers

  • added entry in CHANGELOG.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR

astrometric_utils.py/extract_sources(). Removed parameter
from any calling functions.
@mdlpstsci mdlpstsci added bug code cleanup Code refactoring, cleanup of temporary code jirahub-ignore Avoid linking to Jira labels May 20, 2024
@mdlpstsci mdlpstsci self-assigned this May 20, 2024
@mdlpstsci mdlpstsci requested a review from a team as a code owner May 20, 2024 16:00
as the variable is a parameter which can be set by the invoking routine
(though it is NOT at this time) or the parameter defaults to None.
output value.  It was essentially ignored by the other routines in
drizzlepac as an input value.
Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 31.45%. Comparing base (1f64115) to head (36460e4).

Files Patch % Lines
drizzlepac/haputils/ci_table.py 0.00% 4 Missing ⚠️
drizzlepac/haputils/hapcut_utils.py 0.00% 3 Missing ⚠️
drizzlepac/nicmosData.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1802      +/-   ##
==========================================
- Coverage   33.32%   31.45%   -1.88%     
==========================================
  Files         126      160      +34     
  Lines       31204    35168    +3964     
  Branches     5777        0    -5777     
==========================================
+ Hits        10398    11061     +663     
- Misses      19643    24107    +4464     
+ Partials     1163        0    -1163     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mdlpstsci mdlpstsci changed the title HLA-1254: (WIP) Address issues caught by SonarQube HLA-1254: Address issues caught by SonarQube May 21, 2024
Copy link
Collaborator

@zacharyburnett zacharyburnett left a comment

Choose a reason for hiding this comment

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

LGTM, the sonarscan against this branch succeeds and lets the regtests run:
https://github.com/spacetelescope/RegressionTests/actions/runs/9191698890/job/25279150673

@mdlpstsci mdlpstsci merged commit b051bce into spacetelescope:main May 22, 2024
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code cleanup Code refactoring, cleanup of temporary code jirahub-ignore Avoid linking to Jira
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants