Skip to content

Commit fedfbb9

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

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

clippy_dev/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,26 @@ 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,
43+
branch or tag which is checked out before linting.
44+
There is no way to always check `HEAD` because that would lead to changing lint-results as the repo would get updated.
45+
If `git_url` or `git_hash` is missing, an error will be thrown.
46+
47+
A local dependency:
48+
````toml
49+
clippy = {name = "clippy", path = "/home/user/clippy"}
50+
````
51+
For when you want to add a repository that is not published yet.

0 commit comments

Comments
 (0)