-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
3,426 additions
and
1,546 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
*.zip | ||
*.hxproj | ||
.haxelib/ | ||
.out/ | ||
|
||
check-style-report.json | ||
check-style-report.xml | ||
check-style-report.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
##Limitations of checkstyle checks | ||
|
||
checkstyle has three types of checks: | ||
|
||
1. line based | ||
2. token based | ||
3. AST based | ||
|
||
Which check uses what type is not instantly clear to the user. | ||
|
||
###line based checks | ||
* scan files line by line | ||
* usually applies a regex to each line | ||
* tries to detect line separator by finding first occurrence of \r, \n or \r\n | ||
* supports all features of Haxe | ||
* can work with files that won't compile | ||
|
||
###token based checks | ||
* relies on HaxeLexer from haxeparser library | ||
* uses work in progress version of token tree builder | ||
- might build incomplete / incorrect tree structure resulting in false positives / negatives | ||
- might result in endless loops or stacktraces | ||
- can be turned off, by not using token tree based checks (excluding them via config.json) | ||
* has position information for all nodes | ||
* access to parent and child nodes | ||
* should support all features of Haxe | ||
* easy search and filter for specific node types | ||
* can work with files that won't compile (limited) | ||
|
||
###AST based checks | ||
* relies on HaxeParser from haxeparser library | ||
* partial support for #if, #else, #elseif (only active conditionals) | ||
* macro support unclear (needs to be confirmed / checked) | ||
* no parent info for a given Expr or ComplexType | ||
* position info available only for a subset of all AST nodes | ||
* files must compile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-cmd haxelib newrepo | ||
-cmd haxelib install haxeparser 3.2.0 || true | ||
-cmd haxelib install compiletime 2.6.0 || true | ||
-cmd haxelib install hxargs 3.0.0 || true | ||
-cmd haxelib install hxtelemetry 0.3.3 || true | ||
|
||
--next | ||
|
||
-cp resources | ||
-cp src | ||
-lib haxeparser | ||
-lib compiletime | ||
-lib hxargs | ||
-lib hxtelemetry | ||
|
||
--each | ||
|
||
-D HXCPP_STACK_TRACE | ||
-D HXCPP_TELEMETRY | ||
|
||
-main checkstyle.Main | ||
-cpp out |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.