Skip to content

imp(all): Add Nix flake for dev environment #81

imp(all): Add Nix flake for dev environment

imp(all): Add Nix flake for dev environment #81

Triggered via pull request November 7, 2024 00:00
Status Success
Total duration 41s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Clippy
clippy-action doesn't have permissions to view Check Runs, disabling!
Clippy
Resource not accessible by integration
the `Err`-variant returned from this function is very large: src/lib.rs#L12
warning: the `Err`-variant returned from this function is very large --> src/cli_config.rs:12:63 | 12 | pub fn adjust_config(config_subcommand: ConfigSubcommands) -> Result<(), errors::CLIError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:10:5 | 10 | AddError(#[from] AddError), | -------------------------- the variant `AddError` contains at least 128 bytes 11 | #[error("failed to create pr: {0}")] 12 | CreateError(#[from] CreateError), | -------------------------------- the largest variant contains at least 136 bytes 13 | #[error("failed to initialize the changelog settings: {0}")] 14 | InitError(#[from] InitError), | ---------------------------- the variant `InitError` contains at least 128 bytes | = help: try reducing the size of `errors::CLIError`, for example by boxing large elements or replacing it with `Box<errors::CLIError>` = 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
the `Err`-variant returned from this function is very large: src/lib.rs#L21
warning: the `Err`-variant returned from this function is very large --> src/github.rs:21:62 | 21 | pub fn extract_pr_info(config: &Config, pr: &PullRequest) -> Result<PRInfo, GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = 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/lib.rs#L63
warning: the `Err`-variant returned from this function is very large --> src/github.rs:63:45 | 63 | pub fn get_authenticated_github_client() -> Result<Octocrab, GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
match can be simplified with `.unwrap_or_default()`: src/lib.rs#L83
warning: match can be simplified with `.unwrap_or_default()` --> src/github.rs:83:20 | 83 | let octocrab = match get_authenticated_github_client() { | ____________________^ 84 | | Ok(oc) => oc, 85 | | _ => octocrab::Octocrab::default(), 86 | | }; | |_____^ help: replace it with: `get_authenticated_github_client().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
the `Err`-variant returned from this function is very large: src/lib.rs#L111
warning: the `Err`-variant returned from this function is very large --> src/github.rs:111:34 | 111 | fn get_current_local_branch() -> Result<String, GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = 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/lib.rs#L123
warning: the `Err`-variant returned from this function is very large --> src/github.rs:123:45 | 123 | pub fn push_to_origin(branch_name: &str) -> Result<(), GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = 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/lib.rs#L136
warning: the `Err`-variant returned from this function is very large --> src/github.rs:136:24 | 136 | pub fn get_origin() -> Result<String, GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = 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/lib.rs#L166
warning: the `Err`-variant returned from this function is very large --> src/github.rs:166:41 | 166 | pub fn get_git_info(config: &Config) -> Result<GitInfo, GitHubError> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/errors.rs:124:5 | 124 | GitHub(#[from] octocrab::Error), | ------------------------------- the largest variant contains at least 128 bytes | = help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err