Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstrings in Clojure are counted as code #229

Closed
rrrnld opened this issue May 24, 2018 · 1 comment
Closed

Docstrings in Clojure are counted as code #229

rrrnld opened this issue May 24, 2018 · 1 comment
Assignees

Comments

@rrrnld
Copy link

rrrnld commented May 24, 2018

I know that there are multiple issues regarding this problem, but always mentioning python as an example (#100, #185). I thought it would be worth noting that the same problem exists in Clojure:

(defn hello-world
  "I am documenting this function"
  ;; I am a comment
  (println "I am a string"))

Output of tokei:

-------------------------------------------------------------------------------
 Language            Files        Lines         Code     Comments       Blanks
-------------------------------------------------------------------------------
 Clojure                 1            4            3            1            0
-------------------------------------------------------------------------------
 Total                   1            4            3            1            0
-------------------------------------------------------------------------------
@XAMPPRocky XAMPPRocky self-assigned this Jun 18, 2018
@XAMPPRocky
Copy link
Owner

Thank you for this issue, unlike the python issues I don't think tokei can correctly count Clojure doc comments as there is nothing syntactically different from a regular string, and it would require a parser in order to differentiate between them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants