Skip to content

Commit 8be2cc5

Browse files
authored
new DocCommentStyle and TypeDocComment checks (#440)
* new DocCommentStyle and TypeDocComment checks
1 parent d9a849c commit 8be2cc5

32 files changed

+865
-146
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ node_modules
1414
.DS_Store
1515
log/
1616
target/
17+
callgrind.*
18+
debug/
1719

1820
check-style-report.json
1921
check-style-report.xml
2022
coverage.json
2123
haxecheckstyle.js
2224

2325
display.hxml
26+
core

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## dev branch / next version (2.x.x)
22

3+
- New check DocCommentStyle [#440](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/440)
4+
- New check TypeDocComment [#440](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/440)
5+
- Fixed handling of comments between types in ExtendedEmptyLines [#440](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/440)
36
- Refactored `Checker.getLinePos` to use binary search, reduces runtime from O(N/2) to O(log N) [#439](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/439)
47

58
## version 2.4.1 (2018-06-14)

checkstyle.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
{
4343
"type": "DefaultComesLast"
4444
},
45+
{
46+
"type": "DocCommentStyle"
47+
},
4548
{
4649
"type": "Dynamic"
4750
},
@@ -450,6 +453,15 @@
450453
},
451454
"type": "Type"
452455
},
456+
{
457+
"type": "TypeDocComment",
458+
"props": {
459+
"tokens": [
460+
"CLASS_DEF",
461+
"INTERFACE_DEF"
462+
]
463+
}
464+
},
453465
{
454466
"props": {
455467
"ignoreExtern": true,
@@ -595,6 +607,20 @@
595607
"MemberName": [
596608
"checkstyle/Main"
597609
],
610+
"TypeDocComment": [
611+
"checkstyle/Main",
612+
"checkstyle/Checker",
613+
"checkstyle/ChecksInfo",
614+
"checkstyle/ParserQueue",
615+
"checkstyle/checks/Check",
616+
"config",
617+
"detect",
618+
"errors",
619+
"reporter",
620+
"schema",
621+
"test",
622+
"utils"
623+
],
598624
"UnusedLocalVar": [
599625
"JsonSchemaGenerator"
600626
]

0 commit comments

Comments
 (0)