Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
code gen
workflow updates
clean up
Random Extensions: Choose->From & Remove NextLong
sourceof benchmarks
updated Chance to use Random.Shared to be thread safe
  • Loading branch information
ZacharyPatten committed Aug 9, 2022
1 parent 4454b7d commit f358136
Show file tree
Hide file tree
Showing 51 changed files with 4,692 additions and 5,134 deletions.
63 changes: 2 additions & 61 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,186 +3,127 @@

#use hard tabs for indentation
indent_style = tab

# IDE0160: Convert to file-scoped namespace
csharp_style_namespace_declarations = file_scoped:warning

# SA1600: Elements should be documented
dotnet_diagnostic.SA1600.severity = none

# SA1623: Property summary documentation should match accessors
dotnet_diagnostic.SA1623.severity = none

# SA1629: Documentation text should end with a period
dotnet_diagnostic.SA1629.severity = none

# SA1633: File should have header
dotnet_diagnostic.SA1633.severity = none

# SA1642: Constructor summary documentation should begin with standard text
dotnet_diagnostic.SA1642.severity = none

# SA1649: File name should match first type name
dotnet_diagnostic.SA1649.severity = none

# SA1500: Braces for multi-line statements should not share line
dotnet_diagnostic.SA1500.severity = none

# SA1502: Element should not be on a single line
dotnet_diagnostic.SA1502.severity = none

# SA1505: Opening braces should not be followed by blank line
dotnet_diagnostic.SA1505.severity = none

# SA1508: Closing braces should not be preceded by blank line
dotnet_diagnostic.SA1508.severity = none

# SA1512: Single-line comments should not be followed by blank line
dotnet_diagnostic.SA1512.severity = none

# SA1513: Closing brace should be followed by blank line
dotnet_diagnostic.SA1513.severity = none

# SA1514: Element documentation header should be preceded by blank line
dotnet_diagnostic.SA1514.severity = none

# SA1515: Single-line comment should be preceded by blank line
dotnet_diagnostic.SA1515.severity = none

# SA1516: Elements should be separated by blank line
dotnet_diagnostic.SA1516.severity = none

# SA1401: Fields should be private
dotnet_diagnostic.SA1401.severity = none

# SA1402: File may only contain a single type
dotnet_diagnostic.SA1402.severity = none

# SA1404: Code analysis suppression should have justification
dotnet_diagnostic.SA1404.severity = none

# SA1407: Arithmetic expressions should declare precedence
dotnet_diagnostic.SA1407.severity = none

# SA1408: Conditional expressions should declare precedence
dotnet_diagnostic.SA1408.severity = none

# SA1200: Using directives should be placed correctly
dotnet_diagnostic.SA1200.severity = none

# SA1027: Use tabs correctly
dotnet_diagnostic.SA1027.severity = none

# SA1309: Field names should not begin with underscore
dotnet_diagnostic.SA1309.severity = none

# SA1300: Element should begin with upper-case letter
dotnet_diagnostic.SA1300.severity = none

# SA1124: Do not use regions
dotnet_diagnostic.SA1124.severity = none

# SA1313: Parameter names should begin with lower-case letter
dotnet_diagnostic.SA1313.severity = none

# SA1123: Do not place regions within elements
dotnet_diagnostic.SA1123.severity = none

# SA1312: Variable names should begin with lower-case letter
dotnet_diagnostic.SA1312.severity = none

# SA1000: Keywords should be spaced correctly
dotnet_diagnostic.SA1000.severity = none

# SA1101: Prefix local calls with this
dotnet_diagnostic.SA1101.severity = none

# SA1202: Elements should be ordered by access
dotnet_diagnostic.SA1202.severity = none

# SA1008: Opening parenthesis should be spaced correctly
dotnet_diagnostic.SA1008.severity = none

# SA1201: Elements should appear in the correct order
dotnet_diagnostic.SA1201.severity = none

# SA1128: Put constructor initializers on their own line
dotnet_diagnostic.SA1128.severity = none

# SA1306: Field names should begin with lower-case letter
dotnet_diagnostic.SA1306.severity = none

# SA1009: Closing parenthesis should be spaced correctly
dotnet_diagnostic.SA1009.severity = none

# SA1111: Closing parenthesis should be on line of last parameter
dotnet_diagnostic.SA1111.severity = none

