Skip to content

Commit 9742248

Browse files
committed
Add extra exclusions for common loop counter names in ShortIdentifier
1 parent 669105e commit 9742248

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
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- `RedundantInherited` analysis rule, which flags redundant `inherited` statements that can be safely removed.
1313

14+
### Changed
15+
16+
- Exclude `J` and `K` by default in `ShortIdentifier`.
17+
1418
## [1.6.0] - 2024-05-31
1519

1620
### Added

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public class ShortIdentifierCheck extends DelphiCheck {
3636
private static final String MESSAGE = "Give this short identifier a more meaningful name.";
3737
private static final int DEFAULT_MINIMUM_LENGTH = 3;
38-
private static final String DEFAULT_WHITELIST = "E,I,X,Y,ID";
38+
private static final String DEFAULT_WHITELIST = "E,I,J,K,X,Y,ID";
3939

4040
@RuleProperty(
4141
key = "minimumLength",

0 commit comments

Comments
 (0)