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

Clean autocoders code #1240

Merged
merged 10 commits into from
Feb 16, 2022
Merged

Clean autocoders code #1240

merged 10 commits into from
Feb 16, 2022

Conversation

iw4p
Copy link
Contributor

@iw4p iw4p commented Jan 26, 2022

Originating Project/Creator iw4p
Affected Component Autocoder
Affected Architectures(s) Python
Related Issue(s) N/A
Has Unit Tests (y/n) exist
Builds Without Errors (y/n) Y
Unit Tests Pass (y/n) Y
Documentation Included (y/n) Y

Change Description

Check and lint codes via pylint to find out what's missing or wrong and clean the code.

Rationale

Fixed bugs.

Testing/Review Recommendations

Built with cmake ../ -DCMAKE_BUILD_TYPE=TESTING and make check.

Future Work

Nothing for now.

@lgtm-com
Copy link

lgtm-com bot commented Jan 26, 2022

This pull request introduces 4 alerts when merging f33933f into 83e2d45 - view on LGTM.com

new alerts:

  • 4 for Potentially uninitialized local variable

Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

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

Many of the returns that were removed were necessary for the code to function. In all cases where a return is on an error branch they need to be restored.

Autocoders/Python/bin/gds_dictgen.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2022

This pull request introduces 1 alert when merging 063ca59 into 72bc851 - view on LGTM.com

new alerts:

  • 1 for Potentially uninitialized local variable

Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

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

Two more missing returns. Other than that, it looks good!

Autocoders/Python/bin/implgen.py Outdated Show resolved Hide resolved
Autocoders/Python/bin/implgen.py Outdated Show resolved Hide resolved
@iw4p
Copy link
Contributor Author

iw4p commented Feb 14, 2022

Two more missing returns. Other than that, it looks good!

I think it's fine now, Thank you.

@LeStarch LeStarch merged commit f1222b5 into nasa:devel Feb 16, 2022
LeStarch pushed a commit that referenced this pull request Jun 29, 2022
* lint JSONDictionaryGen.py

* lint implgen.py

* clean if elif statements

* lint AddSysPath

* Update JSONDictionaryGen.py

* Update gds_dictgen.py

* Update tlm_packet_gen.py

* Update pymod_dictgen.py

* Update gds_dictgen.py

* Update implgen.py
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