Skip to content

Commit 3396f0b

Browse files
authored
Merge pull request #15 from ptr727/develop
Develop
2 parents 06a8dea + c13a26c commit 3396f0b

File tree

16 files changed

+261
-76
lines changed

16 files changed

+261
-76
lines changed

.editorconfig

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,39 @@
88
# https://github.com/dotnet/runtime/blob/main/.editorconfig
99

1010
# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format
11-
# dotnet format --verify-no-changes --severity=info --verbosity=detailed
11+
# dotnet format style --verify-no-changes --severity=info --verbosity=detailed --exclude-diagnostics=IDE0055
1212

1313
# Root config
1414
root = true
1515

1616
# Defaults
1717
[*]
1818
charset = utf-8
19-
end_of_line = crlf
2019
indent_size = 4
2120
indent_style = space
2221
insert_final_newline = true
2322
trim_trailing_whitespace = true
2423

2524
# Markdown files
2625
[*.{md}]
26+
end_of_line = crlf
2727
trim_trailing_whitespace = false
2828

2929
# Xml files
3030
[*.{xml,csproj,props,targets}]
31+
end_of_line = crlf
3132
indent_size = 2
3233

33-
# YAML files
34+
# Yaml files
3435
[*.{yml,yaml}]
36+
end_of_line = crlf
3537
indent_size = 2
3638

39+
# Json files
40+
[*.json]
41+
end_of_line = crlf
42+
indent_size = 4
43+
3744
# Linux scripts
3845
[*.sh]
3946
end_of_line = lf
@@ -44,10 +51,9 @@ end_of_line = crlf
4451

4552
# C# files
4653
[*.cs]
47-
48-
# Default to suggestion severity
54+
end_of_line = crlf
55+
dotnet_diagnostic.IDE0055.severity = none
4956
dotnet_analyzer_diagnostic.severity = suggestion
50-
5157
csharp_indent_block_contents = true
5258
csharp_indent_braces = false
5359
csharp_indent_case_contents = true

.github/workflows/merge-bot-pr.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@ jobs:
1717
contents: write
1818
pull-requests: write
1919

20-
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
2120
steps:
2221

23-
# https://github.com/marketplace/actions/fetch-metadata-from-dependabot-prs
2422
- name: Get dependabot metadata
2523
id: metadata
2624
uses: dependabot/fetch-metadata@v2
2725
with:
2826
github-token: "${{ secrets.GITHUB_TOKEN }}"
2927

30-
# https://cli.github.com/manual/gh_pr_merge
31-
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#ignore--
3228
- name: Merge dependabot non-major updates
3329
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
3430
run: gh pr merge --auto --merge "$PR_URL"
@@ -46,7 +42,6 @@ jobs:
4642

4743
steps:
4844

49-
# https://cli.github.com/manual/gh_pr_merge
5045
- name: Merge language data PR's
5146
run: gh pr merge --auto --merge "$PR_URL"
5247
env:

.github/workflows/publish-release.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Publish release
33
on:
44
push:
55
branches: [ main, develop ]
6-
pull_request:
7-
branches: [ main, develop ]
86
workflow_dispatch:
97

108
concurrency:
@@ -14,34 +12,8 @@ concurrency:
1412
jobs:
1513

1614
test:
17-
name: Run tests
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
22-
# https://github.com/marketplace/actions/setup-net-core-sdk
23-
- name: Setup .NET SDK
24-
uses: actions/setup-dotnet@v4
25-
with:
26-
dotnet-version: 9.x
27-
28-
# https://github.com/marketplace/actions/checkout
29-
- name: Checkout code
30-
uses: actions/checkout@v4
31-
32-
# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build
33-
- name: Build
34-
run: dotnet build
35-
36-
# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test
37-
- name: Run unit tests
38-
run: dotnet test ./LanguageTagsTests/LanguageTagsTests.csproj
39-
40-
- name: Format checks
41-
run: |
42-
dotnet tool restore
43-
dotnet csharpier check --log-level=debug .
44-
dotnet format --verify-no-changes --severity=info --verbosity=detailed
15+
uses: ./.github/workflows/test.yml
16+
secrets: inherit
4517

