X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=CodingStyle.md;h=0aac92471eaa705840b56f99218c31e77c3b6017;hp=3074ea8836716531ea121b8055fd6e70385918c1;hb=HEAD;hpb=21fe6b7161cc96351f4fd28c991da9e4b0bd2807 diff --git a/CodingStyle.md b/CodingStyle.md index 3074ea883..0aac92471 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -179,7 +179,7 @@ class thing_doer : public lttng::sessiond::doer { public: explicit thing_doer(const std::string& name); - virtual void do() override final; + void do() override final; const std::string& name() const; private: @@ -263,6 +263,15 @@ Here are a couple of reminders: * Accept a by-value parameter and move it (when it's moveable) when you intend to copy it anyway. You can do this with most STL containers. +## Python + +Python code should be formatted using [black](https://github.com/psf/black). + +## Shell (BASH) + +New scripts and modifications to existing scripts should pass linting +with [Shellcheck](https://www.shellcheck.net/). + ## C Style (historical) The coding style used for this project follows the the Linux kernel guide lines, except that brackets `{`, `}` should typically be used even for single-line if/else statements. Please refer to: