Skip to content

Commit 12e4ae5

Browse files
committed
lintcheck: explain sources.toml configuration
1 parent 5bbb1bc commit 12e4ae5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

clippy_dev/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,25 @@ where `custom.toml` must be a relative path from the repo root.
2626

2727
The results will then be saved to `lintcheck-logs/custom_logs.toml`.
2828

29+
### configuring the crate sources
30+
The sources to check are saved in a `toml` file.
31+
There are three types of sources.
32+
A crates-io source:
33+
````toml
34+
bitflags = {name = "bitflags", versions = ['1.2.1']}
35+
````
36+
Requires a "name" and one or multiple "versions" to be checked.
37+
38+
A git source:
39+
````toml
40+
puffin = {name = "puffin", git_url = "https://github.com/EmbarkStudios/puffin", git_hash = "02dd4a3"}
41+
````
42+
Requires a name, the url to the repo and unique identifier of a commit, branch or tag which is checked out before linting.
43+
There is no way to always check `HEAD` because that would lead to changing lint-results as the repo would get updated.
44+
If `git_url` or `git_hash` is missing, an error will be thrown.
45+
46+
A local dependency:
47+
````toml
48+
clippy = {name = "clippy", path = "/home/user/clippy"}
49+
````
50+
For when you want to add a repository that is not published yet.

0 commit comments

Comments
 (0)