-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Bug report | ||
about: Found an issue? Please let us know! | ||
title: "[BUG:]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Found an issue? Please let us know! | ||
|
||
<!-- Please provide a description of the bug you found here --> | ||
|
||
### Please tick the applicable box(es) regarding the kind of bug you found: | ||
|
||
<!-- Please note that bugs regarding the CLI and the core functionality of Nester receive priority. --> | ||
|
||
- [ ] Broken feature | ||
- [ ] Wrong documentation | ||
- [ ] Broken dependency | ||
|
||
### Steps to reproduce | ||
|
||
<!-- Please provide a detailed description of steps we have to take to reproduce your issue. | ||
Please be aware that bugs which cannot be reproduced cannot be fixed. | ||
Use these snippets as reference: | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
--> | ||
|
||
### Additional context | ||
|
||
<!-- | ||
Use this section to provide us with additional context.<br> | ||
Especially screenshots are a useful tool to let us reproduce and find issues more quickly. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Feature Request | ||
about: You would like us to add something? Add it here! | ||
title: "[FR:]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
# You would like to suggest a new feature? | ||
|
||
<!-- Please provide a description of what you want to be added. | ||
Please note that requests for new languages can only be processed if they have a standardized project layout we can use as reference. | ||
Linking to official language documentation with a diagram or description of said layout would also be very helpful. Thank you. | ||
--> | ||
|
||
*** | ||
## Is your feature request related to a problem you had? Please describe: | ||
|
||
<!-- Description --> | ||
|
||
## Additional context | ||
|
||
<!-- Please provide additional context like drafts or screenshots here. --> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
rust: | ||
- **/**/*.rs | ||
|
||
dependencies: | ||
- Cargo.toml | ||
- **/Cargo.toml | ||
- **/Cargo.lock | ||
- Cargo.lock | ||
|
||
documentation: | ||
- docs/** | ||
- README.md | ||
- LICENSE | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING | ||
|
||
code-quality: | ||
- .pre-commit-hooks/* | ||
- .pre-commit-config.yaml | ||
|
||
maintenance: | ||
- .github/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Dependency Vulnerability Audit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
vulnerability_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: audit | ||
args: --color always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Labeler | ||
on: [pull_request_target] | ||
|
||
jobs: | ||
label: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
|
||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Style checking | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
rustfmt: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run cargo fmt | ||
run: cargo fmt -- --check | ||
|
||
- name: Run cargo clippy | ||
run: cargo clippy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Execute Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
cargo-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Cargo test | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: rustfmt | ||
name: autofmt | ||
entry: .pre-commit-hooks/rustfmt.sh | ||
language: script | ||
files: \.rs$ | ||
|
||
- id: clippy | ||
name: clippy_linter | ||
entry: .pre-commit-hooks/clippy.sh | ||
language: script | ||
files: \.rs$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# Run cargo clippy mainly for dead code analysis. | ||
|
||
cargo clippy -- --Dwarnings 2> /dev/null | ||
clippy_exit_code=$? | ||
if [ $clippy_exit_code != 0 ]; then | ||
echo -e "\e[31mYour code seems to contain style violations! Run cargo clippy before committing!\e[0m" ; exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
# Run rustfmt on all staged files to check for formatting errors. | ||
|
||
STAGED=$(git diff --name-only --cached | grep '.*\.rs') | ||
if ! [ "$STAGED" = '' ]; then | ||
rustfmt --check "$STAGED" || { | ||
echo -e "\e[31mYour code is not formatted correctly! Please run rustfmt on all staged files before committing!\e[0m" ; exit 1 | ||
} | ||
fi |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file will automatically ping all mentioned persons or teams | ||
# when a PR changes files at the specified locations. | ||
|
||
* @ByteOtter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[package] | ||
name = "isotomachine" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[package] | ||
name = "isototest" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |