Skip to content

Commit 55ddbb8

Browse files
authored
Merge pull request #127 from FRACerqueira/v5.0.0
V5.0.0
2 parents f4a607a + 57c34e1 commit 55ddbb8

1,843 files changed

Lines changed: 72499 additions & 95237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.cs]
2+
3+
# Default severity for analyzer diagnostics with category 'Naming'
4+
dotnet_analyzer_diagnostic.category-Naming.severity = none
5+
6+
# Default severity for all analyzer diagnostics
7+
dotnet_analyzer_diagnostic.severity = silent

.github/codeql-config.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v5
1010

1111
- name: Setup dotnet
12-
uses: actions/setup-dotnet@v3
12+
uses: actions/setup-dotnet@v5
1313
with:
14-
dotnet-version: '8.0.x' # SDK Version to use.
14+
dotnet-version: '10.0.x' # SDK Version to use.
1515

1616
- name: Build project
17-
run: dotnet build PromptPlus.sln -c Release
18-
19-
- name: Run test cases
20-
run: dotnet test -c Release --no-build
17+
run: dotnet build PromptPlus.sln -c Release
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: "CodeQL"
1+
name: "CodeQL Advanced"
22

33
on: [push, pull_request]
44

55
jobs:
66
analyze:
7-
name: Analyze
8-
runs-on: ubuntu-latest
7+
name: Analyze (${{ matrix.language }})
8+
runs-on: ${{ (matrix.language == 'csharp' && 'macos-latest') || 'ubuntu-latest' }}
99
permissions:
10+
security-events: write
11+
packages: read
1012
actions: read
1113
contents: read
12-
security-events: write
1314

1415
strategy:
1516
fail-fast: false
@@ -18,22 +19,24 @@ jobs:
1819

1920
steps:
2021
- name: Checkout repository
21-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2223

23-
- name: Setup dotnet
24-
uses: actions/setup-dotnet@v3
24+
- name: Setup .NET
25+
if: matrix.language == 'csharp'
26+
uses: actions/setup-dotnet@v5
2527
with:
26-
dotnet-version: '8.0.x' # SDK Version to use.
28+
dotnet-version: '10.0.x'
2729

2830
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v2
31+
uses: github/codeql-action/init@v4
3032
with:
3133
languages: ${{ matrix.language }}
32-
queries: +security-and-quality
33-
config-file: ./.github/codeql-config.yml
34-
35-
- name: Build NuGet Package
36-
run: dotnet build ./Src/PromptPlus.csproj -c Release
34+
queries: +security-extended,security-and-quality
35+
36+
- name: Build Project
37+
run: dotnet build ./src/PromptPlus.csproj -c Release
3738

3839
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v2
40+
uses: github/codeql-action/analyze@v4
41+
with:
42+
category: "/language:${{matrix.language}}"

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212

1313
- name: Setup dotnet
14-
uses: actions/setup-dotnet@v3
14+
uses: actions/setup-dotnet@v5
1515
with:
16-
dotnet-version: '8.0.x' # SDK Version to use.
16+
dotnet-version: '10.0.x' # SDK Version to use.
1717

1818
- name: Setup Version
1919
id: setup_version
2020
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
2121

2222
- name: Pack NuGet Package
23-
run: dotnet pack Src/PromptPlus.csproj -c Release -o ./dist -p:Version=${{ steps.setup_version.outputs.VERSION }}
23+
run: dotnet pack src/PromptPlus.csproj -c Release -o ./dist -p:Version=${{ steps.setup_version.outputs.VERSION }}
2424

2525
- name: Publish
2626
run: dotnet nuget push dist/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

CODE_OF_CONDUCT.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Contributor Covenant Code of Conduct
22

3+
----
34
## Our Pledge
45

56
We as members, contributors, and leaders pledge to make participation in our
@@ -12,6 +13,7 @@ identity and orientation.
1213
We pledge to act and interact in ways that contribute to an open, welcoming,
1314
diverse, inclusive, and healthy community.
1415

