fix(lint): do not specify global standard in luacheck command line arguments #39
rust-lint.yml
on: pull_request
Rust Code Linting checks
23s
Annotations
41 warnings
the `Err`-variant returned from this function is very large:
src/parser.rs#L310
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:310:31
|
310 | pub fn parse(source: &str) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L293
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:293:69
|
293 | fn parse_expression(pair: Pair<Rule>, pratt: &PrattParser<Rule>) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L281
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:281:63
|
281 | fn parse_term(pair: Pair<Rule>, pratt: &PrattParser<Rule>) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L270
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:270:6
|
270 | ) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L223
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:223:46
|
223 | fn parse_transform_func(pair: Pair<Rule>) -> ParseResult<Lhs> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L188
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:188:41
|
188 | fn parse_predicate(pair: Pair<Rule>) -> ParseResult<Predicate> {
| ^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L166
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:166:43
|
166 | fn parse_int_literal(pair: Pair<Rule>) -> ParseResult<i64> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L162
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:162:44
|
162 | fn parse_ipv6_literal(pair: Pair<Rule>) -> ParseResult<Ipv6Addr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L159
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:159:44
|
159 | fn parse_ipv4_literal(pair: Pair<Rule>) -> ParseResult<Ipv4Addr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L156
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:156:49
|
156 | fn parse_ipv6_cidr_literal(pair: Pair<Rule>) -> ParseResult<Ipv6Cidr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L153
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:153:49
|
153 | fn parse_ipv4_cidr_literal(pair: Pair<Rule>) -> ParseResult<Ipv4Cidr> {
| ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L126
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:126:46
|
126 | fn parse_rawstr_literal(pair: Pair<Rule>) -> ParseResult<String> {
| ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L110
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:110:43
|
110 | fn parse_str_literal(pair: Pair<Rule>) -> ParseResult<String> {
| ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L93
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:93:35
|
93 | fn parse_rhs(pair: Pair<Rule>) -> ParseResult<Value> {
| ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L76
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:76:35
|
76 | fn parse_lhs(pair: Pair<Rule>) -> ParseResult<Lhs> {
| ^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L73
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:73:37
|
73 | fn parse_ident(pair: Pair<Rule>) -> ParseResult<String> {
| ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L62
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:62:50
|
62 | fn parse_matcher(&mut self, source: &str) -> ParseResult<Expression> {
| ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/parser.rs#L21
warning: the `Err`-variant returned from this function is very large
--> src/parser.rs:21:54
|
21 | fn into_parse_result(self, pair: &Pair<Rule>) -> ParseResult<T>;
| ^^^^^^^^^^^^^^ the `Err`-variant is at least 184 bytes
|
= help: try reducing the size of `parser::pest::error::Error<parser::Rule>`, for example by boxing large elements or replacing it with `Box<parser::pest::error::Error<parser::Rule>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L194
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:194:1
|
194 | / pub unsafe extern "C" fn context_get_result(
195 | | context: &Context,
196 | | uuid_hex: *mut u8,
197 | | matched_field: *const i8,
... |
203 | | capture_values_len: *mut usize,
204 | | ) -> isize {
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L168
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:168:1
|
168 | / pub unsafe extern "C" fn context_add_value(
169 | | context: &mut Context,
170 | | field: *const i8,
171 | | value: &CValue,
172 | | errbuf: *mut u8,
173 | | errbuf_len: *mut usize,
174 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L163
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:163:1
|
163 | pub unsafe extern "C" fn context_free(context: *mut Context) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L158
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:158:1
|
158 | pub unsafe extern "C" fn context_new(schema: &Schema) -> *mut Context {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L136
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:136:1
|
136 | / pub unsafe extern "C" fn router_get_fields(
137 | | router: &Router,
138 | | fields: *mut *const u8,
139 | | fields_len: *mut usize,
140 | | ) -> usize {
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L131
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:131:1
|
131 | pub unsafe extern "C" fn router_execute(router: &Router, context: &mut Context) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L119
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:119:1
|
119 | / pub unsafe extern "C" fn router_remove_matcher(
120 | | router: &mut Router,
121 | | priority: usize,
122 | | uuid: *const i8,
123 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L93
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:93:1
|
93 | / pub unsafe extern "C" fn router_add_matcher(
94 | | router: &mut Router,
95 | | priority: usize,
96 | | uuid: *const i8,
... |
99 | | errbuf_len: *mut usize,
100 | | ) -> bool {
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L87
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:87:1
|
87 | pub unsafe extern "C" fn router_free(router: *mut Router) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L82
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:82:1
|
82 | pub unsafe extern "C" fn router_new(schema: &Schema) -> *mut Router {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L73
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:73:1
|
73 | pub unsafe extern "C" fn schema_add_field(schema: &mut Schema, field: *const i8, typ: Type) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
|
unsafe function's docs miss `# Safety` section:
src/ffi.rs#L68
warning: unsafe function's docs miss `# Safety` section
--> src/ffi.rs:68:1
|
68 | pub unsafe extern "C" fn schema_free(schema: *mut Schema) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::style`
|
`Box::new(_)` of default value:
src/ffi.rs#L64
warning: `Box::new(_)` of default value
--> src/ffi.rs:64:19
|
64 | Box::into_raw(Box::new(Schema::default()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Box::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#box_default
= note: `#[warn(clippy::box_default)]` on by default
|
package `atc-router` is missing `package.categories` metadata:
src/lib.rs#L1
warning: package `atc-router` is missing `package.categories` metadata
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
|
package `atc-router` is missing `package.keywords` metadata:
src/lib.rs#L1
warning: package `atc-router` is missing `package.keywords` metadata
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
= note: `-W clippy::cargo-common-metadata` implied by `-W clippy::cargo`
|
Rust Code Linting checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Code Linting checks
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f, Swatinem/rust-cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|