Skip to content

Commit

Permalink
Add info about Joker known-macros, fixing #5
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Apr 6, 2018
1 parent fa08a46 commit a1012a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ The extension comes with autolinting disabled. This is because you will need to
"clojure4vscode.lintOnSave": true
```

### Unrecognized macros
One thing to note with this linter is that it doesn't do a full scan of all files and does not recognize macros it doesn't know about. Leading to false complains about `Unable to resolve symbol x`. You might now and then tell it about macros you use. Create a `.joker` file somewhere in the path from the root of your project to where you are using the macro (I prefer to have it in the project root), and add:
```
{:known-macros [some-ns/some-macro some-other-ns/some-other-macro]}
```
Read more about Joker's linter mode here: https://github.com/candid82/joker#linter-mode

## Dependencies

(See also about Autolinting above.)
Expand Down

0 comments on commit a1012a1

Please sign in to comment.