Guidelines for better contributions =================================== #. `Welcome <#Welcome>`__ #. `Code of Conduct <#code-of-conduct>`__ #. `I just have a question! <#i-just-have-a-question>`__ #. `How Can I Contribute? <#how-can-i-contribute>`__ - `Translate FusionDirectory in your language <#translate-fusiondirectory>`__ - `Register for a FusionDirectory project account <#register-for-a-fusiondirectory-project-account>`__ - `Finding Wonderful Bugs <#finding-wonderful-bugs>`__ - `Any Feedback To Enhance Our Apps <#any-feedback-to-enhance-our-apps>`__ - `Your Awesome And Mighty Codes Contributions <#your-awesome-and-mighty-codes-contributions>`__ #. `Coding with style <#coding-with-style>`__ - `Git Commit Messages <#git-commit-messages>`__ - `PHP Style Guide <#php-style-guide>`__ #. `Licensing <#licensing>`__ -------------- Welcome ------- «Here's a list of our guidelines, If you want to share a best practice, or think one of these guidelines should be removed, feel free to share it with us.» 🎉 First off, thanks for taking the time to contribute! Now, sit comfortably at the fireplace, grab your glasses and immerse yourself in our documentation. Code Of Conduct --------------- All projects and everyone participating in it is governed by FusionDirectory :ref:`code-of-conduct-label`. By participating, you are expected to uphold this code. Please read this before. I just have a question! ----------------------- .. note:: Please don't file an issue to ask a question. You'll get faster results by using the resource below. We have an various channel of communications - `#fusiondirectory, the irc channel of FusionDirectory on Libera.chat `__, channel #fusiondirectory - `FusionDirectory Users mailing list `__ - `FusionDirectory dev mailing list `__ How Can I Contribute? --------------------- So, you've developed a new cool feature? Fixed an annoying bug? Found a mistake? Want to help translate FusionDirectory in your own language. We'd be happy to hear from you! 👍 Translate FusionDirectory ~~~~~~~~~~~~~~~~~~~~~~~~~ We are using `Transifex `__ to translate FusionDirectory. - Create a transifex account - Ask to be added to the language group you want to translate - Start translating Register for a FusionDirectory project account ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To create a FusionDirectory project Account you must go to - `FusionDirectory Sign UP `__ Put FusionDirectory in debug mode ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Go into FusionDirectory configuration - Activate the displaying of PHP errors, and the TRACE debug level Finding Wonderful Bugs ~~~~~~~~~~~~~~~~~~~~~~ .. note:: This section guides you through submitting a bug report. Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports. When you are creating a bug report, please include as many details as possible. Fill out the **Bugs** template to create issues, the information it asks for helps us resolve issues faster. Explain the problem and include additional details to help maintainers reproduce the problem: - **Use a clear and descriptive title** for the issue to identify the problem. - **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining wich brower and it's version. When listing steps, don't just say what you did, but explain how you did it. For example, if you moved the cursor to the end of an input, explain if you used the mouse, or a keyboard. - **Describe the behavior** you observed after following the steps and point out what exactly is the problem with that behavior. - **Explain which behavior** you expected to see instead and why. - **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use `this tool `__ to record GIFs on macOS and Windows, and `this tool `__ on Linux. - **Include the PHP errors and trace** collected at the debug step above - **If the problem is linked to a specific LDAP entry** attach its LDAP dump. Fill in a report on : - `FusionDirectory `__ for the core program - `FusionDirectory Plugins `__ for plugins. Any Feedback To Enhance FusionDirectory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. note:: This section guides you through submitting an enhancement suggestion, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions. When you are creating a enhancement report, please include as many details as possible. Fill out the **Enhancement** template to create thoses issues, the information it asks for helps us resolve issues faster. - `FusionDirectory `__ for the core program - `FusionDirectory Plugins `__ for plugins. - **Use a clear and descriptive title** for the issue to identify the suggestion. - **Provide a step-by-step description of the suggested enhancement** in as many details as possible. - **Describe the current behavior** and **explain which behavior you expected to see instead** and why. - **Include screenshots and animated GIFs** which help you demonstrate the steps which the suggestion is related to. You can use `this tool `__ to record GIFs on macOS and Windows, and `this tool `__ on Linux. - **Explain why this enhancement would be useful** to most FusionDirectory users. Your awesome And Mighty Codes Contributions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. note:: This section guides you through submitting an enhancement suggestion, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions. When you are contributing a new fonctionnality or plugin, please include as many details as possible. Fill out the **Contribution** template to create thoses issues, the information it asks for helps us resolve issues faster. - `FusionDirectory `__ for the core program - `FusionDirectory Plugins `__ for plugins. - **Use a clear and descriptive title** for the issue to identify your contribution - **Provide a step-by-step description of the contribution** in as many details as possible. - **Include screenshots and animated GIFs** which help you demonstrate what this contribution is about. You can use `this tool `__ to record GIFs on macOS and Windows, and `this tool `__ or `this tool `__ on Linux. - **Explain why this contribution would be useful** to most FusionDirectory users. - **Follow the** :ref:`coding-style-label`. - **Use our** `PHP CodeSniffer `_ rules to check code compliance :ref:`checking-standard-label`. Coding with style ----------------- Git Commit Messages ~~~~~~~~~~~~~~~~~~~ .. note:: Having a good guideline for creating commits and sticking to it makes working with Git and collaborating with others a lot easier. Here are some rules of thumb : - Use the present tense ("Add feature" not "Added feature") - If you have a body, separate the subject from the body with a newline - Limit the subject line to 72 characters - Do not end the subject line with a period - Use imperative `mood `__ in the subject line - If the subject is not clear enough, use the body to explain what and why as opposed to how - Consider starting the commit message with an applicable emoji, when you feel it's an important commit : .. code-block:: shell :tada: When first / initial commit :sparkles: When introducing new features :ambulance: When fixing a bug :handshake: When merging files :tractor: When you changing file structure or refactoring :books: When writing docs :gem: When new Release :lipstick: For cosmetics purposes Commit Message Format ^^^^^^^^^^^^^^^^^^^^^ Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**: :: ():