Skip to content

Commit dd683ac

Browse files
add line breaks (#658)
1 parent ef226e8 commit dd683ac

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

process/folder_templates/modules/module_name/component_name/docs/architecture/chklst_arc_inspection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ See also :need:`doc_concept__wp_inspections` for further information about revie
155155
- Indicators for complexity are: number of use cases (corresponding to dynamic diagrams)
156156
allocated to single design element, number of interfaces and operations in an interface,
157157
function parameters, global variables, complex types, limited comprehensibility.
158-
The belonging code metrics should be checked.
158+
The belonging code metrics (see :ref:`implementation requirements page<impl_process_requirements_complexity>`) should be checked.
159159

160160
Notes:
161161

process/process_areas/implementation/guidance/implementation_process_reqs.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ Dependency Analysis
328328
.. needextend:: docname is not None and "process_areas/implementation" in docname
329329
:+tags: implementation
330330

331+
.. _impl_process_requirements_complexity:
331332

332333
Complexity Analyses
333334
'''''''''''''''''''
@@ -340,11 +341,15 @@ Complexity Analyses
340341

341342
A complexity analysis for the components shall be performed by automated tool support. It shall consider appropriate code metrics like lines of code, cyclomatic complexity, number of public interfaces, number of parameters and so on. The results of the analysis shall be documented in the SW Verification Report. As default an exceeds of the following limits shall be reported for the complexity measures (ASIL B / QM):
342343

343-
Lines of Code per function: 100 / 200
344-
Lines of Code per file : 2000 / 4000
345-
Cyclomatic complexity per function: 10 / 20
346-
Number of parameters per function: 5 / 7
347-
Number of public interfaces per component: 3 / 10
344+
* Lines of Code per function: 100 / 200
345+
346+
* Lines of Code per file : 2000 / 4000
347+
348+
* Cyclomatic complexity per function: 10 / 20
349+
350+
* Number of parameters per function: 5 / 7
351+
352+
* Number of public interfaces per component: 3 / 10
348353

349354
The project may specify own limits for the complexity measures in the project guidelines, if there is a rationale for deviating from the default limits.
350355
Therefore the tooling shall support configuration of the limits globally for the project and per component, if the component wants to use own lower (more strict) limits.

0 commit comments

Comments
 (0)