About
Policies and Security
Product
Bounty Programs
Guidelines
<aside> ⚡ Contact Support
</aside>
© MACHI-SYSTEMS 2022– V2.0
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e99d759d-b386-4668-b749-afbe05c3bada/Machi_M_280x280.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e99d759d-b386-4668-b749-afbe05c3bada/Machi_M_280x280.png" width="40px" /> These guidelines document how to review code. Helpful for new and remote contributors to get and stay aligned.
</aside>
A code review is a process where someone other than the author(s) of a piece of code examines that code.
At Machi-Systems, we use code reviews to maintain the quality of our code and products.
This documentation is the canonical description of Machi-Systems code review processes and policies.
This page is an overview of our code review process.
Why do you perform code reviews? What are your guiding principles for these reviews?
You may want to mention other pages here. Like Engineering Guidelines. To link to another page inline, type @ followed by the name of the page: ‣
Code reviews should look at:
See How To Do A Code Review for more information.
In general, you want to find the best reviewers you can who are capable of responding to your review within a reasonable period of time.
The best reviewer is the person who will be able to give you the most thorough and correct review for the piece of code you are writing. This usually means the owner(s) of the code, who may or may not be the people in the OWNERS file. Sometimes this means asking different people to review different parts of the Change-list (CL).
Preparation sets your reviewers up for success.
The style guidelines and best practices for our engineering team.
Bash is the only shell scripting language permitted for executables.
Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash script_name does not break its functionality.
Restricting all executable shell scripts to bash gives us a consistent shell language that’s installed on all our machines.
The only exception to this is where you’re forced to by whatever you’re coding for. One example of this is Solaris SVR4 packages which require plain Bourne shell for any scripts.
Shell should only be used for small utilities or simple wrapper scripts.
While shell scripting isn’t a development language, it is used for writing various utility scripts throughout Machi-Systems. This style guide is more a recognition of its use rather than a suggestion that it be used for widespread deployment.