X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=CodingStyle.md;h=0aac92471eaa705840b56f99218c31e77c3b6017;hb=HEAD;hp=b1f5be1ddd5a4ba7f2a415fc3a0c2806fd0bbf5b;hpb=cd96f17f874d69f79b487dbf6c84257e44be9043;p=lttng-tools.git diff --git a/CodingStyle.md b/CodingStyle.md index b1f5be1dd..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: @@ -267,6 +267,11 @@ Here are a couple of reminders: 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: