aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-05-30 00:43:09 +0200
committerRobert Helgesson <robert@rycee.net>2020-05-30 00:45:57 +0200
commitd64fff1fe067f18402861769ce1b90f8a34e9000 (patch)
treecb2a7c9fb4b3beec1013d56f8cf21cdfda610087 /doc
parentc8b73e415a1b3a080b636d13dfaae40b8b3147c6 (diff)
doc: add note about line width
Diffstat (limited to 'doc')
-rw-r--r--doc/contributing.adoc4
1 files changed, 3 insertions, 1 deletions
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