Skip to content

Commit c9771bf

Browse files
committed
Raise issues directly on the name node in RoutineNameCheck
1 parent 59729b2 commit c9771bf

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
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- **API:** `InterfaceTypeNode::getGuidExpression` method.
1313
- **API:** `AttributeNode::getExpression` method.
1414

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

1721
- **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)