4618
publish:
4719
name: Publish release

.github/workflows/test-pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test PRs
2+
3+
on:
4+
pull_request:
5+
branches: [ main, develop ]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
14+
test:
15+
uses: ./.github/workflows/test.yml
16+
secrets: inherit

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test build
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
9+
test:
10+
name: Run tests
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
15+
- name: Setup .NET SDK
16+
uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: 9.x
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Checks code style
24+
run: |
25+
dotnet tool restore
26+
dotnet csharpier check --log-level=debug .
27+
dotnet format style --verify-no-changes --severity=info --verbosity=detailed --exclude-diagnostics=IDE0055
28+
29+
- name: Run unit tests
30+
run: dotnet test
31+
32+
- name: Build
33+
run: dotnet build

.github/workflows/update-languagedata.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,24 @@ jobs:
2020

2121
steps:
2222

23-
# https://github.com/marketplace/actions/setup-net-core-sdk
2423
- name: Setup .NET SDK
2524
uses: actions/setup-dotnet@v4
2625
with:
2726
dotnet-version: 9.x
2827

29-
# https://github.com/marketplace/actions/checkout
3028
- name: Checkout code
3129
uses: actions/checkout@v4
3230

3331
- name: Download language data and generate code
3432
run: |
3533
dotnet run --project ./LanguageTagsCreate/LanguageTagsCreate.csproj -- .
3634
37-
- name: CSharpier format code
35+
- name: Format code
3836
run: |
3937
dotnet tool restore
4038
dotnet csharpier format --log-level=debug .
4139
git status
4240
43-
# https://github.com/marketplace/actions/create-pull-request
4441
- name: Create pull request
4542
uses: peter-evans/create-pull-request@v7
4643
with:

