-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathfeatures_code_quality.yml
More file actions
87 lines (77 loc) · 2.53 KB
/
features_code_quality.yml
File metadata and controls
87 lines (77 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
# Questions for code quality features
# the main menu
SelectCodeQualityFeatures:
when: "{{ template_profile != 'minimum' }}"
type: yaml
default: |-
{% if template_profile == 'recommended' %}
[SelectGitHubActions_flag, not_implemented_linting, AddSonarCloud_flag, AddEditorConfig_flag]
{%- else -%}
[]
{%- endif %}
help: Select code quality features
multiselect: true
choices:
GitHub Actions:
value: SelectGitHubActions_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Linting (using ruff NOT_IMPLEMENTED):
value: not_implemented_linting
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Pre-commit:
value: AddPreCommit_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Code analysis (using SonarCloud):
value: AddSonarCloud_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Editorconfig:
value: AddEditorConfig_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
# Sub-menus
SelectGitHubActions:
when: "{{ 'SelectGitHubActions_flag' in SelectCodeQualityFeatures }}"
type: yaml
default: |-
{% if template_profile == 'recommended' %}
[AddGitHubActionBuild_flag, AddGitHubActionDocumentation_flag]
{%- else -%}
[]
{%- endif %}
help: Select GitHub Action workflows
multiselect: true
choices:
Build:
value: AddGitHubActionBuild_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Documentation:
value: AddGitHubActionDocumentation_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Link checker (reports broken URLs):
value: AddLinkCheck_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
# computed features
AddGitHubActionBuild:
type: bool
default: "{{ 'AddGitHubActionBuild_flag' in SelectGitHubActions }}"
when: false
AddGitHubActionDocumentation:
type: bool
default: "{{ 'AddGitHubActionDocumentation_flag' in SelectGitHubActions }}"
when: false
AddLinkCheck:
type: bool
default: "{{ 'AddLinkCheck_flag' in SelectGitHubActions }}"
when: false
AddPreCommit:
type: bool
default: "{{ 'AddPreCommit_flag' in SelectCodeQualityFeatures }}"
when: false
AddSonarCloud:
type: bool
default: "{{ 'AddSonarCloud_flag' in SelectCodeQualityFeatures }}"
when: false
AddEditorConfig:
type: bool
default: "{{ 'AddEditorConfig_flag' in SelectCodeQualityFeatures }}"
when: false