Skip to content

Conversation

@Silvanoc
Copy link
Contributor

Apply following code style:

  • No trailing whitespaces
  • Use 2 whitespaces for each indentation level
  • Use 2 empty newlines to separate functions
  • Do not put any empty newlines separating function documentation and the function itself
  • Use only 1 empty newline to create separations inside of functions

@Silvanoc Silvanoc mentioned this pull request Jan 16, 2026
@Silvanoc Silvanoc force-pushed the improve-code-style branch 3 times, most recently from 2e46073 to 485262d Compare January 16, 2026 15:50
Apply following code style:

* No trailing whitespaces
* Use 2 whitespaces for each indentation level
* Use 2 empty newlines to separate functions
* Do not put any empty newlines separating function documentation
  and the function itself
* Use only 1 empty newline to create separations inside of functions

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
Add "editorconfig" configuration for YAML, MarkDown, Go and Shell files.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
@Silvanoc
Copy link
Contributor Author

The tool editorconfig-checker can be used to see all the non-complying places in the repository. There are lots of them.

Go has a well-defined code style that gets enforced with "go fmt ./...".
This patch applies it to all the Go source code files.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants