Skip to content

Commit 405849c

Browse files
authored
Add [neveredit] rule to protect write once files from modification (#43)
Hackathon project - to add new rule to protect files that should not get edited. other things: By guidance since we build an executable cargo.lock should be checked in. so i checked that in.
1 parent 9125c2a commit 405849c

File tree

16 files changed

+1857
-77
lines changed

16 files changed

+1857
-77
lines changed

.config/toolbox.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Configuration for trunk toolbox. Generate default by calling 'trunk-toolbox genconfig'
22

33
[ifchange]
4-
enabled = true
4+
enabled = false
55

66
[donotland]
7-
enabled = true
7+
enabled = false
88

99
[todo]
10+
enabled = false
11+
12+
[neveredit]
1013
enabled = true
14+
paths = [] # paths to protect from modification

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# will have compiled files and executables
33
/target/
44

5-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7-
Cargo.lock
8-
95
# These are backup files generated by rustfmt
106
**/*.rs.bk

.trunk/trunk.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.1
22
plugins:
33
sources:
44
- id: trunk
5-
ref: v1.4.3
5+
ref: v1.6.2
66
uri: https://github.com/trunk-io/plugins
77
runtimes:
88
enabled:
@@ -11,13 +11,13 @@ runtimes:
1111
- node@18.12.1
1212
- rust@1.76.0
1313
cli:
14-
version: 1.20.1
14+
version: 1.22.3
1515
api:
1616
address: api.trunk-staging.io:8443
1717

1818
tools:
1919
enabled:
20-
- gh@2.44.1
20+
- gh@2.55.0
2121
runtimes:
2222
- rust
2323
lint:
@@ -32,7 +32,7 @@ lint:
3232
batch: true
3333
success_codes: [0]
3434
read_output_from: tmp_file
35-
disable_upstream: true
35+
disable_upstream: false
3636
version_command:
3737
parse_regex: ${semver}
3838
run: trunk-toolbox --version
@@ -45,21 +45,21 @@ lint:
4545
- tests/**
4646

4747
enabled:
48-
- shellcheck@0.9.0
48+
- shellcheck@0.10.0
4949
- shfmt@3.6.0
50-
- trunk-toolbox@0.2.0
51-
- checkov@3.2.26
52-
- trivy@0.49.1
53-
- trufflehog@3.68.2
54-
- oxipng@9.0.0
50+
- trunk-toolbox@0.3.2
51+
- checkov@3.2.238
52+
- trivy@0.54.1
53+
- trufflehog@3.81.9
54+
- oxipng@9.1.2
5555
- yamllint@1.35.1
5656
- git-diff-check
57-
- taplo@0.8.1
58-
- actionlint@1.6.27
57+
- taplo@0.9.3
58+
- actionlint@1.7.1
5959
- clippy@1.76.0
60-
- gitleaks@8.18.2
61-
- markdownlint@0.39.0
62-
- prettier@3.2.5
60+
- gitleaks@8.18.4
61+
- markdownlint@0.41.0
62+
- prettier@3.3.3
6363
- rustfmt@1.76.0
6464
actions:
6565
enabled:

0 commit comments

Comments
 (0)