Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project #7

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.27.2",
"commands": [
"dotnet-csharpier"
]
}
}
}
16 changes: 16 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
LC_ALL=C

local_branch="$(git rev-parse --abbrev-ref HEAD)"

valid_branch_regex="^(dependabot|feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)(\/[a-zA-Z0-9._-]+)+$"

message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again."

if [[ ! $local_branch =~ $valid_branch_regex ]]
then
echo "$message"
exit 1
fi

dotnet tool restore && dotnet csharpier . --check
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
36 changes: 21 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
version: 2

updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10


- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

open-pull-requests-limit: 50
assignees:
- "guibranco"
reviewers:
- "guibranco"
labels:
- "nuget"
- "packages"
- ".NET"
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
open-pull-requests-limit: 50
assignees:
- "guibranco"
reviewers:
- "guibranco"
labels:
- "github-actions"
- "dependencies"
24 changes: 24 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linter check

on:
workflow_dispatch:
pull_request:

jobs:
linter-check:
runs-on: ubuntu-latest
steps:

- name: Checkout repo
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4

- name: Dotnet restore
run: dotnet tool restore

- name: Csharpier format check
run: |
dotnet csharpier . --check
echo "run 'dotnet build' to fix the formatting of the code automatically"
28 changes: 28 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Label based on PR size

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
size-label:
permissions: write-all
runs-on: ubuntu-latest

steps:

- name: size-label
if: >-
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
) || (
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
) || (
github.event_name == 'workflow_dispatch'
)
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
27 changes: 0 additions & 27 deletions .vscode/launch.json

This file was deleted.

42 changes: 0 additions & 42 deletions .vscode/tasks.json

This file was deleted.

