Compare commits

..

1 Commits

Author SHA1 Message Date
8181cc823e chore: enable Clippy pedantic lints
Some checks failed
actionlint check / actionlint check (pull_request) Successful in 6s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 7s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 6s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 10s
GitLeaks check / GitLeaks check (pull_request) Successful in 14s
hadolint check / hadolint check (pull_request) Successful in 14s
Prettier check / Prettier check (pull_request) Successful in 40s
markdownlint check / markdownlint check (pull_request) Successful in 43s
htmlhint check / htmlhint check (pull_request) Successful in 51s
checkov check / checkov check (pull_request) Successful in 1m35s
Stylelint check / Stylelint check (pull_request) Successful in 29s
ShellCheck check / ShellCheck check (pull_request) Successful in 31s
yamllint check / yamllint check (pull_request) Successful in 35s
Rust check / Rust check (pull_request) Failing after 2m1s
2026-02-09 19:50:21 +01:00
4 changed files with 11 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
#![warn(clippy::pedantic)]
#![allow(clippy::unused_async)]
// TODO: Enable once false positives are fixed.
#![allow(clippy::assigning_clones)]
mod components;
mod dotenv;

View File

@@ -41,6 +41,7 @@ pub enum Category {
#[cfg(feature = "server")]
impl Category {
pub fn eq_sql_predicate(&self) -> Box<dyn BoxableExpression<tasks::table, Pg, SqlType = Bool>> {
#![allow(clippy::wildcard_imports)]
use crate::schema::tasks::dsl::*;
match self {

View File

@@ -1,3 +1,6 @@
// For Diesel DSL.
#![allow(clippy::wildcard_imports)]
#[cfg(feature = "server")]
pub(crate) mod database_connection;
pub(crate) mod projects;

View File

@@ -138,7 +138,7 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task> {
} = &mut new_task.category
{
match reoccurrence.interval {
ReoccurrenceInterval::Day => *date = *date + Days::new(reoccurrence.length as u64),
ReoccurrenceInterval::Day => *date = *date + Days::new(u64::from(reoccurrence.length)),
ReoccurrenceInterval::Month | ReoccurrenceInterval::Year => {
*date = *date
+ Months::new(
@@ -153,12 +153,12 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task> {
date.year(),
date.month(),
reoccurrence.start_date.day().min(
Month::try_from(date.month() as u8)
u32::from(Month::try_from(u8::try_from(date.month()).unwrap())
.unwrap()
.length(date.year()) as u32,
.length(date.year())),
),
)
.unwrap()
.unwrap();
}
}
restore_subtasks_of_task(task_id).await?;