Skip to content

Commit 5c92eb7

Browse files
cirrasfourls
authored andcommitted
Raise issues directly on the name node in RoutineNameCheck
1 parent 9b96b0c commit 5c92eb7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- **API:** `InterfaceTypeNode::getGuidExpression` method.
1414
- **API:** `AttributeNode::getExpression` method.
1515

16+
### Changed
17+
18+
- Issue locations no longer span the entire routine declaration in `RoutineName`.
19+
1620
### Deprecated
1721

1822
- **API:** `InterfaceGuidNode` node type.

delphi-checks/src/main/java/au/com/integradev/delphi/checks/RoutineNameCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class RoutineNameCheck extends DelphiCheck {
3838
@Override
3939
public DelphiCheckContext visit(RoutineDeclarationNode routine, DelphiCheckContext context) {
4040
if (isViolation(routine) && !isExcluded(routine)) {
41-
reportIssue(context, routine, MESSAGE);
41+
reportIssue(context, routine.getRoutineNameNode(), MESSAGE);
4242
}
4343
return super.visit(routine, context);
4444
}

0 commit comments

Comments
 (0)