Skip to content

Commit 3546641

Browse files
refactor: run rider reformat and cleanup
1 parent d6eb670 commit 3546641

File tree

225 files changed

+12316
-11983
lines changed

Some content is hidden

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

225 files changed

+12316
-11983
lines changed
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
title: ''
2+
name: Bug report about: Create a report to help us improve title: ''
53
labels: ''
64
assignees: ''
75

@@ -12,6 +10,7 @@ A clear and concise description of what the bug is.
1210

1311
**To Reproduce**
1412
Steps to reproduce the behavior:
13+
1514
1. Go to '...'
1615
2. Click on '....'
1716
3. Scroll down to '....'
@@ -24,15 +23,17 @@ A clear and concise description of what you expected to happen.
2423
If applicable, add screenshots to help explain your problem.
2524

2625
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
26+
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
3030

3131
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
32+
33+
- Device: [e.g. iPhone6]
34+
- OS: [e.g. iOS8.1]
35+
- Browser [e.g. stock browser, safari]
36+
- Version [e.g. 22]
3637

3738
**Additional context**
3839
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
name: Custom issue template
3-
about: Describe this issue template's purpose here.
4-
title: ''
2+
name: Custom issue template about: Describe this issue template's purpose here. title: ''
53
labels: ''
64
assignees: ''
75

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: ''
2+
name: Feature request about: Suggest an idea for this project title: ''
53
labels: ''
64
assignees: ''
75

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on:
1+
on:
22
push:
33
branches:
44
- '**'

