Skip to content

Commit

Permalink
Add [neveredit] rule to protect write once files from modification (#43)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EliSchleifer authored Aug 30, 2024
1 parent 9125c2a commit 405849c
Show file tree
Hide file tree
Showing 16 changed files with 1,857 additions and 77 deletions.
8 changes: 6 additions & 2 deletions .config/toolbox.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Configuration for trunk toolbox. Generate default by calling 'trunk-toolbox genconfig'

[ifchange]
enabled = true
enabled = false

[donotland]
enabled = true
enabled = false

[todo]
enabled = false

[neveredit]
enabled = true
paths = [] # paths to protect from modification
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
30 changes: 15 additions & 15 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 0.1
plugins:
sources:
- id: trunk
ref: v1.4.3
ref: v1.6.2
uri: https://github.com/trunk-io/plugins
runtimes:
enabled:
Expand All @@ -11,13 +11,13 @@ runtimes:
- [email protected]
- [email protected]
cli:
version: 1.20.1
version: 1.22.3
api:
address: api.trunk-staging.io:8443

tools:
enabled:
- gh@2.44.1
- gh@2.55.0
runtimes:
- rust
lint:
Expand All @@ -32,7 +32,7 @@ lint:
batch: true
success_codes: [0]
read_output_from: tmp_file
disable_upstream: true
disable_upstream: false
version_command:
parse_regex: ${semver}
run: trunk-toolbox --version
Expand All @@ -45,21 +45,21 @@ lint:
- tests/**

enabled:
- shellcheck@0.9.0
- shellcheck@0.10.0
- [email protected]
- trunk-toolbox@0.2.0
- [email protected].26
- trivy@0.49.1
- trufflehog@3.68.2
- oxipng@9.0.0
- trunk-toolbox@0.3.2
- [email protected].238
- trivy@0.54.1
- trufflehog@3.81.9
- oxipng@9.1.2
- [email protected]
- git-diff-check
- taplo@0.8.1
- actionlint@1.6.27
- taplo@0.9.3
- actionlint@1.7.1
- [email protected]
- [email protected].2
- markdownlint@0.39.0
- prettier@3.2.5
- [email protected].4
- markdownlint@0.41.0
- prettier@3.3.3
- [email protected]
actions:
enabled:
Expand Down
Loading

0 comments on commit 405849c

Please sign in to comment.