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

[Documentation] Add naming conventions to contributing section #14196

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Jul 26, 2022

Q A
Branch? 1.11
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

I would like to initiate a new chapter in our docs, in the Contributing section. Definitely, there is a need for some iterations over it, especially that there is probably many more conventions to write down but I believe that it is a good start 😃

screencapture-localhost-63342-Sylius-docs-build-book-contributing-code-conventions-html-2022-07-26-14_10_58

@GSadee GSadee added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Jul 26, 2022
@GSadee GSadee requested a review from a team as a code owner July 26, 2022 12:18
* Suffix PHPSpec classes with `Spec`,
* Suffix PHPUnit tests with `Test`,
* Prefix Twig templates that are just partial blocks with `_`,
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class

* Suffix PHPUnit tests with `Test`,
* Prefix Twig templates that are just partial blocks with `_`,
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.

@lchrusciel lchrusciel merged commit 6539a51 into Sylius:1.11 Aug 5, 2022
* Suffix exceptions with `Exception`,
* Suffix PHPSpec classes with `Spec`,
* Suffix PHPUnit tests with `Test`,
* Prefix Twig templates that are just partial blocks with `_`,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Prefix Twig templates that are just partial blocks with `_`,
* Prefix Twig templates that are partial blocks with `_`,

* Suffix PHPSpec classes with `Spec`,
* Suffix PHPUnit tests with `Test`,
* Prefix Twig templates that are just partial blocks with `_`,
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class

* Suffix PHPUnit tests with `Test`,
* Prefix Twig templates that are just partial blocks with `_`,
* Use fully qualified class name (FQCN) of an interface as a service name of newly created service or FQCN of class
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.
if there are multiple implementations of a given interface unless it is inconsistent with the current scope of Sylius.

@GSadee GSadee deleted the docs-conventions-naming branch August 5, 2022 09:19
lchrusciel added a commit that referenced this pull request Aug 9, 2022
…adee)

This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11|
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no|
| Related tickets | fixes #14196 |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.11 branch
 - Features and deprecations must be submitted against the 1.12 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

d0c022a [Documentation] Minor fixes to naming conventions page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation related issues and PRs - requests, fixes, proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants