-
Notifications
You must be signed in to change notification settings - Fork 5
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
lint ruby drc code. #36
Conversation
can you invert the order of the commits in the history in order to:
|
That will make it easier to review things concurrently. |
@FaragElsayed2 Could you please do that? My bad. |
@proppy If you accept all the other open PRs and then this one in that order, everything will fall in place as you want. The rest of the tables will be correct moving forward and the new tables will be lint clean. We won't be able to work on this until Sunday. If you can do the above that would be really helpful to speed up the process on our end. |
16ed7ed
to
531323a
Compare
@proppy I have removed all other files as requested and only kept dualgate drc file and linting checks for ruby files. |
I prefer to review the PR as it is currently as it will allow us to review each further DRC PR idependently with the lint workflow enabled. |
klayout/drc/rule_decks/main.drc
Outdated
|
||
if $report | ||
logger.info("GF180MCU Klayout DRC runset output at: %s" % [$report]) | ||
report("DRC Run Report at", $report) | ||
logger.info(format('GF180MCU Klayout DRC runset output at: %s', $report)) |
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.
string interpolation?
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.
Done
klayout/drc/rule_decks/main.drc
Outdated
else | ||
BALL = "true" | ||
end # BALL | ||
BALL = if $ball == 'false' |
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.
do we want to default to be true here?
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.
Yes
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.
Can we keep the original structure of the code then and keep any config refactoring for #37?
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.
Same as above
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.
Are you intentionally keeping this a string
rather that converting it to a boolean? I would assume that the rest of the rules would prefer to test this directly rather than doing string comparison?
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.
klayout/drc/rule_decks/main.drc
Outdated
else | ||
GOLD = "true" | ||
end # GOLD | ||
GOLD = if $gold == 'false' |
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.
do we want to default to be true here?
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.
Yes
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.
Can we keep the original structure of the code then and keep any config refactoring for #37?
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.
Same as above
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.
Ah I see, are you intentionally keeping this a string
rather that converting it to a boolean? I would assume that the rest of the rules would prefer to test this directly rather than doing string comparison?
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.
@FaragElsayed2 Squashing commits on github to avoid too many commits for the PR: |
9f22fa4
to
ed6e97a
Compare
@proppy I think @FaragElsayed2 has already addressed most of your concerns. Could you please merge the PR and open issues with any remaining issues as we agreed? |
841448e
to
4bd369e
Compare
@atorkmabrains I agree that most of the comment have been addressed, but as suggested before I'd like the history to be squashed before merging (there is currently an history of 106 commits which are mostly unrelated to this change) |
@FaragElsayed2 Could you please squish the commits history? |
c3a1462
to
b2293b2
Compare
@proppy Commits are squashed to one commit as requested. |
@proppy Could you please let me know if there is anything else? |
It looks good, but please use a more descriptive commit message (no need to mention it's in one commit) |
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.
Just some nits left above better handing of the conditions per layers. But feel free to address them in a separate change.
Thanks for the hard work on this.
@proppy I think we have done with all issues, Could you please merge ? |
Sure can you make sure to address it the last remaining comment and reword the commit message? Thanks in advance |
b2293b2
to
116f741
Compare
@proppy Done |
Thanks @FaragElsayed2 |
@proppy Anything else? |
116f741
to
577f3b2
Compare
@proppy Anything else? |
@proppy Could you please merge? |
@atorkmabrains yes, sorry I was just waiting for the CI to pass. Thanks for all the hard work on this! |
Fixes #14
Please don't merge this PR before the other PRs.