From 63472fa1f472e43d335b049b1fc6730cc9bde5a1 Mon Sep 17 00:00:00 2001 From: Ilya Vlasov Date: Mon, 6 Nov 2023 12:12:10 +0400 Subject: [PATCH] fix: return the `custom_name` field --- CodeStyleAndFormatting/WhatIsFormatting/Quiz/task-info.yaml | 1 + .../ExtractDuplicatedCode/task-info.yaml | 1 + .../WhatIsExtractMethodRefactoring/Theory/task-info.yaml | 1 + .../ExtractMagicConstants/task-info.yaml | 1 + .../WhatIsExtractVariableRefactoring/Theory/task-info.yaml | 1 + .../Practice/RefactoringAndItsPurposePractice/task-info.yaml | 1 + RenamingCode/RenameRefactoringInIDE/FixTypos/task-info.yaml | 2 ++ RenamingCode/RenameRefactoringInIDE/Quiz/task-info.yaml | 1 + .../RenameRefactoringInIDE/task-info.yaml | 1 + 9 files changed, 10 insertions(+) diff --git a/CodeStyleAndFormatting/WhatIsFormatting/Quiz/task-info.yaml b/CodeStyleAndFormatting/WhatIsFormatting/Quiz/task-info.yaml index 316d95f..e063cc1 100644 --- a/CodeStyleAndFormatting/WhatIsFormatting/Quiz/task-info.yaml +++ b/CodeStyleAndFormatting/WhatIsFormatting/Quiz/task-info.yaml @@ -1,4 +1,5 @@ type: choice +custom_name: What is the primary benefit of following consistent code formatting? is_multiple_choice: false options: - text: It guarantees bug-free code. diff --git a/ExtractingCode/WhatIsExtractMethodRefactoring/ExtractDuplicatedCode/task-info.yaml b/ExtractingCode/WhatIsExtractMethodRefactoring/ExtractDuplicatedCode/task-info.yaml index 012c354..43c3389 100644 --- a/ExtractingCode/WhatIsExtractMethodRefactoring/ExtractDuplicatedCode/task-info.yaml +++ b/ExtractingCode/WhatIsExtractMethodRefactoring/ExtractDuplicatedCode/task-info.yaml @@ -1,4 +1,5 @@ type: edu +custom_name: Extract duplicated code files: - name: src/main/kotlin/jetbrains/refactoring/course/extracting/Task.kt visible: true diff --git a/ExtractingCode/WhatIsExtractMethodRefactoring/Theory/task-info.yaml b/ExtractingCode/WhatIsExtractMethodRefactoring/Theory/task-info.yaml index a37a09d..42802d3 100644 --- a/ExtractingCode/WhatIsExtractMethodRefactoring/Theory/task-info.yaml +++ b/ExtractingCode/WhatIsExtractMethodRefactoring/Theory/task-info.yaml @@ -1,4 +1,5 @@ type: theory +custom_name: What is Extract Method refactoring? files: - name: src/main/kotlin/jetbrains/refactoring/course/extracting/Main.kt visible: true diff --git a/ExtractingCode/WhatIsExtractVariableRefactoring/ExtractMagicConstants/task-info.yaml b/ExtractingCode/WhatIsExtractVariableRefactoring/ExtractMagicConstants/task-info.yaml index 2e4c0f6..ce2bca0 100644 --- a/ExtractingCode/WhatIsExtractVariableRefactoring/ExtractMagicConstants/task-info.yaml +++ b/ExtractingCode/WhatIsExtractVariableRefactoring/ExtractMagicConstants/task-info.yaml @@ -1,4 +1,5 @@ type: edu +custom_name: Extract magic numbers files: - name: src/main/kotlin/jetbrains/refactoring/course/extracting/Task.kt visible: true diff --git a/ExtractingCode/WhatIsExtractVariableRefactoring/Theory/task-info.yaml b/ExtractingCode/WhatIsExtractVariableRefactoring/Theory/task-info.yaml index a37a09d..3da00ee 100644 --- a/ExtractingCode/WhatIsExtractVariableRefactoring/Theory/task-info.yaml +++ b/ExtractingCode/WhatIsExtractVariableRefactoring/Theory/task-info.yaml @@ -1,4 +1,5 @@ type: theory +custom_name: What is Extract Variable refactoring? files: - name: src/main/kotlin/jetbrains/refactoring/course/extracting/Main.kt visible: true diff --git a/RefactoringAndItsPurpose/Practice/RefactoringAndItsPurposePractice/task-info.yaml b/RefactoringAndItsPurpose/Practice/RefactoringAndItsPurposePractice/task-info.yaml index bf6dd95..7701f69 100644 --- a/RefactoringAndItsPurpose/Practice/RefactoringAndItsPurposePractice/task-info.yaml +++ b/RefactoringAndItsPurpose/Practice/RefactoringAndItsPurposePractice/task-info.yaml @@ -1,4 +1,5 @@ type: edu +custom_name: Identify code issues and fix them files: - name: test/IdentifyIssuesInCodeSnippetTest.kt visible: false diff --git a/RenamingCode/RenameRefactoringInIDE/FixTypos/task-info.yaml b/RenamingCode/RenameRefactoringInIDE/FixTypos/task-info.yaml index 6c63b16..de9bb58 100644 --- a/RenamingCode/RenameRefactoringInIDE/FixTypos/task-info.yaml +++ b/RenamingCode/RenameRefactoringInIDE/FixTypos/task-info.yaml @@ -1,4 +1,6 @@ type: edu +custom_name: "Fix typos, change the code to comply with naming rules and camelCase\ + \ convention" files: - name: src/main/kotlin/jetbrains/refactoring/course/renaming/Student.kt visible: true diff --git a/RenamingCode/RenameRefactoringInIDE/Quiz/task-info.yaml b/RenamingCode/RenameRefactoringInIDE/Quiz/task-info.yaml index 6e09ef4..356e414 100644 --- a/RenamingCode/RenameRefactoringInIDE/Quiz/task-info.yaml +++ b/RenamingCode/RenameRefactoringInIDE/Quiz/task-info.yaml @@ -16,3 +16,4 @@ message_incorrect: "Incorrect solution. Explanation: The option \"Calculate_valu files: - name: src/main/kotlin/jetbrains/refactoring/course/renaming/Main.kt visible: true +custom_name: Which of the following code element names demonstrates good naming practice? diff --git a/RenamingCode/RenameRefactoringInIDE/RenameRefactoringInIDE/task-info.yaml b/RenamingCode/RenameRefactoringInIDE/RenameRefactoringInIDE/task-info.yaml index 3766ac4..ccb4491 100644 --- a/RenamingCode/RenameRefactoringInIDE/RenameRefactoringInIDE/task-info.yaml +++ b/RenamingCode/RenameRefactoringInIDE/RenameRefactoringInIDE/task-info.yaml @@ -1,4 +1,5 @@ type: theory +custom_name: Rename refactoring in IDE files: - name: src/main/kotlin/jetbrains/refactoring/course/renaming/Main.kt visible: true