This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
warnings as errors #583
Merged
Merged
warnings as errors #583
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
90a034f
warnings as errors
eauge 79dea7d
address fmt errors
eauge 7dad571
fix fmt issues
eauge 526fa24
fix for tests
eauge 34fa6c3
remove deny warning
eauge fb8e23f
readd key manager
eauge 18a22a9
fix unbound variable use
eauge edba5ee
fix lint issues
eauge 201aff5
Merge branch 'master' of github.com:oasislabs/runtime-ethereum into e…
eauge d453276
address PR comments
eauge b3d38a3
remove dependencies
eauge 2071cdc
key manager not undead code
eauge e876929
remove allow dead code
eauge 69aad5d
Merge branch 'master' of github.com:oasislabs/runtime-ethereum into e…
eauge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,32 @@ | ||
# | ||
# list of lints that will be used to compile the code | ||
# elements after a '#' will be ignored | ||
# | ||
bad-style | ||
const-err | ||
dead-code | ||
improper-ctypes | ||
legacy-directory-ownership | ||
non-shorthand-field-patterns | ||
no-mangle-generic-items | ||
overflowing-literals | ||
path-statements | ||
patterns-in-fns-without-body | ||
plugin-as-library | ||
private-in-public | ||
safe-extern-statics | ||
unconditional-recursion | ||
unions-with-drop-fields | ||
# unused | ||
unused-allocation | ||
unused-comparisons | ||
unused-parens | ||
while-true | ||
# missing-debug-implementations | ||
# missing-docs | ||
# trivial-casts | ||
# trivial-numeric-casts | ||
# unused-extern-crates | ||
# unused-import-braces | ||
# unused-qualifications | ||
# unused-results |
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
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,3 +1,5 @@ | ||
//! Build crate for the ekiden api. | ||
|
||
extern crate ekiden_tools; | ||
|
||
fn main() { | ||
|
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,5 +1,4 @@ | ||
extern crate protobuf; | ||
extern crate serde; | ||
|
||
#[macro_use] | ||
extern crate serde_derive; | ||
|
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,3 +1,5 @@ | ||||||
//! build crate for the ekiden runtime based enclave | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
extern crate ekiden_edl; | ||||||
extern crate ekiden_tools; | ||||||
|
||||||
|
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
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
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
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
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 |
---|---|---|
|
@@ -6,12 +6,8 @@ authors = ["Oasis Labs Inc. <[email protected]>", "Parity Technologies <admin@p | |
|
||
[dependencies] | ||
log = "0.4" | ||
env_logger = "0.4" | ||
rustc-hex = "1.0" | ||
parking_lot = "0.5" | ||
rayon = "1.0" | ||
regex = "0.2" | ||
toml = "0.4" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
serde_derive = "1.0" | ||
|
@@ -21,7 +17,6 @@ ctrlc = { git = "https://github.com/paritytech/rust-ctrlc.git" } | |
jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
jsonrpc-http-server = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
jsonrpc-ws-server = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
jsonrpc-ipc-server = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
jsonrpc-macros = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
jsonrpc-pubsub = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-1.11" } | ||
lazy_static = "1.0.1" | ||
|
@@ -32,18 +27,12 @@ ethcore-transaction = { git = "https://github.com/oasislabs/parity", branch = "e | |
ethereum-types = { git = "https://github.com/oasislabs/primitives", branch = "ekiden" } | ||
rlp = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
rlp_compress = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
parity-machine = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
parity-reactor = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
parity-rpc = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
path = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
keccak-hash = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
kvdb = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
journaldb = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
mem = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
evm = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
common-types = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
vm = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
util-error = { git = "https://github.com/oasislabs/parity", branch = "ekiden" } | ||
|
||
## Common functionality between runtime and gateway | ||
runtime-ethereum-common = { path = "../common" } | ||
|
@@ -56,7 +45,6 @@ ekiden-runtime-client = { git = "https://github.com/oasislabs/ekiden", branch = | |
ekiden-core = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-db-trusted = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-instrumentation = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-rpc-client = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-storage-base = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-tracing = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
ekiden-keymanager-client = { git = "https://github.com/oasislabs/ekiden", branch = "master" } | ||
|
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity is this an exhaustive list? I assume not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got the list from here https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md. It's not exhaustive since rust still adds/deprecates lints with quite some frequency. Based on that post, it looks like this is a reasonable set. Let me know if there's any other lint that you think should be added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is great to start. We can add/subtract as necessary in the future.