I ran across a very cool static analysis tool called kibit. I ran it against our code and got the following. If you notice one of these in something you did then change it if you want. Or I might later... whatever.
At src/board_ultimatum/engine/model.clj:28:
Consider using:
At src/board_ultimatum/engine/model.clj:null:
Consider using:
time-map
instead of:
#(time-map %)
At src/board_ultimatum/engine/model.clj:null:
Consider using:
:value
instead of:
#(:value %)
At src/board_ultimatum/engine/model.clj:69:
Consider using:
:tags
instead of:
(fn [g] (:tags g))
At src/board_ultimatum/engine/model.clj:142:
Consider using:
(neg? (.indexOf (name num-key) "+"))
instead of:
(< (.indexOf (name num-key) "+") 0)
At src/board_ultimatum/engine/model.clj:null:
Consider using:
recommended-num-player-votes
instead of:
#(recommended-num-player-votes %1 %2)
At src/board_ultimatum/engine/model.clj:193:
Consider using:
(pos? (count players))
instead of:
(> (count players) 0)
At src/board_ultimatum/engine/model.clj:228:
Consider using:
(pos? (:score p1__224194#))
instead of:
(> (:score p1__224194#) 0)
At src/board_ultimatum/engine/model.clj:237:
Consider using:
(pos? (count selected-times))
instead of:
(> (count selected-times) 0)
At src/board_ultimatum/engine/model.clj:243:
Consider using:
(pos? (count selected-num-players))
instead of:
(> (count selected-num-players) 0)
Check failed -- skipping rest of file
java.lang.RuntimeException: Map literal must contain an even number of forms
At src/board_ultimatum/engine/neural.clj:52:
Consider using:
I ran across a very cool static analysis tool called kibit. I ran it against our code and got the following. If you notice one of these in something you did then change it if you want. Or I might later... whatever.
At src/board_ultimatum/engine/model.clj:28: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:null: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:null: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:69: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:142: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:null: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:193: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:228: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:237: Consider using:
instead of:
At src/board_ultimatum/engine/model.clj:243: Consider using:
instead of:
Check failed -- skipping rest of file java.lang.RuntimeException: Map literal must contain an even number of forms At src/board_ultimatum/engine/neural.clj:52: Consider using:
instead of:
At src/board_ultimatum/engine/neural.clj:54: Consider using:
instead of:
At src/board_ultimatum/engine/neural.clj:60: Consider using:
instead of:
At src/board_ultimatum/engine/neural.clj:66: Consider using:
instead of:
At src/board_ultimatum/engine/neural.clj:66: Consider using:
instead of:
At src/board_ultimatum/engine/neural.clj:66: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:42: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:48: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:201: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:203: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:206: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:207: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:217: Consider using:
instead of:
At src/board_ultimatum/engine/vector_convert.clj:222: Consider using:
instead of:
At src/board_ultimatum/views/common.clj:47: Consider using:
instead of:
At src/board_ultimatum/views/expert.clj:101: Consider using:
instead of:
At src/board_ultimatum/views/expert.clj:216: Consider using:
instead of:
At src/board_ultimatum/views/expert.clj:230: Consider using:
instead of: