From d64fff1fe067f18402861769ce1b90f8a34e9000 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 30 May 2020 00:43:09 +0200 Subject: doc: add note about line width --- doc/contributing.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/contributing.adoc') diff --git a/doc/contributing.adoc b/doc/contributing.adoc index 6a9e94cd846..d2305960542 100644 --- a/doc/contributing.adoc +++ b/doc/contributing.adoc @@ -157,7 +157,9 @@ Finally, when adding a new module, say `programs/foo.nix`, we use the fixed comm The code in Home Manager is formatted by the {nixfmt}[nixfmt] tool and the formatting is checked in the pull request tests. Run the `format` tool inside the project repository before submitting your pull request. -Note, we prefer `lowerCamelCase` for variable and attribute names with the accepted exception of variables directly referencing packages in Nixpkgs which use a hyphenated style. For example, the Home Manager option `services.gpg-agent.enableSshSupport` references the `gpg-agent` package in Nixpkgs. +Keep lines at a reasonable width, ideally 80 characters or less. This also applies to string literals. + +We prefer `lowerCamelCase` for variable and attribute names with the accepted exception of variables directly referencing packages in Nixpkgs which use a hyphenated style. For example, the Home Manager option `services.gpg-agent.enableSshSupport` references the `gpg-agent` package in Nixpkgs. [[sec-news]] === News -- cgit v1.2.3