-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Java IJ inspector with necessary configurations and update the common reviewer logic to include it. Bump version to 1.6.0 and handle missing connection parameters with an exception instead of a warning.
- Loading branch information
Showing
8 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
18 changes: 18 additions & 0 deletions
18
hyperstyle/src/python/review/inspectors/ij_java/ij_python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import annotations | ||
|
||
from hyperstyle.src.python.review.inspectors.common.inspector.base_inspector import BaseIJInspector | ||
from hyperstyle.src.python.review.inspectors.common.inspector.inspector_type import InspectorType | ||
from hyperstyle.src.python.review.inspectors.common.inspector.proto import model_pb2 | ||
from hyperstyle.src.python.review.inspectors.ij_java.issue_configs import ISSUE_CONFIGS | ||
from hyperstyle.src.python.review.inspectors.ij_java.issue_types import ( | ||
IJ_INSPECTION_TO_ISSUE_TYPE, | ||
IJ_MESSAGE_TO_ISSUE_TYPE, | ||
) | ||
|
||
|
||
class JavaIJInspector(BaseIJInspector): | ||
inspector_type = InspectorType.IJ_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 |
3 changes: 3 additions & 0 deletions
3
hyperstyle/src/python/review/inspectors/ij_java/issue_configs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from __future__ import annotations | ||
|
||
ISSUE_CONFIGS = [] |
5 changes: 5 additions & 0 deletions
5
hyperstyle/src/python/review/inspectors/ij_java/issue_types.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
IJ_INSPECTION_TO_ISSUE_TYPE = {} | ||
|
||
IJ_MESSAGE_TO_ISSUE_TYPE = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters