mirror of
https://github.com/lptstr/winfetch.git
synced 2026-08-28 10:16:50 -05:00
856 B
856 B
Contributing
This document, stolen from the Neofetch repository, describes the code style required when contributing to Winfetch.
Coding Conventions
- No using PowerShell aliases. Please.
- Use .NET functions where possible.
- exception:
write-hostinstead ofconsole.writeline()
- exception:
- Don't throw exceptions.
- Intead, write the error message in
redand terminate (exit 1).
- Intead, write the error message in
- Indent 4 spaces.
- Use snake_case for function and variable names.
- Try to keep lines below
128characters long. - Use lowercase for .NET functions where possible.
- e.g.
[text.encoding]::utf8.getstring((000,000,000))instead of[Text.Encoding]::UTF8.GetString((000,000,000)).
- e.g.
Also, please test out your changes before submitting a PR.