All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Vogel <Andreas.Vogel@anvo-it.de>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: [Q] Indentation rules for GRUB source code
Date: Thu, 01 Mar 2012 13:09:40 +0100	[thread overview]
Message-ID: <4F4F6704.6090203@anvo-it.de> (raw)

I tried to find all relevant docs and read what I've found (e.g.
grub-dev.texi), so please excuse me if this questions has been already
answered somewhere.

I would like to change and submit code for GRUB and from what i see
right now indentation of the code doesn't seem to follow any rules. Most
of the time the visible indentation is 2 spaces which is either achieved
by using a TAB (which needs that the editor is configured to show TABs
as 2 spaces) or it's done by just using 2 spaces.

Regarding to what code I've seen until now, the indentation of quite a
lot of code is messed up and makes reading more difficult.

What are the preferred rules to follow when submitting changes or new
code regarding indentation?

BTW, it might be a good idea to propose the TAB setting configurations
for the most popular editors, e.g. I'm using vim right now.

Andreas


             reply	other threads:[~2012-03-01 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 12:09 Andreas Vogel [this message]
2012-03-01 12:25 ` [Q] Indentation rules for GRUB source code Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-01 13:28   ` Andreas Vogel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4F6704.6090203@anvo-it.de \
    --to=andreas.vogel@anvo-it.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.