# SA1117: Parameters should be on same line or separate lines
dotnet_diagnostic.SA1117.severity = none

# SA1116: Split parameters should start on line after declaration
dotnet_diagnostic.SA1116.severity = none

# SA1204: Static elements should appear before instance elements
dotnet_diagnostic.SA1204.severity = none

# SA1108: Block statements should not contain embedded comments
dotnet_diagnostic.SA1108.severity = none

# SA1131: Use readable conditions
dotnet_diagnostic.SA1131.severity = none

# SA1107: Code should not contain multiple statements on one line
dotnet_diagnostic.SA1107.severity = none

# SA1311: Static readonly fields should begin with upper-case letter
dotnet_diagnostic.SA1311.severity = none

# SA1011: Closing square brackets should be spaced correctly
dotnet_diagnostic.SA1011.severity = none

# SA1127: Generic type constraints should be on their own line
dotnet_diagnostic.SA1127.severity = none

# SA1118: Parameter should not span multiple lines
dotnet_diagnostic.SA1118.severity = none

# SA1413: Use trailing comma in multi-line initializers
dotnet_diagnostic.SA1413.severity = none

# SA1307: Accessible fields should begin with upper-case letter
dotnet_diagnostic.SA1307.severity = none

# SA1304: Non-private readonly fields should begin with upper-case letter
dotnet_diagnostic.SA1304.severity = none

# SA1025: Code should not contain multiple whitespace in a row
dotnet_diagnostic.SA1025.severity = none

# SA1203: Constants should appear before fields
dotnet_diagnostic.SA1203.severity = none

# SA1214: Readonly fields should appear before non-readonly fields
dotnet_diagnostic.SA1214.severity = none

# SA1503: Braces should not be omitted
dotnet_diagnostic.SA1503.severity = none

# SA1122: Use string.Empty for empty strings
dotnet_diagnostic.SA1122.severity = none

# SA1310: Field names should not contain underscore
dotnet_diagnostic.SA1310.severity = none

# SA1509: Opening braces should not be preceded by blank line
dotnet_diagnostic.SA1509.severity = none

# SA1119: Statement should not use unnecessary parenthesis
dotnet_diagnostic.SA1119.severity = none

# SA1303: Const field names should begin with upper-case letter
dotnet_diagnostic.SA1303.severity = none

# SA1005: Single line comments should begin with single space
dotnet_diagnostic.SA1005.severity = none
# IDE0220: Add explicit cast
dotnet_diagnostic.IDE0220.severity = none
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Towel Deployment
name: Deployment
on:
release:
types: [published]
jobs:
deployment:
if: ${{ github.repository == 'ZacharyPatten/Towel' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentation
name: GitHub Pages
on:
workflow_dispatch:
push:
Expand All @@ -10,6 +10,7 @@ on:
- 'Tools/Towel_Testing/**'
jobs:
documentation:
if: ${{ github.repository == 'ZacharyPatten/Towel' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -53,8 +54,13 @@ jobs:
echo '<coverage line-rate-percentage="'$LINEPERCENTAGE'%" />' >> coverage.xml
- name: move coverage.xml
run: mv coverage.xml Tools/docfx_project/_site/coveragereport/coverage.xml
- uses: maxheld83/ghpages@master
name: gh-pages publish
env:
BUILD_DIR: Tools/docfx_project/_site
GH_PAT: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: deploy to github-pages branch
run: |
cd Tools/docfx_project/_site
echo "* @ZacharyPatten" > CODEOWNERS
git init --initial-branch=github-pages
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add .
git commit -m 'deploy to github-pages branch'
git push --force "https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" github-pages:github-pages
1 change: 0 additions & 1 deletion Examples/BasicsAndExtensions/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ public static void Main()

Random random = new();

Console.WriteLine($" Random.NextLong(): {random.NextLong()}");
Console.WriteLine($" Random.NextDateTime(): {random.NextDateTime()}");
Console.WriteLine($" Random.NextAlphaNumericString(15): {random.NextEnglishAlphaNumericString(15)}");
Console.WriteLine($" Random.NextChar('a', 'z'): {random.NextChar('a', 'z')}");
Expand Down
Loading

0 comments on commit f358136

Please sign in to comment.