.husky/task-runner.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
"command": "dotnet",
2020
"args": [
2121
"format",
22+
"style",
2223
"--verify-no-changes",
2324
"--severity=info",
24-
"--verbosity=detailed"
25+
"--verbosity=detailed",
26+
"--exclude-diagnostics=IDE0055"
2527
],
2628
"include": [
2729
"**/*.cs"

.vscode/tasks.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
"command": "dotnet",
2929
"args": [
3030
"format",
31+
"style",
3132
"--verify-no-changes",
3233
"--severity=info",
33-
"--verbosity=detailed"
34+
"--verbosity=detailed",
35+
"--exclude-diagnostics=IDE0055"
3436
],
3537
"problemMatcher": [
3638
"$msCompile"

LanguageData/iso6393

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ cli I L Chakali
12971297
clj I L Laitu Chin
12981298
clk I L Idu-Mishmi
12991299
cll I L Chala
1300-
clm I L Clallam
1300+
clm I L Klallam
13011301
clo I L Lowland Oaxaca Chontal
13021302
cls I H Classical Sanskrit
13031303
clt I L Lautu Chin
@@ -1590,7 +1590,7 @@ diq I L Dimli (individual language)
15901590
dir I L Dirim
15911591
dis I L Dimasa
15921592
diu I L Diriku
1593-
div div div dv I L Dhivehi
1593+
div div div dv I L Divehi
15941594
diw I L Northwestern Dinka
15951595
dix I L Dixon Reef
15961596
diy I L Diuwe
@@ -2325,7 +2325,7 @@ gyz I L Geji
23252325
gza I L Ganza
23262326
gzi I L Gazi
23272327
gzn I L Gane
2328-
haa I L Han
2328+
haa I L Hän
23292329
hab I L Hanoi Sign Language
23302330
hac I L Gurani
23312331
had I L Hatam
@@ -3390,7 +3390,7 @@ kwg I L Sara Kaba Deme
33903390
kwh I L Kowiai
33913391
kwi I L Awa-Cuaiquer
33923392
kwj I L Kwanga
3393-
kwk I L Kwakiutl
3393+
kwk I L Kwak'wala
33943394
kwl I L Kofyar
33953395
kwm I L Kwambi
33963396
kwn I L Kwangali
@@ -3795,7 +3795,7 @@ lup I L Lumbu
37953795
luq I L Lucumi
37963796
lur I L Laura
37973797
lus lus lus I L Lushai
3798-
lut I L Lushootseed
3798+
lut I E Lushootseed
37993799
luu I L Lumba-Yakkha
38003800
luv I L Luwati
38013801
luw I L Luo (Cameroon)
@@ -4011,7 +4011,7 @@ mhj I L Mogholi
40114011
mhk I L Mungaka
40124012
mhl I L Mauwake
40134013
mhm I L Makhuwa-Moniga
4014-
mhn I L Mócheno
4014+
mhn I L Mòcheno
40154015
mho I L Mashi (Zambia)
40164016
mhp I L Balinese Malay
40174017
mhq I L Mandan
@@ -4916,7 +4916,7 @@ nxo I L Ndambomo
49164916
nxq I L Naxi
49174917
nxr I L Ninggerum
49184918
nxx I L Nafri
4919-
nya nya nya ny I L Nyanja
4919+
nya nya nya ny I L Chichewa
49204920
nyb I L Nyangbo
49214921
nyc I L Nyanga-li
49224922
nyd I L Nyore
@@ -7834,7 +7834,7 @@ zml I E Matngala
78347834
zmm I L Marimanindji
78357835
zmn I L Mbangwe
78367836
zmo I L Molo
7837-
zmp I L Mpuono
7837+
zmp I L Mbuun
78387838
zmq I L Mituku
78397839
zmr I L Maranunggu
78407840
zms I L Mbesa

LanguageData/iso6393.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7957,7 +7957,7 @@
79577957
"Id": "clm",
79587958
"Scope": "I",
79597959
"LanguageType": "L",
7960-
"RefName": "Clallam"
7960+
"RefName": "Klallam"
79617961
},
79627962
{
79637963
"Id": "clo",
@@ -9756,7 +9756,7 @@
97569756
"Part1": "dv",
97579757
"Scope": "I",
97589758
"LanguageType": "L",
9759-
"RefName": "Dhivehi"
9759+
"RefName": "Divehi"
97609760
},
97619761
{
97629762
"Id": "diw",
@@ -14294,7 +14294,7 @@
1429414294
"Id": "haa",
1429514295
"Scope": "I",
1429614296
"LanguageType": "L",
14297-
"RefName": "Han"
14297+
"RefName": "H\u00E4n"
1429814298
},
1429914299
{
1430014300
"Id": "hab",
@@ -20854,7 +20854,7 @@
2085420854
"Id": "kwk",
2085520855
"Scope": "I",
2085620856
"LanguageType": "L",
20857-
"RefName": "Kwakiutl"
20857+
"RefName": "Kwak\u0027wala"
2085820858
},
2085920859
{
2086020860
"Id": "kwl",
@@ -23332,7 +23332,7 @@
2333223332
{
2333323333
"Id": "lut",
2333423334
"Scope": "I",
23335-
"LanguageType": "L",
23335+
"LanguageType": "E",
2333623336
"RefName": "Lushootseed"
2333723337
},
2333823338
{
@@ -24658,7 +24658,7 @@
2465824658
"Id": "mhn",
2465924659
"Scope": "I",
2466024660
"LanguageType": "L",
24661-
"RefName": "M\u00F3cheno"
24661+
"RefName": "M\u00F2cheno"
2466224662
},
2466324663
{
2466424664
"Id": "mho",
@@ -30186,7 +30186,7 @@
3018630186
"Part1": "ny",
3018730187
"Scope": "I",
3018830188
"LanguageType": "L",
30189-
"RefName": "Nyanja"
30189+
"RefName": "Chichewa"
3019030190
},
3019130191
{
3019230192
"Id": "nyb",
@@ -48030,7 +48030,7 @@
4803048030
"Id": "zmp",
4803148031
"Scope": "I",
4803248032
"LanguageType": "L",
48033-
"RefName": "Mpuono"
48033+
"RefName": "Mbuun"
4803448034
},
4803548035
{
4803648036
"Id": "zmq",

0 commit comments

Comments
 (0)