16+
----
1517
## Our Standards
1618

1719
Examples of behavior that contributes to a positive environment for our
@@ -36,6 +38,7 @@ Examples of unacceptable behavior include:
3638
* Other conduct which could reasonably be considered inappropriate in a
3739
professional setting
3840

41+
----
3942
## Enforcement Responsibilities
4043

4144
Community leaders are responsible for clarifying and enforcing our standards of
@@ -48,6 +51,7 @@ comments, commits, code, wiki edits, issues, and other contributions that are
4851
not aligned to this Code of Conduct, and will communicate reasons for moderation
4952
decisions when appropriate.
5053

54+
----
5155
## Scope
5256

5357
This Code of Conduct applies within all community spaces, and also applies when
@@ -56,6 +60,7 @@ Examples of representing our community include using an official e-mail address,
5660
posting via an official social media account, or acting as an appointed
5761
representative at an online or offline event.
5862

63+
----
5964
## Enforcement
6065

6166
Instances of abusive, harassing, or otherwise unacceptable behavior may be
@@ -65,6 +70,7 @@ All complaints will be reviewed and investigated promptly and fairly.
6570
All community leaders are obligated to respect the privacy and security of the
6671
reporter of any incident.
6772

73+
----
6874
## Enforcement Guidelines
6975

7076
Community leaders will follow these Community Impact Guidelines in determining
@@ -111,6 +117,7 @@ individual, or aggression toward or disparagement of classes of individuals.
111117
**Consequence**: A permanent ban from any sort of public interaction within the
112118
community.
113119

120+
----
114121
## Attribution
115122

116123
This Code of Conduct is adapted from the [Contributor Covenant][homepage],

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* [Other general information](#other-general-information)
1616
* [Acknowledgement](#acknowledgement)
1717

18+
----
1819
## Prerequisites
1920

2021
By contributing to **Promptplus**, you assert that:
@@ -25,6 +26,7 @@ By contributing to **Promptplus**, you assert that:
2526
* You [license](LICENSE.md) the contribution under the terms applied to the rest of the Promptplus project.
2627
* You agree to follow the [code of conduct](CODE_OF_CONDUCT.md).
2728

29+
----
2830
## Definition of trivial contributions
2931
It's hard to define what is a trivial contribution. Sometimes even a 1 character change can be considered significant.
3032
Unfortunately because it can be subjective, the decision on what is trivial comes from the maintainers of the project
@@ -35,6 +37,7 @@ What is generally considered trivial:
3537
* Fixing a typo.
3638
* Documentation changes.
3739

40+
----
3841
## Code
3942
### Code style
4043

@@ -50,6 +53,7 @@ The assembly `PromptPlus` should have no dependencies except the .NET BCL librar
5053
Make sure to run all unit tests before creating a pull request.
5154
Any new code should also have reasonable unit test coverage.
5255

56+
----
5357
## Contributing process
5458
### Get buyoff or find open community issues or features
5559

@@ -145,6 +149,7 @@ The only reasons a pull request should be closed and resubmitted are as follows:
145149
* When there are updates made to the original by someone other than the original contributor.
146150
Then the old branch is closed with a note on the newer branch this supersedes #github_number.
147151

152+
----
148153
## Other general information
149154
If you reformat code or hit core functionality without an approval from a person on the PromptPlus Team,
150155
it's likely that no matter how awesome it looks afterwards, it will probably not get accepted.
@@ -155,6 +160,7 @@ Now if you stray outside of the guidelines we have above, it doesn't mean we are
155160
your pull request. It will just make things harder for us.
156161
Harder for us roughly translates to a longer SLA for your pull request.
157162

163+
----
158164
## Acknowledgement
159165

160166
This contribution guide was taken from the [Chocolatey project](https://chocolatey.org/)

Licenses/LICENSE-EastAsianWidthDotNet.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

Licenses/LICENSE-FIGlet.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

Licenses/LICENSE-SpectreConsole.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)