Skip to content

Consistent casing for classes and ids #2562

Description

@sarahsporck

Motivation

See discussion in #2534

We're not 100% consistent in our code base, but I think kebab-case is more common in our id and class attributes than snake_case.
We could decide on consistent case conventions and then document them to facilitate such decisions in the future...

I think at the moment, these are the most used variants:

Python code: snake_case
Python file names: snake_case
TypeScript code: camelCase
TypeScript file names: kebab-case
HTML code: kebab-case
HTML file names: snake_case

The question is whether we should keep this as standard, or whether we should adapt one or more of these categories...

Proposed Solution

Decide for consistent solution regarding casing.
Then check wether all files, ... follow this decisicon and fix it up if necessary. There might be linting rules for this (for eslint and pylint, at least).

The linting should be solved in #3779

Alternatives

Don't change anything. It's not worth the effort.

User Story

As a developer I want consistently use class properties and ids so that I can efficiently deliver more features.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio: lowNot urgent, can be resolved in the distant future.readyThis issue is ready to be worked ontopic:RefactoringIssues related to refactoring

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions