Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
candid82 committed Feb 5, 2018
1 parent d1f1f2d commit 20e76ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/data/linter_cljx.joke
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
(remove-ns 'joker.os)
(remove-ns 'joker.base64)
(remove-ns 'joker.time)
(remove-ns 'joker.math)
(ns-unmap 'joker.core 'pprint)
(ns-unmap 'user 'pprint)
(ns-unmap 'joker.core 'pr-err)
Expand Down
2 changes: 1 addition & 1 deletion core/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func WarnOnUnusedNamespaces() {
for _, ns := range GLOBAL_ENV.Namespaces {
if !ns.isUsed && !isIgnoredUnsusedNamespace(ns) {
pos := ns.Name.GetInfo()
if pos != nil {
if pos != nil && pos.Filename() != "<joker.core>" {
name := ns.Name.ToString(false)
names = append(names, name)
positions[name] = pos.Position
Expand Down
1 change: 0 additions & 1 deletion tests/run-linter-tests.joke
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
(let [test-dirs (->> (joker.os/ls "tests/linter")
(filter :dir?)
(map :name))
_ (println test-dirs)
pwd (get (joker.os/env) "PWD")]
(doseq [test-dir test-dirs]
(let [dir (str "tests/linter/" test-dir "/")
Expand Down

0 comments on commit 20e76ef

Please sign in to comment.