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

Add method declarations and implementations to UnitLevelKeywordIndentation rule #43

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

fourls
Copy link
Collaborator

@fourls fourls commented Oct 10, 2023

This PR expands the UnitLevelKeywordIndentation rule to also pick up unindented:

  • Top-level method declarations (i.e. not in a type section)
  • Method implementation headings
  • begin and end keywords for method implementations

To reflect that it is now handling more than just single keywords, the message has also been changed to "Unindent this top-level statement."

Copy link
Collaborator

@Cirras Cirras left a comment

Choose a reason for hiding this comment

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

I agree with the logic changes, but I don't agree with the new wording.
That is, I have a fairly strict definition of what a "statement" is, and a method or type declaration doesn't fit it.

Naming/wording is hard, any thoughts on alternatives for the issue message & rule description?

@Cirras Cirras assigned Cirras and unassigned Cirras Oct 17, 2023
@fourls
Copy link
Collaborator Author

fourls commented Oct 19, 2023

"Unindent this top-level construct?"

@Cirras
Copy link
Collaborator

Cirras commented Oct 19, 2023

"construct" feels odd. "element" maybe...?

@fourls fourls force-pushed the add-procedure-to-indent-check branch from 1f71415 to f28526b Compare October 19, 2023 03:30
@fourls
Copy link
Collaborator Author

fourls commented Oct 19, 2023

I've updated to "Unindent this top-level element."

@fourls fourls requested a review from Cirras October 19, 2023 05:18
@Cirras Cirras force-pushed the add-procedure-to-indent-check branch from 1fffb2f to 2f5b745 Compare October 20, 2023 01:09
@Cirras Cirras merged commit c04f1e6 into master Oct 20, 2023
1 check passed
@Cirras Cirras deleted the add-procedure-to-indent-check branch October 20, 2023 01:17
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