Git Product home page Git Product logo

Comments (9)

JHertz5 avatar JHertz5 commented on June 24, 2024

I will try to raise a PR for this. At the moment I am planning a "simple solution" of a rule each for functions and procedures that enforces the new line. I suppose it would be disabled by default to maintain the current default behaviour.

However, this does not allow enforcement of the inverse, i.e. no newline before the closing parenthesis. In order to have that configurability, I think it might be better to just roll the structure rules for functions and procedure together into a procedure_call_003 style structure rule. I would probably need some guidance before trying that, so unless I hear otherwise, I'll just stick with the simple solution.


Update: I've had another look and I have managed to put together a more general rule for subprogram specification structure, similar to procedure_call_003, so I think that this will be a nice, tidy solution. Just working on cleanup, testing and documentation now.

from vhdl-style-guide.

JHertz5 avatar JHertz5 commented on June 24, 2024

I have raised PR #1108 for this issue. It is not yet ready for review, as I am still working on the unit tests. It is now ready for review and any feedback is welcome. There are quite a lot of changes here, so @jeremiah-c-leary, please let me know if anything is not to your liking (or make changes to the branch as you see fit).

from vhdl-style-guide.

JHertz5 avatar JHertz5 commented on June 24, 2024

In addition to the closing parenthesis, the new rules also enforce the newlines around the opening parenthesis, interface list semcolons and interface elements. There are not indentation rules for all of these yet, but that PR is already quite large (and much larger than I originally intended), so I think that the missing indentation rules should be implemented as a separate issue/when someone requests it.

from vhdl-style-guide.

jeremiah-c-leary avatar jeremiah-c-leary commented on June 24, 2024

Morning @JHertz5 ,

so I think that the missing indentation rules should be implemented as a separate issue/when someone requests it.

I agree. The current indent rules will cover the most likely structural styles.

The pull request looks really good. I appreciate the documentation and the tests you added to cover the new rules.

I just had several minor comments in the PR. When we address those I will merge this to master.

How did you find the process of adding these rules? Anything I can do to make it easier or less confusing?

Regards,

--Jeremy

from vhdl-style-guide.

JHertz5 avatar JHertz5 commented on June 24, 2024

Hi @jeremiah-c-leary

Thanks very much!

I just had several minor comments in the PR. When we address those I will merge this to master.

Perfect, thanks. I'll address any comments as soon as I get a chance, should be on the weekend at the latest. I can't see any comments on the PR at the moment. Have they not been submitted yet?

How did you find the process of adding these rules? Anything I can do to make it easier or less confusing?

I found it to be straightforward now that I've built some familiarity with your codebase. My strategy was to find existing rules that were similar to what I wanted to implement, and use those as a template for the new rule, using bin/vsg_parser to identify the tokens within the snippet of VHDL that I used to test the new rule. So, for myself, I don't think there is anything that caused confusion or difficulty.

If you'd like my opinion on the experience for a new contributor, I have a couple of thoughts. Things like using bin/vsg_parser to identify tokens and using bin/vsg_rule_doc_gen to update the documentation are extremely useful for a contributor but are not obvious or easy to discover without your guidance. I've seen some extremely helpful comments that you've very kindly written to individuals (including myself), describing how to create a new rule, set up tests, etc. but this information isn't easy to find. I think it would be useful to have something like a broad step-by-step guide to producing a rule, or just a "useful tips for contributors" page?

from vhdl-style-guide.

jeremiah-c-leary avatar jeremiah-c-leary commented on June 24, 2024

Morning @JHertz5 ,

Perfect, thanks. I'll address any comments as sson as I get a chance, should be on the weekend at the latest. I can't see any comments on the PR at the moment. Have they not been submitted yet?

The comments show up in the conversion tab of the PR. If you scroll towards the bottom you will see the three comments I made.

Image

Thank you for the feedback on the contributing experience, it is obviously a blind spot for me.

I really should document the process of adding a new rule. That would bring out all the tools available. I could also describe the patterns you see in creating tests, etc...

I will create a ticket to improve what little documentation I have.

Thanks,

--Jeremy

from vhdl-style-guide.

JHertz5 avatar JHertz5 commented on June 24, 2024

Hi @jeremiah-c-leary

The comments show up in the conversion tab of the PR. If you scroll towards the bottom you will see the three comments I made.

I can see in the screenshot that you posted that the comment has the "Pending" label. This means that the comments have been added as part of a review which has not been submitted yet, and no one other than yourself can see them until you submit the review.
This is what I see on the PR currently:


image

image

Thank you for the feedback on the contributing experience, it is obviously a blind spot for me.

No problem at all!

from vhdl-style-guide.

jeremiah-c-leary avatar jeremiah-c-leary commented on June 24, 2024

Evening @JHertz5 ,

I can see in the screenshot that you posted that the comment has the "Pending" label. This means that the comments have been added as part of a review which has not been submitted yet

I just submitted the review, so I hope you can see the comments now.

--Jeremy

from vhdl-style-guide.

JHertz5 avatar JHertz5 commented on June 24, 2024

Thanks very much @jeremiah-c-leary! I can see those comments now. I have actioned/responded to each and requested your re-review.

from vhdl-style-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.