-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from Alexhuszagh/deny_lint
Disallow I/O methods via clippy.
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
avoid-breaking-exported-api = false | ||
disallowed-macros = [ | ||
# Can also use an inline table with a `path` key. | ||
{ path = "std::print", reason = "no IO allowed" }, | ||
{ path = "std::println", reason = "no IO allowed" }, | ||
{ path = "std::format", reason = "no string allocation allowed" }, | ||
{ path = "std::debug", reason = "debugging macros should not be present in any release" }, | ||
] | ||
disallowed-methods = [ | ||
{ path = "std::io::stdout", reason = "no IO allowed" }, | ||
{ path = "std::io::stdin", reason = "no IO allowed" }, | ||
{ path = "std::io::stderr", reason = "no IO allowed" }, | ||
] | ||
disallowed-types = [ | ||
{ path = "std::io::File", reason = "no IO allowed" }, | ||
{ path = "std::io::BufReader", reason = "need our own abstractions for reading/writing" }, | ||
{ path = "std::io::BufWriter", reason = "need our own abstractions for reading/writing" }, | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
avoid-breaking-exported-api = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
avoid-breaking-exported-api = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
avoid-breaking-exported-api = false |