Skip to content

Commit

Permalink
Normalize language enum casing
Browse files Browse the repository at this point in the history
Updated the LanguageId enum values to use consistent lowercase casing. This change affects the Java and Python IJ Inspectors to align with the new enum definitions.
  • Loading branch information
meanmail committed Sep 26, 2024
1 parent 0d5905f commit 130f96e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ service CodeInspectionService {
}

enum LanguageId {
Python = 0;
python = 0;
kotlin = 1;
Java = 2;
java = 2;
}

message Code {
Expand Down
2 changes: 1 addition & 1 deletion hyperstyle/src/python/review/inspectors/ij_java/ij_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class JavaIJInspector(BaseIJInspector):
inspector_type = InspectorType.IJ_JAVA
language_id = model_pb2.LanguageId.Java
language_id = model_pb2.LanguageId.java
issue_configs = ISSUE_CONFIGS
ij_inspection_to_issue_type = IJ_INSPECTION_TO_ISSUE_TYPE
ij_message_to_issue_type = IJ_MESSAGE_TO_ISSUE_TYPE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class PythonIJInspector(BaseIJInspector):
inspector_type = InspectorType.IJ_PYTHON
language_id = model_pb2.LanguageId.Python
language_id = model_pb2.LanguageId.python
issue_configs = ISSUE_CONFIGS
ij_inspection_to_issue_type = IJ_INSPECTION_TO_ISSUE_TYPE
ij_message_to_issue_type = IJ_MESSAGE_TO_ISSUE_TYPE
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hyperstyle"
version = "1.6.3"
version = "1.7.0"
description = "A tool for running a set of pre-configured linters and evaluating code quality."
authors = ["Hyperskill Team"]
readme = "README.md"
Expand Down

0 comments on commit 130f96e

Please sign in to comment.