Skip to content

Code style fixers should be secondary #105

@dextermb

Description

@dextermb

What you would like to change/add

I'd like there to be a sentence or two where it is defined that you should follow the code styles rather than pushing up not up to standard code and waiting for CI to resolve it.

Why you would like to change/add this

I believe that you should write code to the internal standard from the get-go when writing code for the company. Style fixers should be a back up to pick up on anything that you might of missed or didn't know was an internal standard.

  • For projects that don't have a style fixer it means that everyone who goes to maintain the project will have a better understanding of the codebase as it follows a pattern seen in every other project.
  • For older projects new code should follow the internal standards even if the original codebase doesn't, this again makes it easier to maintain in the future. At some point someone should go through and tidy up older parts of the codebase.

Not following standards does not help with the mindframe of developing or maintaining a project.

Checklist

  • I have checked that this is not a duplicate issue.
Edit:

Proposed styleguide TLDR:

Any code that enters the acting master branch must meet the internal code standards. If the project does not have CI setup to fix styling issues you should fix any issues before committing.

Vote

👍 Yes
👎 No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions