Closed ce-bo closed 6 months ago
I am a bit confused here. If I understand correctly, this is distinct from #6 because it does not refer to the concrete expression in a code file, but to the a type of expression we count for in general? So we should find out and document what expressions exactly do get parsed e.g. as "function_declaration" by tree-sitter if we count "function_declaration"? Could be a rather long list if there are so many ways to define a function, also requiring to look into the grammar to ensure that we have not missed to mention any kind of syntax to define a function.
Correct, this is distsinct to #6. It refers to real code examples, that are supported. I added an example on how it should look like. Let's discuss my idea. I think we as developers benefit from it as well as users. It makes it obvious which language features are already supported and which not. This leads to full transparency.
To get a feeling we maybe could start with one programming language and metric as kind of a PoC.
Splitted #202 for TypeScript and TSX
One file per language, linked in the readme
Splitted #210 to document TS/TSX
Splitted #243 to document Java
Splitted #262 for JavaScript
Splitted #275 for Python
Splitted #277 for PHP
Splitted #295 for C#
Splitted #310 for Go
Splitted #311 for Kotlin
Splitted #326 for Bash, #327 for Ruby, #328 for Rust and #329 for JSON and YAML
I close this issue because all currently supported languages are documented
As a Software Auditor, I want to exactly know which language expression has been counted for a metric, so that I can explain results in detail.
I suggest to add a list of supported language feature examples per metric. Similar to what Sonar is showing. The following examples makes clear what exactly is considered for a metric of a certain language:
Java:
for(var item : items)
,for (int i = 0; i < 10; i++)
, etc; Not supported: ...classes
, ....; Not Supported:not_supported_type
(reason)