Skip to content

Choose a style guide for SS3 code #311

@k-doering-NOAA

Description

@k-doering-NOAA

Issues #293 and #163 brought up the fact that we don't have an agreed upon style guide for the ss3 codebase. I think we could probably choose a c++ one, but we may also need to add conventions given that tpls can look a little different. Some questions that come to mind are:

  • Is a semicolon required after each statement when declaring variables? I think you don't needed it for certain sections in the tpl, but maybe we should choose 1 convention.
  • Should 1 statement for loops and if statements always be included in curly braces {}?
  • Whitespace conventions: this is probably answered in a style guide, but when should there be whitespace and when should there not (e.g., is for(a=1;a<10;a++) or for (a = 1; a < 10; a++) the correct style?)

Perhaps @nschindler-noaa has thoughts on this to start?

Metadata

Metadata

Assignees

No one assigned

    Labels

    workflowsrelated to workflows/gh-actions

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions