Skip to content

Commit a725243

Browse files
committed
use computed values for precommit and sonarcloud features
1 parent ac91735 commit a725243

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

copier/questions/features_code_quality.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
# Questions for code quality features
3+
4+
# the main menu
35
SelectCodeQualityFeatures:
46
when: "{{ template_profile != 'minimum' }}"
57
type: yaml
@@ -19,16 +21,17 @@ SelectCodeQualityFeatures:
1921
value: not_implemented_linting
2022
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2123
Pre-commit:
22-
value: AddPreCommit
24+
value: AddPreCommit_flag
2325
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2426
Code analysis (using SonarCloud):
25-
value: AddSonarCloud
27+
value: AddSonarCloud_flag
2628
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2729
Editorconfig (NOT_IMPLEMENTED):
2830
value: not_implemented_editor_config
2931
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
3032

3133

34+
# Sub-menus
3235
SelectGitHubActions:
3336
when: "{{ 'SelectGitHubActions_flag' in SelectCodeQualityFeatures }}"
3437
type: yaml
@@ -67,3 +70,13 @@ AddLinkCheck:
6770
type: bool
6871
default: "{{ 'AddLinkCheck_flag' in SelectGitHubActions }}"
6972
when: false
73+
74+
AddPreCommit:
75+
type: bool
76+
default: "{{ 'AddPreCommit_flag' in SelectCodeQualityFeatures }}"
77+
when: false
78+
79+
AddSonarCloud:
80+
type: bool
81+
default: "{{ 'AddSonarCloud_flag' in SelectCodeQualityFeatures }}"
82+
when: false

0 commit comments

Comments
 (0)