cargo-sonar 0.1.3

Helper to transform reports from Rust tooling for code quality, into valid Sonar report
{ "reason": "compiler-artifact", "package_id": "proc-macro2 1.0.29 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/Cargo.toml", "target": { "kind": [ "custom-build" ], "crate_types": [ "bin" ], "name": "build-script-build", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/build.rs", "edition": "2018", "doc": false, "doctest": false, "test": false }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "default", "proc-macro" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/build/proc-macro2-31aca1ae4c83dcab/build-script-build" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "unicode-xid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.2/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "unicode-xid", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.2/src/lib.rs", "edition": "2015", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "default" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libunicode_xid-5ecee5fca1210f52.rlib", "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libunicode_xid-5ecee5fca1210f52.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "syn 1.0.76 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.76/Cargo.toml", "target": { "kind": [ "custom-build" ], "crate_types": [ "bin" ], "name": "build-script-build", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.76/build.rs", "edition": "2018", "doc": false, "doctest": false, "test": false }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "clone-impls", "extra-traits", "full", "parsing", "printing", "proc-macro", "quote", "visit", "visit-mut" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/build/syn-fd8409c73eb4967c/build-script-build" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/Cargo.toml", "target": { "kind": [ "custom-build" ], "crate_types": [ "bin" ], "name": "build-script-build", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/build.rs", "edition": "2015", "doc": false, "doctest": false, "test": false }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/build/log-b5465a160e089475/build-script-build" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "lazy_static", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs", "edition": "2015", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/liblazy_static-cc03ae82f95c691d.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "cfg-if 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "cfg-if", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libcfg_if-1ea64960760a6d98.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "pin-project-lite 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.7/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "pin-project-lite", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.7/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libpin_project_lite-9947e3c941c54187.rmeta" ], "executable": null, "fresh": true }
{ "reason": "build-script-executed", "package_id": "proc-macro2 1.0.29 (registry+https://github.com/rust-lang/crates.io-index)", "linked_libs": [], "linked_paths": [], "cfgs": [ "lexerror_display", "hygiene", "literal_from_str", "use_proc_macro", "wrap_proc_macro" ], "env": [], "out_dir": "/home/woshilapin/projects/kisio/skip_error/target/debug/build/proc-macro2-572afc0ee7d05972/out" }
{ "reason": "build-script-executed", "package_id": "syn 1.0.76 (registry+https://github.com/rust-lang/crates.io-index)", "linked_libs": [], "linked_paths": [], "cfgs": [ "syn_disable_nightly_tests" ], "env": [], "out_dir": "/home/woshilapin/projects/kisio/skip_error/target/debug/build/syn-96775feb33830349/out" }
{ "reason": "build-script-executed", "package_id": "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "linked_libs": [], "linked_paths": [], "cfgs": [ "atomic_cas", "has_atomics" ], "env": [], "out_dir": "/home/woshilapin/projects/kisio/skip_error/target/debug/build/log-3e4e1820c1c69ae5/out" }
{ "reason": "compiler-artifact", "package_id": "proc-macro2 1.0.29 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "proc-macro2", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "default", "proc-macro" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libproc_macro2-06e97d6f0dfb172f.rlib", "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libproc_macro2-06e97d6f0dfb172f.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "log 0.4.14 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "log", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/src/lib.rs", "edition": "2015", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/liblog-0ed70860e3168808.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "tracing-core 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-core-0.1.19/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "tracing-core", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-core-0.1.19/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "lazy_static", "std" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libtracing_core-b1bbebf8f69aaf40.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "quote 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "quote", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "default", "proc-macro" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libquote-1b457121b46aa6b0.rlib", "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libquote-1b457121b46aa6b0.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "syn 1.0.76 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.76/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "syn", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.76/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "clone-impls", "extra-traits", "full", "parsing", "printing", "proc-macro", "quote", "visit", "visit-mut" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libsyn-3d3c7df3e9051716.rlib", "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libsyn-3d3c7df3e9051716.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "tracing-attributes 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-attributes-0.1.15/Cargo.toml", "target": { "kind": [ "proc-macro" ], "crate_types": [ "proc-macro" ], "name": "tracing-attributes", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-attributes-0.1.15/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libtracing_attributes-9940603a542c7398.so" ], "executable": null, "fresh": true }
{ "reason": "compiler-artifact", "package_id": "tracing 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", "manifest_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.26/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "tracing", "src_path": "/home/woshilapin/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.26/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "attributes", "default", "log", "std", "tracing-attributes" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libtracing-be540ffa676d2c78.rmeta" ], "executable": null, "fresh": true }
{ "reason": "compiler-message", "package_id": "skip_error 3.1.1 (path+file:///home/woshilapin/projects/kisio/skip_error)", "manifest_path": "/home/woshilapin/projects/kisio/skip_error/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "skip_error", "src_path": "/home/woshilapin/projects/kisio/skip_error/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "message": { "rendered": "warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`\n   --> src/lib.rs:270:17\n    |\n270 | /                 match self.log_level {\n271 | |                     Some(log_level) => {\n272 | |                         __log!(_error, log_level);\n273 | |                     }\n274 | |                     None => {}\n275 | |                 }\n    | |_________________^\n    |\n    = note: `#[warn(clippy::single_match)]` on by default\n    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match\nhelp: try this\n    |\n270 |                 if let Some(log_level) = self.log_level {\n271 |                     __log!(_error, log_level);\n272 |                 }\n    |\n\n", "children": [ { "children": [], "code": null, "level": "note", "message": "`#[warn(clippy::single_match)]` on by default", "rendered": null, "spans": [] }, { "children": [], "code": null, "level": "help", "message": "for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match", "rendered": null, "spans": [] }, { "children": [], "code": null, "level": "help", "message": "try this", "rendered": null, "spans": [ { "byte_end": 9066, "byte_start": 8881, "column_end": 18, "column_start": 17, "expansion": null, "file_name": "src/lib.rs", "is_primary": true, "label": null, "line_end": 275, "line_start": 270, "suggested_replacement": "if let Some(log_level) = self.log_level {\n                    __log!(_error, log_level);\n                }", "suggestion_applicability": "HasPlaceholders", "text": [ { "highlight_end": 39, "highlight_start": 17, "text": "                match self.log_level {" }, { "highlight_end": 41, "highlight_start": 1, "text": "                    Some(log_level) => {" }, { "highlight_end": 51, "highlight_start": 1, "text": "                        __log!(_error, log_level);" }, { "highlight_end": 22, "highlight_start": 1, "text": "                    }" }, { "highlight_end": 31, "highlight_start": 1, "text": "                    None => {}" }, { "highlight_end": 18, "highlight_start": 1, "text": "                }" } ] } ] } ], "code": { "code": "clippy::single_match", "explanation": null }, "level": "warning", "message": "you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`", "spans": [ { "byte_end": 9066, "byte_start": 8881, "column_end": 18, "column_start": 17, "expansion": null, "file_name": "src/lib.rs", "is_primary": true, "label": null, "line_end": 275, "line_start": 270, "suggested_replacement": null, "suggestion_applicability": null, "text": [ { "highlight_end": 39, "highlight_start": 17, "text": "                match self.log_level {" }, { "highlight_end": 41, "highlight_start": 1, "text": "                    Some(log_level) => {" }, { "highlight_end": 51, "highlight_start": 1, "text": "                        __log!(_error, log_level);" }, { "highlight_end": 22, "highlight_start": 1, "text": "                    }" }, { "highlight_end": 31, "highlight_start": 1, "text": "                    None => {}" }, { "highlight_end": 18, "highlight_start": 1, "text": "                }" } ] } ] } }
{ "reason": "compiler-message", "package_id": "skip_error 3.1.1 (path+file:///home/woshilapin/projects/kisio/skip_error)", "manifest_path": "/home/woshilapin/projects/kisio/skip_error/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "skip_error", "src_path": "/home/woshilapin/projects/kisio/skip_error/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "message": { "rendered": "warning: used binding `_error` which is prefixed with an underscore. A leading underscore signals that a binding will not be used\n   --> src/lib.rs:272:32\n    |\n272 |                         __log!(_error, log_level);\n    |                                ^^^^^^\n    |\n    = note: `-W clippy::used-underscore-binding` implied by `-W clippy::pedantic`\n    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding\n\n", "children": [ { "children": [], "code": null, "level": "note", "message": "`-W clippy::used-underscore-binding` implied by `-W clippy::pedantic`", "rendered": null, "spans": [] }, { "children": [], "code": null, "level": "help", "message": "for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding", "rendered": null, "spans": [] } ], "code": { "code": "clippy::used_underscore_binding", "explanation": null }, "level": "warning", "message": "used binding `_error` which is prefixed with an underscore. A leading underscore signals that a binding will not be used", "spans": [ { "byte_end": 8982, "byte_start": 8976, "column_end": 38, "column_start": 32, "expansion": null, "file_name": "src/lib.rs", "is_primary": true, "label": null, "line_end": 272, "line_start": 272, "suggested_replacement": null, "suggestion_applicability": null, "text": [ { "highlight_end": 38, "highlight_start": 32, "text": "                        __log!(_error, log_level);" } ] } ] } }
{ "reason": "compiler-message", "package_id": "skip_error 3.1.1 (path+file:///home/woshilapin/projects/kisio/skip_error)", "manifest_path": "/home/woshilapin/projects/kisio/skip_error/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "skip_error", "src_path": "/home/woshilapin/projects/kisio/skip_error/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "message": { "rendered": "warning: used binding `_error` which is prefixed with an underscore. A leading underscore signals that a binding will not be used\n   --> src/lib.rs:272:32\n    |\n272 |                         __log!(_error, log_level);\n    |                                ^^^^^^\n    |\n    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding\n\n", "children": [ { "children": [], "code": null, "level": "help", "message": "for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding", "rendered": null, "spans": [] } ], "code": { "code": "clippy::used_underscore_binding", "explanation": null }, "level": "warning", "message": "used binding `_error` which is prefixed with an underscore. A leading underscore signals that a binding will not be used", "spans": [ { "byte_end": 8982, "byte_start": 8976, "column_end": 38, "column_start": 32, "expansion": null, "file_name": "src/lib.rs", "is_primary": true, "label": null, "line_end": 272, "line_start": 272, "suggested_replacement": null, "suggestion_applicability": null, "text": [ { "highlight_end": 38, "highlight_start": 32, "text": "                        __log!(_error, log_level);" } ] } ] } }
{ "reason": "compiler-message", "package_id": "skip_error 3.1.1 (path+file:///home/woshilapin/projects/kisio/skip_error)", "manifest_path": "/home/woshilapin/projects/kisio/skip_error/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "skip_error", "src_path": "/home/woshilapin/projects/kisio/skip_error/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "message": { "rendered": "warning: 3 warnings emitted\n\n", "children": [], "code": null, "level": "warning", "message": "3 warnings emitted", "spans": [] } }
{ "reason": "compiler-artifact", "package_id": "skip_error 3.1.1 (path+file:///home/woshilapin/projects/kisio/skip_error)", "manifest_path": "/home/woshilapin/projects/kisio/skip_error/Cargo.toml", "target": { "kind": [ "lib" ], "crate_types": [ "lib" ], "name": "skip_error", "src_path": "/home/woshilapin/projects/kisio/skip_error/src/lib.rs", "edition": "2018", "doc": true, "doctest": true, "test": true }, "profile": { "opt_level": "0", "debuginfo": 2, "debug_assertions": true, "overflow_checks": true, "test": false }, "features": [ "log", "tracing" ], "filenames": [ "/home/woshilapin/projects/kisio/skip_error/target/debug/deps/libskip_error-5815ffa21a11569d.rmeta" ], "executable": null, "fresh": true }
{ "reason": "build-finished", "success": true }