More editing/formatting configs

This commit is contained in:
Xithrius 2022-09-02 00:03:30 -07:00
parent 77621e90c6
commit 4365fa259c
No known key found for this signature in database
GPG Key ID: DADE524BA67AA52E
5 changed files with 46 additions and 1 deletions

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
root = true
[*]
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.rs]
indent_size = 4

View File

@ -1,4 +1,4 @@
name: audit
name: Audit
on:
workflow_dispatch:

View File

@ -16,3 +16,14 @@ repos:
entry: cargo fmt --
language: rust
types: [ rust ]
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

20
deny.toml Normal file
View File

@ -0,0 +1,20 @@
[advisories]
vulnerability = "deny"
unmaintained = "deny"
yanked = "deny"
notice = "deny"
ignore = []
[bans]
multiple-versions = "deny"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
[licenses]
unlicensed = "deny"
copyleft = "deny"
default = "deny"
allow = ["MIT", "Apache-2.0"]

3
rustfmt.toml Normal file
View File

@ -0,0 +1,3 @@
newline_style = "Unix"
use_try_shorthand = true
use_field_init_shorthand = true