9 changes: 9 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="RabbitMQ.Client" Version="6.1.0" />
</ItemGroup>
</Project>
93 changes: 93 additions & 0 deletions HelloWorldRabbitMQ.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{E961E0F4-9F78-44C0-B141-994178170F58}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EmitLog", "Src\EmitLog\EmitLog.csproj", "{6E823770-6DC1-4355-9155-AF856FF9FF10}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NewTask", "Src\NewTask\NewTask.csproj", "{36830E15-927F-4136-84CA-1CD7F320C46E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NewTaskAck", "Src\NewTaskAck\NewTaskAck.csproj", "{2B067444-CB24-41C5-9605-D2FA53D09E8B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Receive", "Src\Receive\Receive.csproj", "{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReceiveLogs", "Src\ReceiveLogs\ReceiveLogs.csproj", "{99DEE5CA-3616-4811-97D7-FA23391B3AC4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RpcClient", "Src\RpcClient\RpcClient.csproj", "{60D3BF6C-AA16-4F48-B6E0-99572D3C332F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RpcWorker", "Src\RpcWorker\RpcWorker.csproj", "{5E662B83-9E50-4647-B48E-C4635727AA48}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Send", "Src\Send\Send.csproj", "{30DE4BFE-D057-4EB9-B225-337B02969C11}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Worker", "Src\Worker\Worker.csproj", "{F9EF05D1-F808-43BA-8EE3-965E7C356336}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkerAck", "Src\WorkerAck\WorkerAck.csproj", "{CBC5FD37-2E9A-4720-830F-95AE16A0EACD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6E823770-6DC1-4355-9155-AF856FF9FF10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E823770-6DC1-4355-9155-AF856FF9FF10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E823770-6DC1-4355-9155-AF856FF9FF10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E823770-6DC1-4355-9155-AF856FF9FF10}.Release|Any CPU.Build.0 = Release|Any CPU
{36830E15-927F-4136-84CA-1CD7F320C46E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{36830E15-927F-4136-84CA-1CD7F320C46E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{36830E15-927F-4136-84CA-1CD7F320C46E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{36830E15-927F-4136-84CA-1CD7F320C46E}.Release|Any CPU.Build.0 = Release|Any CPU
{2B067444-CB24-41C5-9605-D2FA53D09E8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B067444-CB24-41C5-9605-D2FA53D09E8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B067444-CB24-41C5-9605-D2FA53D09E8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B067444-CB24-41C5-9605-D2FA53D09E8B}.Release|Any CPU.Build.0 = Release|Any CPU
{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1}.Release|Any CPU.Build.0 = Release|Any CPU
{99DEE5CA-3616-4811-97D7-FA23391B3AC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{99DEE5CA-3616-4811-97D7-FA23391B3AC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99DEE5CA-3616-4811-97D7-FA23391B3AC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99DEE5CA-3616-4811-97D7-FA23391B3AC4}.Release|Any CPU.Build.0 = Release|Any CPU
{60D3BF6C-AA16-4F48-B6E0-99572D3C332F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{60D3BF6C-AA16-4F48-B6E0-99572D3C332F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{60D3BF6C-AA16-4F48-B6E0-99572D3C332F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{60D3BF6C-AA16-4F48-B6E0-99572D3C332F}.Release|Any CPU.Build.0 = Release|Any CPU
{5E662B83-9E50-4647-B48E-C4635727AA48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E662B83-9E50-4647-B48E-C4635727AA48}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E662B83-9E50-4647-B48E-C4635727AA48}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E662B83-9E50-4647-B48E-C4635727AA48}.Release|Any CPU.Build.0 = Release|Any CPU
{30DE4BFE-D057-4EB9-B225-337B02969C11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30DE4BFE-D057-4EB9-B225-337B02969C11}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30DE4BFE-D057-4EB9-B225-337B02969C11}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30DE4BFE-D057-4EB9-B225-337B02969C11}.Release|Any CPU.Build.0 = Release|Any CPU
{F9EF05D1-F808-43BA-8EE3-965E7C356336}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F9EF05D1-F808-43BA-8EE3-965E7C356336}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F9EF05D1-F808-43BA-8EE3-965E7C356336}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F9EF05D1-F808-43BA-8EE3-965E7C356336}.Release|Any CPU.Build.0 = Release|Any CPU
{CBC5FD37-2E9A-4720-830F-95AE16A0EACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBC5FD37-2E9A-4720-830F-95AE16A0EACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBC5FD37-2E9A-4720-830F-95AE16A0EACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBC5FD37-2E9A-4720-830F-95AE16A0EACD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6E823770-6DC1-4355-9155-AF856FF9FF10} = {E961E0F4-9F78-44C0-B141-994178170F58}
{36830E15-927F-4136-84CA-1CD7F320C46E} = {E961E0F4-9F78-44C0-B141-994178170F58}
{2B067444-CB24-41C5-9605-D2FA53D09E8B} = {E961E0F4-9F78-44C0-B141-994178170F58}
{AA07E19F-C028-43CC-95ED-5C05AE5CEDF1} = {E961E0F4-9F78-44C0-B141-994178170F58}
{99DEE5CA-3616-4811-97D7-FA23391B3AC4} = {E961E0F4-9F78-44C0-B141-994178170F58}
{60D3BF6C-AA16-4F48-B6E0-99572D3C332F} = {E961E0F4-9F78-44C0-B141-994178170F58}
{5E662B83-9E50-4647-B48E-C4635727AA48} = {E961E0F4-9F78-44C0-B141-994178170F58}
{30DE4BFE-D057-4EB9-B225-337B02969C11} = {E961E0F4-9F78-44C0-B141-994178170F58}
{F9EF05D1-F808-43BA-8EE3-965E7C356336} = {E961E0F4-9F78-44C0-B141-994178170F58}
{CBC5FD37-2E9A-4720-830F-95AE16A0EACD} = {E961E0F4-9F78-44C0-B141-994178170F58}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D23A7951-8498-4403-8293-0828B60021C0}
EndGlobalSection
EndGlobal
27 changes: 0 additions & 27 deletions Src/.vscode/launch.json

This file was deleted.

Loading
Loading