feat(ci): Add Forgejo CI/CD pipeline for linting and building
- Automated linting with rustfmt and clippy - Automated building and testing - Automated Docker image builds - Clippy and rustfmt configuration files
This commit is contained in:
parent
c69d3be302
commit
775f05d696
4 changed files with 238 additions and 0 deletions
27
backend/clippy.toml
Normal file
27
backend/clippy.toml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Clippy configuration
|
||||
|
||||
# Allow certain warnings for development
|
||||
ambiguous-glob-reexports = "allow"
|
||||
cast-lossless = "allow"
|
||||
doc-markdown = "warn"
|
||||
empty-structs-with-brackets = "warn"
|
||||
explicit-auto-deref = "warn"
|
||||
if-then-some-else-none = "warn"
|
||||
match-wildcard-for-single-variants = "warn"
|
||||
missing-errors-doc = "warn"
|
||||
missing-panics-doc = "warn"
|
||||
missing-safety-doc = "warn"
|
||||
semicolon-if-nothing-returned = "warn"
|
||||
unreadable-literal = "warn"
|
||||
unused-self = "warn"
|
||||
used-underscore-binding = "warn"
|
||||
|
||||
# Deny certain lints
|
||||
missing-docs-in-private-items = "warn"
|
||||
unwrap-used = "warn"
|
||||
expect-used = "warn"
|
||||
indexing-slicing = "warn"
|
||||
panic = "deny"
|
||||
unimplemented = "warn"
|
||||
todo = "warn"
|
||||
unreachable = "warn"
|
||||
15
backend/rustfmt.toml
Normal file
15
backend/rustfmt.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Rustfmt configuration
|
||||
|
||||
max_width = 100
|
||||
hard_tabs = false
|
||||
tab_spaces = 4
|
||||
newline_style = "Unix"
|
||||
use_small_heuristics = "Default"
|
||||
reorder_imports = true
|
||||
reorder_modules = true
|
||||
remove_nested_parens = true
|
||||
edition = "2021"
|
||||
merge_derives = true
|
||||
use_try_shorthand = true
|
||||
use_field_init_shorthand = true
|
||||
force_explicit_abi = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue