Skip to content

Commit 8672a72

Browse files
author
Gyan Ranjan Panda
committed
Rename 'Grammar' optional step group to 'Antlr' in deploy_to_develop pipeline
Fixes #2057 The decorator was used for three pipeline steps that handle ANTLR-specific grammar files (.g/.g4). The name "Grammar" is too generic and ambiguous — it does not make clear which grammar tool or technology is involved. Rename the optional step group from "Grammar" to "Antlr" to: - Align with all other optional step groups in the pipeline that are named after their specific technology (Java, Scala, Kotlin, Groovy, AspectJ, Clojure, etc.) - Make the user-facing CLI --groups flag, REST API, and UI unambiguous - Clearly communicate that these steps are exclusively for ANTLR grammar files The three affected steps are: - find_grammar_packages: finds java packages in .g/.g4 source files - map_grammar_to_class: maps .class files to their .g/.g4 source - map_jar_to_grammar_source: maps .jar files to their ANTLR source directory Note: Internal class names (GrammarLanguage, grammar_package, grammar_to_class) are database-persisted identifiers and are intentionally NOT changed to avoid requiring a data migration. Backward compatibility note: Existing pipeline configs or API calls using "--groups Grammar" must be updated to "--groups Antlr" after this change.
1 parent b966b47 commit 8672a72

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scanpipe/pipelines/deploy_to_develop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,21 +250,21 @@ def map_jar_to_kotlin_source(self):
250250
project=self.project, jvm_lang=jvm.KotlinLanguage, logger=self.log
251251
)
252252

253-
@optional_step("Grammar")
253+
@optional_step("Antlr")
254254
def find_grammar_packages(self):
255255
"""Find the java package of the .g/.g4 source files."""
256256
d2d.find_jvm_packages(
257257
project=self.project, jvm_lang=jvm.GrammarLanguage, logger=self.log
258258
)
259259

260-
@optional_step("Grammar")
260+
@optional_step("Antlr")
261261
def map_grammar_to_class(self):
262262
"""Map a .class compiled file to its .g/.g4 source."""
263263
d2d.map_jvm_to_class(
264264
project=self.project, jvm_lang=jvm.GrammarLanguage, logger=self.log
265265
)
266266

267-
@optional_step("Grammar")
267+
@optional_step("Antlr")
268268
def map_jar_to_grammar_source(self):
269269
"""Map .jar files to their related source directory."""
270270
d2d.map_jar_to_jvm_source(

0 commit comments

Comments
 (0)