-
Notifications
You must be signed in to change notification settings - Fork 17
add module naming convention #12
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
Open
migara
wants to merge
1
commit into
main
Choose a base branch
from
doc-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -453,6 +453,15 @@ proposes workarounds. The 0.14 version is not impacted by this issue. | |||||
|
|
||||||
| We will maintain one mono repo per cloud provider. Three repos, representing AWS, Azure and GCP, as we kick off our efforts. | ||||||
|
|
||||||
| ## Module naming convention | ||||||
| We will use [kebab-case](https://www.theserverside.com/definition/Kebab-case) when naming the modules | ||||||
|
|
||||||
| Examples | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ``` | ||||||
| transit-gateway | ||||||
| gateway-loadbalancer | ||||||
| ``` | ||||||
|
|
||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ├── README.md <- Documentation explaining the purpose of this mono repo | ||||||
| ├── LICENSE.md <- Palo Alto Networks Script Software Agreement | ||||||
| ├── modules/ | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd be against. We have so many modules named with
snake_case. Renaming all of them is a big change, so I'd wonder what strong arguments are there?When programming, there is a temptation to first do use the identical string:
This either fails the linting rule after some time, or if uncaught, it leads to this painful experience:
Subjectively I know the excerpts like the previous line hurt my productivity a lot. But I know it won't be the same for all of us.
(Introducing a long-existing inconsistency is worse. In usage, if a dev or user is always in doubt whether this time it's
transit-gatewayortransit_gateway, that sums up over all these people to quite a noticeable problem.)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.
I think this is the name of the main module, rather than changing every variable name. I could be wrong though. Care to comment @migara ?