Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.58 KB

DEVELOPMENT.md

File metadata and controls

64 lines (39 loc) · 1.58 KB

Development

Requirements

Code styling guidelines

Bash

Markdown

  • Use Github flavored markdown.
  • One sentence per line - do not line break long sentences.

TODO

  • Naming conventions?
  • Line length limit (except for markdown)?

Tooling

Tools for making development easier for everyone!

Set up git pre-commit hooks

Install pre-commit using pip:

# From the project root
sudo apt install python3-pip git rbenv
wget -qO- https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz | sudo tar -J -xf - --strip-components=1 -C /usr/local/bin/ --no-anchored shellcheck
pip3 install pre-commit
pre-commit install

Note: pre-commit is usually installed at $HOME/.local/bin. Make sure it is on your PATH.

Some tests will now be performed on the staged files each commit.

To uninstall the pre-commit checks, remove the file at .git/hooks/pre-commit.

Setting up editorconfig

To use common editor settings in this repository, please install and enable the Editorconfig plugin in your editor, if available. The plugin will set up project-specific editor configuration based on the values in the .editorconfig file.

Editor plugins

VS Code

Some recommended plugins:

  • timonwong.shellcheck
  • davidanson.vscode-markdownlint
  • redhat.vscode-yaml
  • editorconfig.editorconfig

Other editors

Please add plugins that makes life easier :)