.github/workflows/create-release-draft.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on:
1+
on:
22
push:
33
tags:
44
- '*'
@@ -12,15 +12,15 @@ jobs:
1212
outputs:
1313
is_semantic_version: ${{ steps.parse.outputs.is_semantic_version }}
1414
is_prerelease: ${{ steps.parse.outputs.is_prerelease }}
15-
steps:
15+
steps:
1616
- id: parse
1717
run: |
1818
# This pattern comes from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
1919
# However, Bash uses POSIX regular expressions, and POSIX does not support non-capturing groups: (?:...)
2020
# To make it compatible, the non-capture modifiers have been removed.
21-
21+
2222
semantic_version_pattern='^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-((0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
23-
23+
2424
if [[ ${GITHUB_REF/refs\/tags\//} =~ $semantic_version_pattern ]]; then
2525
echo ::set-output name=is_semantic_version::'true'
2626

.github/workflows/publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: windows-latest
2424
needs: extract
2525
env:
26-
NOTES: ${{ needs.extract.outputs.notes }}
26+
NOTES: ${{ needs.extract.outputs.notes }}
2727
steps:
2828
- name: Checkout Repository
2929
uses: actions/checkout@v2

CODE_OF_CONDUCT.md

Lines changed: 43 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,124 +2,98 @@
22

33
## Our Pledge
44

5-
We as members, contributors, and leaders pledge to make participation in our
6-
community a harassment-free experience for everyone, regardless of age, body
7-
size, visible or invisible disability, ethnicity, sex characteristics, gender
8-
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity
10-
and orientation.
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for
6+
everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity
7+
and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion,
8+
or sexual identity and orientation.
119

12-
We pledge to act and interact in ways that contribute to an open, welcoming,
13-
diverse, inclusive, and healthy community.
10+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
1411

1512
## Our Standards
1613

17-
Examples of behavior that contributes to a positive environment for our
18-
community include:
14+
Examples of behavior that contributes to a positive environment for our community include:
1915

2016
* Demonstrating empathy and kindness toward other people
2117
* Being respectful of differing opinions, viewpoints, and experiences
2218
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
19+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
20+
* Focusing on what is best not just for us as individuals, but for the overall community
2721

2822
Examples of unacceptable behavior include:
2923

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
24+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
3225
* Trolling, insulting or derogatory comments, and personal or political attacks
3326
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
27+
* Publishing others' private information, such as a physical or email address, without their explicit permission
28+
* Other conduct which could reasonably be considered inappropriate in a professional setting
3829

3930
## Enforcement Responsibilities
4031

41-
Community leaders are responsible for clarifying and enforcing our standards of
42-
acceptable behavior and will take appropriate and fair corrective action in
43-
response to any behavior that they deem inappropriate, threatening, offensive,
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take
33+
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
4434
or harmful.
4535

46-
Community leaders have the right and responsibility to remove, edit, or reject
47-
comments, commits, code, wiki edits, issues, and other contributions that are
48-
not aligned to this Code of Conduct, and will communicate reasons for moderation
49-
decisions when appropriate.
36+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
37+
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
38+
moderation decisions when appropriate.
5039

5140
## Scope
5241

53-
This Code of Conduct applies within all community spaces, and also applies when
54-
an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail address,
56-
posting via an official social media account, or acting as an appointed
57-
representative at an online or offline event.
42+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
43+
the community in public spaces. Examples of representing our community include using an official e-mail address, posting
44+
via an official social media account, or acting as an appointed representative at an online or offline event.
5845

5946
## Enforcement
6047

61-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at
63-
64-
All complaints will be reviewed and investigated promptly and fairly.
48+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible
49+
for enforcement at [email protected]. All complaints will be reviewed and investigated promptly and fairly.
6550

66-
All community leaders are obligated to respect the privacy and security of the
67-
reporter of any incident.
51+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
6852

6953
## Enforcement Guidelines
7054

71-
Community leaders will follow these Community Impact Guidelines in determining
72-
the consequences for any action they deem in violation of this Code of Conduct:
55+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem
56+
in violation of this Code of Conduct:
7357

7458
### 1. Correction
7559

76-
**Community Impact**: Use of inappropriate language or other behavior deemed
77-
unprofessional or unwelcome in the community.
60+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the
61+
community.
7862

79-
**Consequence**: A private, written warning from community leaders, providing
80-
clarity around the nature of the violation and an explanation of why the
81-
behavior was inappropriate. A public apology may be requested.
63+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation
64+
and an explanation of why the behavior was inappropriate. A public apology may be requested.
8265

8366
### 2. Warning
8467

85-
**Community Impact**: A violation through a single incident or series
86-
of actions.
68+
**Community Impact**: A violation through a single incident or series of actions.
8769

88-
**Consequence**: A warning with consequences for continued behavior. No
89-
interaction with the people involved, including unsolicited interaction with
90-
those enforcing the Code of Conduct, for a specified period of time. This
91-
includes avoiding interactions in community spaces as well as external channels
92-
like social media. Violating these terms may lead to a temporary or
93-
permanent ban.
70+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
71+
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
72+
interactions in community spaces as well as external channels like social media. Violating these terms may lead to a
73+
temporary or permanent ban.
9474

9575
### 3. Temporary Ban
9676

97-
**Community Impact**: A serious violation of community standards, including
98-
sustained inappropriate behavior.
77+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
9978

100-
**Consequence**: A temporary ban from any sort of interaction or public
101-
communication with the community for a specified period of time. No public or
102-
private interaction with the people involved, including unsolicited interaction
103-
with those enforcing the Code of Conduct, is allowed during this period.
104-
Violating these terms may lead to a permanent ban.
79+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified
80+
period of time. No public or private interaction with the people involved, including unsolicited interaction with those
81+
enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
10582

10683
### 4. Permanent Ban
10784

108-
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
110-
individual, or aggression toward or disparagement of classes of individuals.
85+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate
86+
behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
11187

112-
**Consequence**: A permanent ban from any sort of public interaction within
113-
the community.
88+
**Consequence**: A permanent ban from any sort of public interaction within the community.
11489

11590
## Attribution
11691

117-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118-
version 2.0, available at
92+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at
11993
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
12094

121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
95+
Community Impact Guidelines were inspired
96+
by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
12397

12498
[homepage]: https://www.contributor-covenant.org
12599

README.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
# EntityDb.NET [![codecov](https://codecov.io/gh/entitydb-io/EntityDb.NET/branch/main/graph/badge.svg?token=2IK4D211SY)](https://codecov.io/gh/entitydb-io/EntityDb.NET) [![CodeFactor](https://www.codefactor.io/repository/github/entitydb-io/entitydb.net/badge)](https://www.codefactor.io/repository/github/entitydb-io/entitydb.net)
22

3-
At its core, EntityDb.NET is a set of abstractions and implementations for the Event Sourcing pattern, with the added ability to enforce uniqueness constraints and the ability to tag resources.
3+
At its core, EntityDb.NET is a set of abstractions and implementations for the Event Sourcing pattern, with the added
4+
ability to enforce uniqueness constraints and the ability to tag resources.
45

56
## What is Event Sourcing?
67

7-
Event Sourcing centers around the idea that your source of truth is _not_ the current state, it is all of the deltas that add up to the current state. Consider your personal bank - which of these options do you think it their source of truth for account balances?
8+
Event Sourcing centers around the idea that your source of truth is _not_ the current state, it is all of the deltas
9+
that add up to the current state. Consider your personal bank - which of these options do you think it their source of
10+
truth for account balances?
811

912
- Option A - Table Rows
10-
- John Doe has $123.45 in Account A
11-
- Jane Doe has $678.90 in Account B
13+
- John Doe has $123.45 in Account A
14+
- Jane Doe has $678.90 in Account B
1215
- Option B - Transactions
13-
- John Doe deposited $100.00 in Account A
14-
- Jane Doe deposited $600.00 in Account B
15-
- John Doe deposited $20.00 in Account A
16-
- Jane Doe deposited $70.00 in Account B
17-
- John Doe deposited $3.45 in Account A
18-
- Jane Doe deposited $8.90 in Account B
16+
- John Doe deposited $100.00 in Account A
17+
- Jane Doe deposited $600.00 in Account B
18+
- John Doe deposited $20.00 in Account A
19+
- Jane Doe deposited $70.00 in Account B
20+
- John Doe deposited $3.45 in Account A
21+
- Jane Doe deposited $8.90 in Account B
1922

20-
The answer is pretty obvious if you go check your bank statement. They keep a set of transactions, and regurgitate that information on the statement. (If I'm wrong, you should consider getting a new bank, ASAP!)
23+
The answer is pretty obvious if you go check your bank statement. They keep a set of transactions, and regurgitate that
24+
information on the statement. (If I'm wrong, you should consider getting a new bank, ASAP!)
2125

2226
## How does EntityDb.NET implement Event Sourcing?
2327

@@ -29,16 +33,23 @@ There are three core sets of data:
2933

3034
### Sources
3135

32-
A source is the origin of a transaction. If the transaction was initiated by an HTTP API, for example, you might want record the headers and connection information of the request.
36+
A source is the origin of a transaction. If the transaction was initiated by an HTTP API, for example, you might want
37+
record the headers and connection information of the request.
3338

3439
### Commands
3540

36-
A command represents the intent to perform some operation on the state. Going back to the bank account example, one command could be `PerformDeposit` while another could be `PerformWithdrawl`. The things that you can do are commands.
41+
A command represents the intent to perform some operation on the state. Going back to the bank account example, one
42+
command could be `PerformDeposit` while another could be `PerformWithdrawl`. The things that you can do are commands.
3743

3844
### Facts
3945

40-
A fact is the result of executing a command on the state. In our bank account example, the fact produced by `PerformDeposit` would be `DepositPerformed`; for `PerformWithdrawl` it would be `WithdrawlPerformed`. However, commands and facts **DO NOT** need to be one-to-one. A single command can yield as many facts as are needed. You should keep your facts _bite sized_/_small_.
46+
A fact is the result of executing a command on the state. In our bank account example, the fact produced
47+
by `PerformDeposit` would be `DepositPerformed`; for `PerformWithdrawl` it would be `WithdrawlPerformed`. However,
48+
commands and facts **DO NOT** need to be one-to-one. A single command can yield as many facts as are needed. You should
49+
keep your facts _bite sized_/_small_.
4150

4251
### Tying it all together
4352

44-
The source, commands, and facts, are all tied together under one transient object - the transaction. A transaction can have exactly one source and can have many commands; each command can have many facts. When you need to commit your changes, you commit the transaction - it's all or nothing.
53+
The source, commands, and facts, are all tied together under one transient object - the transaction. A transaction can
54+
have exactly one source and can have many commands; each command can have many facts. When you need to commit your
55+
changes, you commit the transaction - it's all or nothing.

src/.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ csharp_style_conditional_delegate_call = true:suggestion
9696

9797
# Modifier preferences
9898
csharp_prefer_static_local_function = true:suggestion
99-
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
99+
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:silent
100100

101101
# Code-block preferences
102102
csharp_prefer_braces = true:silent
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
namespace EntityDb.Abstractions.Agents
2-
{
3-
/// <summary>
4-
/// Represents an entity who can interact with transactions.
5-
/// </summary>
6-
public interface IAgent
7-
{
8-
/// <summary>
9-
/// Returns wether or not the agent has a particular role.
10-
/// </summary>
11-
/// <param name="role">The role.</param>
12-
/// <returns>Wether or not the agent has a particular role.</returns>
13-
bool HasRole(string role);
14-
}
15-
}
1+
namespace EntityDb.Abstractions.Agents
2+
{
3+
/// <summary>
4+
/// Represents an entity who can interact with transactions.
5+
/// </summary>
6+
public interface IAgent
7+
{
8+
/// <summary>
9+
/// Returns wether or not the agent has a particular role.
10+
/// </summary>
11+
/// <param name="role">The role.</param>
12+
/// <returns>Wether or not the agent has a particular role.</returns>
13+
bool HasRole(string role);
14+
}
15+
}

0 commit comments

Comments
 (0)