Skip to content

molecule_json_saver.cpp has 2,432 lines of code, which is greater than 2,000 authorized. Split it into smaller files #3414

@AlexeyGirin

Description

@AlexeyGirin

Problem:
core/indigo-core/molecule/src/molecule_json_saver.cpp has 2,432 lines of code, which is greater than 2,000 authorized. Split it into smaller files.

Why is this an issue?
A source file that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor it into smaller pieces of code which focus on well defined tasks. Those smaller files will not only be easier to understand but also probably easier to test.

Problem locations:
core/indigo-core/molecule/src/molecule_json_saver.cpp

Metadata

Metadata

Labels

Priority: LowSeverity: LowLow level visibility to the userSonarBucket: Issues found by Sonar scanner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions