Skip to content

Define coding style guidelines #1318

@pmconrad

Description

@pmconrad

User Story
As a contributor I want coding style guidelines so that our code becomes more readable through consistent formatting and practices.

Impacts

  • Other (please add below)
    Code quality

Additional Context (optional)
https://isocpp.org/wiki/faq/coding-standards

CORE TEAM TASK LIST

  • Consensus regarding formatting rules
    • Formatting
      • Maximum line length: 118
      • EOF: 1 newline
      • Code block separation: 1 newline
      • Long calls: Use 496c622
      • Spaces: In discussion. See Wiki
    • Comments
      • In-line
      • In code blocks
      • In test cases
    • Naming
      • Methods: all lowercase with "_" as word separator
      • Other?
    • Scoping
      • In lambda:
      • In large refactor:
      • Avoid global variables
    • Classes
      • Please add
    • Functions
      • Please add
    • Exception Rules
      • Please add
    • Architecture
      • Create/modify/delete of the database inside operation evaluator must be done in do_apply and never in do_evaluate
      • Bump database: when new fields are added or removed to objects
        • DATABASE_VERSION format: YYYYMMDD
    • PR against:
      • develop if no impact to consensus logic
      • hardfork if consensus impacting
  • Identify a tool(s) that can do it automatically
  • Perform whitespace-only change

Metadata

Metadata

Assignees

No one assigned

    Labels

    1b User StoryThe User Story details a requirement. It may reference a parent Epic. It may reference child Task(s)2a Discussion NeededPrompt for team to discuss at next stand up.3c EnhancementClassification indicating a change to the functionality of the existing imlementation5a Docs NeededStatus specific to Documentation indicating the need for proper documentation to be added

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions