Liking cljdoc? Tell your friends :D

Naming

naming/predicate

EnabledAdded
true0.1

Functions that return a boolean should end in a question mark.

Doesn't verify the kind of function, just checks for anti-patterns in the names.

Examples:

# bad
(defn palindrome-p ...)
(defn is-palindrome ...)

# good
(defn palindrome? ...)

Reference

naming/record-name

EnabledAdded
true0.1

Records should use PascalCase.

Examples:

# bad
(defrecord foo [a b c])

# good
(defrecord Foo [a b c])

Reference

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close