Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Java coding standard: problematic use of ordered lists #70

Open
PierceAndy opened this issue Feb 25, 2017 · 3 comments
Open

Java coding standard: problematic use of ordered lists #70

PierceAndy opened this issue Feb 25, 2017 · 3 comments

Comments

@PierceAndy
Copy link

PierceAndy commented Feb 25, 2017

codingStandards/CodingStandard-Java.md uses ordered lists for sub-sub-headings.

The way it is used is problematic because each time a section is added or removed, all subsequent numberings for the ordered list have to be individually and manually updated, i.e. they are not being recognized as proper ordered lists in markdown.

The solution would be to properly format the markdown such that the ordered lists are recognized and automatically updated, e.g. by indenting the content of each list element.

In well-formatted markdown, the following does not need manual updating

1. Heading
    text text
1. Heading
    text text
1. Heading
    text text

and would be rendered as

  1. Heading
    text text
  2. Heading
    text text
  3. Heading
    text text
@damithc
Copy link
Contributor

damithc commented Feb 25, 2017

To be consistent with the other coding standard .md files, I would recommend using unordered lists instead. Furthermore, ordering doesn't matter here.

Note that in a document such as a coding standard where there are many items listed, we need a way to refer to a specific items from outside. e.g. refer to rule 12.

@PierceAndy
Copy link
Author

@damithc, noted, updated issue.

In which case, should the other coding standards not already doing so (namely HTML and CSS), be updated to use numbered lists as well?

@damithc
Copy link
Contributor

damithc commented Feb 26, 2017

In which case, should the other coding standards not already doing so (namely HTML and CSS), be updated to use numbered lists as well?

Yes, we need to decide a uniform format for coding standards. We'll probably have to revisit this issue to decide on a uniform format after we have implemented support for asciidoc because it's possible that we decide to move coding standards docs to asciidoc. I'm also waiting for the semester to be over before doing any major changes to the java coding standard.

@acjh acjh changed the title Java coding standard: problemetic use of ordered lists Java coding standard: problematic use of ordered lists Feb 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants