locusts 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.changeset/README.md +8 -0
  3. data/.changeset/cold-tomatoes-prove.md +5 -0
  4. data/.changeset/config.json +15 -0
  5. data/.changeset/purple-trainers-wash.md +5 -0
  6. data/.clang-format +270 -0
  7. data/.editorconfig +364 -0
  8. data/.eslintrc.js +9 -0
  9. data/.formatter.exs +4 -0
  10. data/.standard.yml +3 -0
  11. data/.syncpackrc +14 -0
  12. data/.vscode/settings.json +19 -0
  13. data/CMakeLists.txt +41 -0
  14. data/CONTRIBUTING.md +35 -0
  15. data/Cargo.lock +7 -0
  16. data/Cargo.toml +11 -0
  17. data/Dockerfile +15 -0
  18. data/GNUmakefile.am +11 -0
  19. data/LICENSE +12 -0
  20. data/Locusts.sln +28 -0
  21. data/README.md +69 -0
  22. data/Rakefile +15 -0
  23. data/build.gradle.kts +99 -0
  24. data/configure.ac +10 -0
  25. data/contrib/tag-repo +8 -0
  26. data/contrib/version-bump +23 -0
  27. data/deno.json +5 -0
  28. data/deno.lock +71 -0
  29. data/docs/.NET.md +29 -0
  30. data/docs/BEAM.md +25 -0
  31. data/docs/C.md +51 -0
  32. data/docs/Docker.md +14 -0
  33. data/docs/Go.md +33 -0
  34. data/docs/JVM.md +5 -0
  35. data/docs/JavaScript.md +8 -0
  36. data/docs/Python.md +34 -0
  37. data/docs/Rust.md +41 -0
  38. data/go.mod +3 -0
  39. data/gradle/libs.versions.toml +13 -0
  40. data/gradle/wrapper/gradle-wrapper.jar +0 -0
  41. data/gradle/wrapper/gradle-wrapper.properties +7 -0
  42. data/gradle.properties +7 -0
  43. data/gradlew +252 -0
  44. data/gradlew.bat +94 -0
  45. data/include/locusts.go +10 -0
  46. data/include/locusts.h +21 -0
  47. data/locusts.go +9 -0
  48. data/locusts_test.go +13 -0
  49. data/meson.build +21 -0
  50. data/mix.exs +44 -0
  51. data/mix.lock +8 -0
  52. data/ocusts.pc.in +9 -0
  53. data/package.json +25 -0
  54. data/pnpm-lock.yaml +5825 -0
  55. data/pnpm-workspace.yaml +2 -0
  56. data/pyproject.toml +17 -0
  57. data/requirements.txt +1 -0
  58. data/settings.gradle.kts +13 -0
  59. data/src/Locusts.cs +20 -0
  60. data/src/Locusts.csproj +37 -0
  61. data/src/__init__.py +0 -0
  62. data/src/lib.rs +23 -0
  63. data/src/locusts.c +3 -0
  64. data/src/locusts.ex +19 -0
  65. data/src/locusts.py +6 -0
  66. data/src/locusts.rb +14 -0
  67. data/src/main/kotlin/io/github/Locusts.kt +12 -0
  68. data/src/packages/eslint-config/README.md +3 -0
  69. data/src/packages/eslint-config/library.js +34 -0
  70. data/src/packages/eslint-config/package.json +17 -0
  71. data/src/packages/locusts/.eslintrc.js +9 -0
  72. data/src/packages/locusts/README.md +1 -0
  73. data/src/packages/locusts/deno.json +14 -0
  74. data/src/packages/locusts/mod.ts +15 -0
  75. data/src/packages/locusts/mod_test.ts +11 -0
  76. data/src/packages/locusts/package.json +35 -0
  77. data/src/packages/locusts/src/index.ts +17 -0
  78. data/src/packages/locusts/tests/locusts.test.ts +9 -0
  79. data/src/packages/locusts/tsconfig.json +13 -0
  80. data/src/packages/typescript-config/base.json +20 -0
  81. data/src/packages/typescript-config/package.json +9 -0
  82. data/src/test/kotlin/io/github/LocustsTest.kt +14 -0
  83. data/src/test_locusts.py +9 -0
  84. data/tests/GlobalUsings.cs +1 -0
  85. data/tests/Locusts.Testing.csproj +23 -0
  86. data/tests/Locusts.cs +12 -0
  87. data/tests/locusts_test.exs +8 -0
  88. data/tests/test_helper.exs +1 -0
  89. data/tests/test_helper.rb +7 -0
  90. data/tests/test_locusts.c +6 -0
  91. data/tests/test_locusts.rb +10 -0
  92. data/turbo.json +28 -0
  93. metadata +138 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 55ec310f46fc479d6920860b2e6167162d86aceb17db6b1569e8c2f66f7a4c1e
4
+ data.tar.gz: d3b793d0b270d1b2d782f8c931a49556bc3c79494091f733763768cc30bd6cf9
5
+ SHA512:
6
+ metadata.gz: d918f42d87710a625710a3f3a97fcb189c06a1493adf6de04b046fa843b537998b874553d1eb24b6babaa86cd37f351c6734a9d31389066cff868a2abe836d72
7
+ data.tar.gz: 78a151785a15093138398e2c0791089f0f07e738fc39ce2161a0e0f9a6c469bc6ffea042f9f4b5127f533711f6a491c175fee5bb9d26c097d86ccc36668f395d
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,5 @@
1
+ ---
2
+ "locusts": major
3
+ ---
4
+
5
+ feat: Add Ruby
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "restricted",
8
+ "baseBranch": "master",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": [],
11
+ "privatePackages": {
12
+ "version": true,
13
+ "tag": true
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ "locusts": major
3
+ ---
4
+
5
+ Bump major version (eventually)
data/.clang-format ADDED
@@ -0,0 +1,270 @@
1
+ ---
2
+ Language: Cpp
3
+ # BasedOnStyle: Google
4
+ AccessModifierOffset: -1
5
+ AlignAfterOpenBracket: Align
6
+ AlignArrayOfStructures: None
7
+ AlignConsecutiveAssignments:
8
+ Enabled: false
9
+ AcrossEmptyLines: false
10
+ AcrossComments: false
11
+ AlignCompound: false
12
+ PadOperators: true
13
+ AlignConsecutiveBitFields:
14
+ Enabled: false
15
+ AcrossEmptyLines: false
16
+ AcrossComments: false
17
+ AlignCompound: false
18
+ PadOperators: false
19
+ AlignConsecutiveDeclarations:
20
+ Enabled: false
21
+ AcrossEmptyLines: false
22
+ AcrossComments: false
23
+ AlignCompound: false
24
+ PadOperators: false
25
+ AlignConsecutiveMacros:
26
+ Enabled: false
27
+ AcrossEmptyLines: false
28
+ AcrossComments: false
29
+ AlignCompound: false
30
+ PadOperators: false
31
+ AlignConsecutiveShortCaseStatements:
32
+ Enabled: false
33
+ AcrossEmptyLines: false
34
+ AcrossComments: false
35
+ AlignCaseColons: false
36
+ AlignEscapedNewlines: Left
37
+ AlignOperands: Align
38
+ AlignTrailingComments:
39
+ Kind: Always
40
+ OverEmptyLines: 0
41
+ AllowAllArgumentsOnNextLine: true
42
+ AllowAllParametersOfDeclarationOnNextLine: true
43
+ AllowShortBlocksOnASingleLine: Never
44
+ AllowShortCaseLabelsOnASingleLine: false
45
+ AllowShortEnumsOnASingleLine: true
46
+ AllowShortFunctionsOnASingleLine: All
47
+ AllowShortIfStatementsOnASingleLine: WithoutElse
48
+ AllowShortLambdasOnASingleLine: All
49
+ AllowShortLoopsOnASingleLine: true
50
+ AlwaysBreakAfterDefinitionReturnType: None
51
+ AlwaysBreakAfterReturnType: None
52
+ AlwaysBreakBeforeMultilineStrings: true
53
+ AlwaysBreakTemplateDeclarations: Yes
54
+ AttributeMacros:
55
+ - __capability
56
+ BinPackArguments: true
57
+ BinPackParameters: true
58
+ BitFieldColonSpacing: Both
59
+ BraceWrapping:
60
+ AfterCaseLabel: false
61
+ AfterClass: false
62
+ AfterControlStatement: Never
63
+ AfterEnum: false
64
+ AfterExternBlock: false
65
+ AfterFunction: false
66
+ AfterNamespace: false
67
+ AfterObjCDeclaration: false
68
+ AfterStruct: false
69
+ AfterUnion: false
70
+ BeforeCatch: false
71
+ BeforeElse: false
72
+ BeforeLambdaBody: false
73
+ BeforeWhile: false
74
+ IndentBraces: false
75
+ SplitEmptyFunction: true
76
+ SplitEmptyRecord: true
77
+ SplitEmptyNamespace: true
78
+ BreakAfterAttributes: Never
79
+ BreakAfterJavaFieldAnnotations: false
80
+ BreakArrays: true
81
+ BreakBeforeBinaryOperators: None
82
+ BreakBeforeConceptDeclarations: Always
83
+ BreakBeforeBraces: Attach
84
+ BreakBeforeInlineASMColon: OnlyMultiline
85
+ BreakBeforeTernaryOperators: true
86
+ BreakConstructorInitializers: BeforeColon
87
+ BreakInheritanceList: BeforeColon
88
+ BreakStringLiterals: true
89
+ ColumnLimit: 80
90
+ CommentPragmas: '^ IWYU pragma:'
91
+ CompactNamespaces: false
92
+ ConstructorInitializerIndentWidth: 4
93
+ ContinuationIndentWidth: 4
94
+ Cpp11BracedListStyle: true
95
+ DerivePointerAlignment: true
96
+ DisableFormat: false
97
+ EmptyLineAfterAccessModifier: Never
98
+ EmptyLineBeforeAccessModifier: LogicalBlock
99
+ ExperimentalAutoDetectBinPacking: false
100
+ FixNamespaceComments: true
101
+ ForEachMacros:
102
+ - foreach
103
+ - Q_FOREACH
104
+ - BOOST_FOREACH
105
+ IfMacros:
106
+ - KJ_IF_MAYBE
107
+ IncludeBlocks: Regroup
108
+ IncludeCategories:
109
+ - Regex: '^<ext/.*\.h>'
110
+ Priority: 2
111
+ SortPriority: 0
112
+ CaseSensitive: false
113
+ - Regex: '^<.*\.h>'
114
+ Priority: 1
115
+ SortPriority: 0
116
+ CaseSensitive: false
117
+ - Regex: '^<.*'
118
+ Priority: 2
119
+ SortPriority: 0
120
+ CaseSensitive: false
121
+ - Regex: '.*'
122
+ Priority: 3
123
+ SortPriority: 0
124
+ CaseSensitive: false
125
+ IncludeIsMainRegex: '([-_](test|unittest))?$'
126
+ IncludeIsMainSourceRegex: ''
127
+ IndentAccessModifiers: false
128
+ IndentCaseBlocks: false
129
+ IndentCaseLabels: true
130
+ IndentExternBlock: AfterExternBlock
131
+ IndentGotoLabels: true
132
+ IndentPPDirectives: None
133
+ IndentRequiresClause: true
134
+ IndentWidth: 2
135
+ IndentWrappedFunctionNames: false
136
+ InsertBraces: false
137
+ InsertNewlineAtEOF: false
138
+ InsertTrailingCommas: None
139
+ IntegerLiteralSeparator:
140
+ Binary: 0
141
+ BinaryMinDigits: 0
142
+ Decimal: 0
143
+ DecimalMinDigits: 0
144
+ Hex: 0
145
+ HexMinDigits: 0
146
+ JavaScriptQuotes: Leave
147
+ JavaScriptWrapImports: true
148
+ KeepEmptyLinesAtTheStartOfBlocks: false
149
+ KeepEmptyLinesAtEOF: false
150
+ LambdaBodyIndentation: Signature
151
+ LineEnding: DeriveLF
152
+ MacroBlockBegin: ''
153
+ MacroBlockEnd: ''
154
+ MaxEmptyLinesToKeep: 1
155
+ NamespaceIndentation: None
156
+ ObjCBinPackProtocolList: Never
157
+ ObjCBlockIndentWidth: 2
158
+ ObjCBreakBeforeNestedBlockParam: true
159
+ ObjCSpaceAfterProperty: false
160
+ ObjCSpaceBeforeProtocolList: true
161
+ PackConstructorInitializers: NextLine
162
+ PenaltyBreakAssignment: 2
163
+ PenaltyBreakBeforeFirstCallParameter: 1
164
+ PenaltyBreakComment: 300
165
+ PenaltyBreakFirstLessLess: 120
166
+ PenaltyBreakOpenParenthesis: 0
167
+ PenaltyBreakString: 1000
168
+ PenaltyBreakTemplateDeclaration: 10
169
+ PenaltyExcessCharacter: 1000000
170
+ PenaltyIndentedWhitespace: 0
171
+ PenaltyReturnTypeOnItsOwnLine: 200
172
+ PointerAlignment: Left
173
+ PPIndentWidth: -1
174
+ QualifierAlignment: Leave
175
+ RawStringFormats:
176
+ - Language: Cpp
177
+ Delimiters:
178
+ - cc
179
+ - CC
180
+ - cpp
181
+ - Cpp
182
+ - CPP
183
+ - 'c++'
184
+ - 'C++'
185
+ CanonicalDelimiter: ''
186
+ BasedOnStyle: google
187
+ - Language: TextProto
188
+ Delimiters:
189
+ - pb
190
+ - PB
191
+ - proto
192
+ - PROTO
193
+ EnclosingFunctions:
194
+ - EqualsProto
195
+ - EquivToProto
196
+ - PARSE_PARTIAL_TEXT_PROTO
197
+ - PARSE_TEST_PROTO
198
+ - PARSE_TEXT_PROTO
199
+ - ParseTextOrDie
200
+ - ParseTextProtoOrDie
201
+ - ParseTestProto
202
+ - ParsePartialTestProto
203
+ CanonicalDelimiter: pb
204
+ BasedOnStyle: google
205
+ ReferenceAlignment: Pointer
206
+ ReflowComments: true
207
+ RemoveBracesLLVM: false
208
+ RemoveParentheses: Leave
209
+ RemoveSemicolon: false
210
+ RequiresClausePosition: OwnLine
211
+ RequiresExpressionIndentation: OuterScope
212
+ SeparateDefinitionBlocks: Leave
213
+ ShortNamespaceLines: 1
214
+ SortIncludes: CaseSensitive
215
+ SortJavaStaticImport: Before
216
+ SortUsingDeclarations: LexicographicNumeric
217
+ SpaceAfterCStyleCast: false
218
+ SpaceAfterLogicalNot: false
219
+ SpaceAfterTemplateKeyword: true
220
+ SpaceAroundPointerQualifiers: Default
221
+ SpaceBeforeAssignmentOperators: true
222
+ SpaceBeforeCaseColon: false
223
+ SpaceBeforeCpp11BracedList: false
224
+ SpaceBeforeCtorInitializerColon: true
225
+ SpaceBeforeInheritanceColon: true
226
+ SpaceBeforeJsonColon: false
227
+ SpaceBeforeParens: ControlStatements
228
+ SpaceBeforeParensOptions:
229
+ AfterControlStatements: true
230
+ AfterForeachMacros: true
231
+ AfterFunctionDefinitionName: false
232
+ AfterFunctionDeclarationName: false
233
+ AfterIfMacros: true
234
+ AfterOverloadedOperator: false
235
+ AfterRequiresInClause: false
236
+ AfterRequiresInExpression: false
237
+ BeforeNonEmptyParentheses: false
238
+ SpaceBeforeRangeBasedForLoopColon: true
239
+ SpaceBeforeSquareBrackets: false
240
+ SpaceInEmptyBlock: false
241
+ SpacesBeforeTrailingComments: 2
242
+ SpacesInAngles: Never
243
+ SpacesInContainerLiterals: true
244
+ SpacesInLineCommentPrefix:
245
+ Minimum: 1
246
+ Maximum: -1
247
+ SpacesInParens: Never
248
+ SpacesInParensOptions:
249
+ InCStyleCasts: false
250
+ InConditionalStatements: false
251
+ InEmptyParentheses: false
252
+ Other: false
253
+ SpacesInSquareBrackets: false
254
+ Standard: Auto
255
+ StatementAttributeLikeMacros:
256
+ - Q_EMIT
257
+ StatementMacros:
258
+ - Q_UNUSED
259
+ - QT_REQUIRE_VERSION
260
+ TabWidth: 8
261
+ UseTab: Never
262
+ VerilogBreakBetweenInstancePorts: true
263
+ WhitespaceSensitiveMacros:
264
+ - BOOST_PP_STRINGIZE
265
+ - CF_SWIFT_NAME
266
+ - NS_SWIFT_NAME
267
+ - PP_STRINGIZE
268
+ - STRINGIZE
269
+ ...
270
+
data/.editorconfig ADDED
@@ -0,0 +1,364 @@
1
+ root = true
2
+
3
+ # All files
4
+ [*]
5
+ indent_style = space
6
+
7
+ # Xml files
8
+ [*.xml]
9
+ indent_size = 2
10
+
11
+ # C# files
12
+ [*.cs]
13
+
14
+ #### Core EditorConfig Options ####
15
+
16
+ # Indentation and spacing
17
+ indent_size = 4
18
+ tab_width = 4
19
+
20
+ # New line preferences
21
+ end_of_line = crlf
22
+ insert_final_newline = false
23
+
24
+ #### .NET Coding Conventions ####
25
+ [*.{cs,vb}]
26
+
27
+ # Organize usings
28
+ dotnet_separate_import_directive_groups = true
29
+ dotnet_sort_system_directives_first = true
30
+ file_header_template = unset
31
+
32
+ # this. and Me. preferences
33
+ dotnet_style_qualification_for_event = false:silent
34
+ dotnet_style_qualification_for_field = false:silent
35
+ dotnet_style_qualification_for_method = false:silent
36
+ dotnet_style_qualification_for_property = false:silent
37
+
38
+ # Language keywords vs BCL types preferences
39
+ dotnet_style_predefined_type_for_locals_parameters_members = true:silent
40
+ dotnet_style_predefined_type_for_member_access = true:silent
41
+
42
+ # Parentheses preferences
43
+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
44
+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
45
+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
46
+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
47
+
48
+ # Modifier preferences
49
+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
50
+
51
+ # Expression-level preferences
52
+ dotnet_style_coalesce_expression = true:suggestion
53
+ dotnet_style_collection_initializer = true:suggestion
54
+ dotnet_style_explicit_tuple_names = true:suggestion
55
+ dotnet_style_null_propagation = true:suggestion
56
+ dotnet_style_object_initializer = true:suggestion
57
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
58
+ dotnet_style_prefer_auto_properties = true:suggestion
59
+ dotnet_style_prefer_compound_assignment = true:suggestion
60
+ dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
61
+ dotnet_style_prefer_conditional_expression_over_return = true:suggestion
62
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
63
+ dotnet_style_prefer_inferred_tuple_names = true:suggestion
64
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
65
+ dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
66
+ dotnet_style_prefer_simplified_interpolation = true:suggestion
67
+
68
+ # Field preferences
69
+ dotnet_style_readonly_field = true:warning
70
+
71
+ # Parameter preferences
72
+ dotnet_code_quality_unused_parameters = all:suggestion
73
+
74
+ # Suppression preferences
75
+ dotnet_remove_unnecessary_suppression_exclusions = none
76
+
77
+ #### C# Coding Conventions ####
78
+ [*.cs]
79
+
80
+ # var preferences
81
+ csharp_style_var_elsewhere = false:silent
82
+ csharp_style_var_for_built_in_types = false:silent
83
+ csharp_style_var_when_type_is_apparent = false:silent
84
+
85
+ # Expression-bodied members
86
+ csharp_style_expression_bodied_accessors = true:silent
87
+ csharp_style_expression_bodied_constructors = false:silent
88
+ csharp_style_expression_bodied_indexers = true:silent
89
+ csharp_style_expression_bodied_lambdas = true:suggestion
90
+ csharp_style_expression_bodied_local_functions = false:silent
91
+ csharp_style_expression_bodied_methods = false:silent
92
+ csharp_style_expression_bodied_operators = false:silent
93
+ csharp_style_expression_bodied_properties = true:silent
94
+
95
+ # Pattern matching preferences
96
+ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
97
+ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
98
+ csharp_style_prefer_not_pattern = true:suggestion
99
+ csharp_style_prefer_pattern_matching = true:silent
100
+ csharp_style_prefer_switch_expression = true:suggestion
101
+
102
+ # Null-checking preferences
103
+ csharp_style_conditional_delegate_call = true:suggestion
104
+
105
+ # Modifier preferences
106
+ csharp_prefer_static_local_function = true:warning
107
+ csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
108
+
109
+ # Code-block preferences
110
+ csharp_prefer_braces = true:silent
111
+ csharp_prefer_simple_using_statement = true:suggestion
112
+
113
+ # Expression-level preferences
114
+ csharp_prefer_simple_default_expression = true:suggestion
115
+ csharp_style_deconstructed_variable_declaration = true:suggestion
116
+ csharp_style_inlined_variable_declaration = true:suggestion
117
+ csharp_style_pattern_local_over_anonymous_function = true:suggestion
118
+ csharp_style_prefer_index_operator = true:suggestion
119
+ csharp_style_prefer_range_operator = true:suggestion
120
+ csharp_style_throw_expression = true:suggestion
121
+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
122
+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
123
+
124
+ # 'using' directive preferences
125
+ csharp_using_directive_placement = outside_namespace:silent
126
+
127
+ #### C# Formatting Rules ####
128
+
129
+ # New line preferences
130
+ csharp_new_line_before_catch = true
131
+ csharp_new_line_before_else = true
132
+ csharp_new_line_before_finally = true
133
+ csharp_new_line_before_members_in_anonymous_types = true
134
+ csharp_new_line_before_members_in_object_initializers = true
135
+ csharp_new_line_before_open_brace = all
136
+ csharp_new_line_between_query_expression_clauses = true
137
+
138
+ # Indentation preferences
139
+ csharp_indent_block_contents = true
140
+ csharp_indent_braces = false
141
+ csharp_indent_case_contents = true
142
+ csharp_indent_case_contents_when_block = true
143
+ csharp_indent_labels = one_less_than_current
144
+ csharp_indent_switch_labels = true
145
+
146
+ # Space preferences
147
+ csharp_space_after_cast = false
148
+ csharp_space_after_colon_in_inheritance_clause = true
149
+ csharp_space_after_comma = true
150
+ csharp_space_after_dot = false
151
+ csharp_space_after_keywords_in_control_flow_statements = true
152
+ csharp_space_after_semicolon_in_for_statement = true
153
+ csharp_space_around_binary_operators = before_and_after
154
+ csharp_space_around_declaration_statements = false
155
+ csharp_space_before_colon_in_inheritance_clause = true
156
+ csharp_space_before_comma = false
157
+ csharp_space_before_dot = false
158
+ csharp_space_before_open_square_brackets = false
159
+ csharp_space_before_semicolon_in_for_statement = false
160
+ csharp_space_between_empty_square_brackets = false
161
+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
162
+ csharp_space_between_method_call_name_and_opening_parenthesis = false
163
+ csharp_space_between_method_call_parameter_list_parentheses = false
164
+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
165
+ csharp_space_between_method_declaration_name_and_open_parenthesis = false
166
+ csharp_space_between_method_declaration_parameter_list_parentheses = false
167
+ csharp_space_between_parentheses = false
168
+ csharp_space_between_square_brackets = false
169
+
170
+ # Wrapping preferences
171
+ csharp_preserve_single_line_blocks = true
172
+ csharp_preserve_single_line_statements = true
173
+
174
+ #### Naming styles ####
175
+ [*.{cs,vb}]
176
+
177
+ # Naming rules
178
+
179
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.severity = suggestion
180
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.symbols = types_and_namespaces
181
+ dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.style = pascalcase
182
+
183
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.severity = suggestion
184
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.symbols = interfaces
185
+ dotnet_naming_rule.interfaces_should_be_ipascalcase.style = ipascalcase
186
+
187
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.severity = suggestion
188
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.symbols = type_parameters
189
+ dotnet_naming_rule.type_parameters_should_be_tpascalcase.style = tpascalcase
190
+
191
+ dotnet_naming_rule.methods_should_be_pascalcase.severity = suggestion
192
+ dotnet_naming_rule.methods_should_be_pascalcase.symbols = methods
193
+ dotnet_naming_rule.methods_should_be_pascalcase.style = pascalcase
194
+
195
+ dotnet_naming_rule.properties_should_be_pascalcase.severity = suggestion
196
+ dotnet_naming_rule.properties_should_be_pascalcase.symbols = properties
197
+ dotnet_naming_rule.properties_should_be_pascalcase.style = pascalcase
198
+
199
+ dotnet_naming_rule.events_should_be_pascalcase.severity = suggestion
200
+ dotnet_naming_rule.events_should_be_pascalcase.symbols = events
201
+ dotnet_naming_rule.events_should_be_pascalcase.style = pascalcase
202
+
203
+ dotnet_naming_rule.local_variables_should_be_camelcase.severity = suggestion
204
+ dotnet_naming_rule.local_variables_should_be_camelcase.symbols = local_variables
205
+ dotnet_naming_rule.local_variables_should_be_camelcase.style = camelcase
206
+
207
+ dotnet_naming_rule.local_constants_should_be_camelcase.severity = suggestion
208
+ dotnet_naming_rule.local_constants_should_be_camelcase.symbols = local_constants
209
+ dotnet_naming_rule.local_constants_should_be_camelcase.style = camelcase
210
+
211
+ dotnet_naming_rule.parameters_should_be_camelcase.severity = suggestion
212
+ dotnet_naming_rule.parameters_should_be_camelcase.symbols = parameters
213
+ dotnet_naming_rule.parameters_should_be_camelcase.style = camelcase
214
+
215
+ dotnet_naming_rule.public_fields_should_be_pascalcase.severity = suggestion
216
+ dotnet_naming_rule.public_fields_should_be_pascalcase.symbols = public_fields
217
+ dotnet_naming_rule.public_fields_should_be_pascalcase.style = pascalcase
218
+
219
+ dotnet_naming_rule.private_fields_should_be__camelcase.severity = suggestion
220
+ dotnet_naming_rule.private_fields_should_be__camelcase.symbols = private_fields
221
+ dotnet_naming_rule.private_fields_should_be__camelcase.style = _camelcase
222
+
223
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.severity = suggestion
224
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.symbols = private_static_fields
225
+ dotnet_naming_rule.private_static_fields_should_be_s_camelcase.style = s_camelcase
226
+
227
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.severity = suggestion
228
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.symbols = public_constant_fields
229
+ dotnet_naming_rule.public_constant_fields_should_be_pascalcase.style = pascalcase
230
+
231
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.severity = suggestion
232
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.symbols = private_constant_fields
233
+ dotnet_naming_rule.private_constant_fields_should_be_pascalcase.style = pascalcase
234
+
235
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.severity = suggestion
236
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.symbols = public_static_readonly_fields
237
+ dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.style = pascalcase
238
+
239
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.severity = suggestion
240
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.symbols = private_static_readonly_fields
241
+ dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.style = pascalcase
242
+
243
+ dotnet_naming_rule.enums_should_be_pascalcase.severity = suggestion
244
+ dotnet_naming_rule.enums_should_be_pascalcase.symbols = enums
245
+ dotnet_naming_rule.enums_should_be_pascalcase.style = pascalcase
246
+
247
+ dotnet_naming_rule.local_functions_should_be_pascalcase.severity = suggestion
248
+ dotnet_naming_rule.local_functions_should_be_pascalcase.symbols = local_functions
249
+ dotnet_naming_rule.local_functions_should_be_pascalcase.style = pascalcase
250
+
251
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = suggestion
252
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members
253
+ dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase
254
+
255
+ # Symbol specifications
256
+
257
+ dotnet_naming_symbols.interfaces.applicable_kinds = interface
258
+ dotnet_naming_symbols.interfaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
259
+ dotnet_naming_symbols.interfaces.required_modifiers =
260
+
261
+ dotnet_naming_symbols.enums.applicable_kinds = enum
262
+ dotnet_naming_symbols.enums.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
263
+ dotnet_naming_symbols.enums.required_modifiers =
264
+
265
+ dotnet_naming_symbols.events.applicable_kinds = event
266
+ dotnet_naming_symbols.events.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
267
+ dotnet_naming_symbols.events.required_modifiers =
268
+
269
+ dotnet_naming_symbols.methods.applicable_kinds = method
270
+ dotnet_naming_symbols.methods.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
271
+ dotnet_naming_symbols.methods.required_modifiers =
272
+
273
+ dotnet_naming_symbols.properties.applicable_kinds = property
274
+ dotnet_naming_symbols.properties.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
275
+ dotnet_naming_symbols.properties.required_modifiers =
276
+
277
+ dotnet_naming_symbols.public_fields.applicable_kinds = field
278
+ dotnet_naming_symbols.public_fields.applicable_accessibilities = public, internal
279
+ dotnet_naming_symbols.public_fields.required_modifiers =
280
+
281
+ dotnet_naming_symbols.private_fields.applicable_kinds = field
282
+ dotnet_naming_symbols.private_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
283
+ dotnet_naming_symbols.private_fields.required_modifiers =
284
+
285
+ dotnet_naming_symbols.private_static_fields.applicable_kinds = field
286
+ dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
287
+ dotnet_naming_symbols.private_static_fields.required_modifiers = static
288
+
289
+ dotnet_naming_symbols.types_and_namespaces.applicable_kinds = namespace, class, struct, interface, enum
290
+ dotnet_naming_symbols.types_and_namespaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
291
+ dotnet_naming_symbols.types_and_namespaces.required_modifiers =
292
+
293
+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
294
+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
295
+ dotnet_naming_symbols.non_field_members.required_modifiers =
296
+
297
+ dotnet_naming_symbols.type_parameters.applicable_kinds = namespace
298
+ dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
299
+ dotnet_naming_symbols.type_parameters.required_modifiers =
300
+
301
+ dotnet_naming_symbols.private_constant_fields.applicable_kinds = field
302
+ dotnet_naming_symbols.private_constant_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
303
+ dotnet_naming_symbols.private_constant_fields.required_modifiers = const
304
+
305
+ dotnet_naming_symbols.local_variables.applicable_kinds = local
306
+ dotnet_naming_symbols.local_variables.applicable_accessibilities = local
307
+ dotnet_naming_symbols.local_variables.required_modifiers =
308
+
309
+ dotnet_naming_symbols.local_constants.applicable_kinds = local
310
+ dotnet_naming_symbols.local_constants.applicable_accessibilities = local
311
+ dotnet_naming_symbols.local_constants.required_modifiers = const
312
+
313
+ dotnet_naming_symbols.parameters.applicable_kinds = parameter
314
+ dotnet_naming_symbols.parameters.applicable_accessibilities = *
315
+ dotnet_naming_symbols.parameters.required_modifiers =
316
+
317
+ dotnet_naming_symbols.public_constant_fields.applicable_kinds = field
318
+ dotnet_naming_symbols.public_constant_fields.applicable_accessibilities = public, internal
319
+ dotnet_naming_symbols.public_constant_fields.required_modifiers = const
320
+
321
+ dotnet_naming_symbols.public_static_readonly_fields.applicable_kinds = field
322
+ dotnet_naming_symbols.public_static_readonly_fields.applicable_accessibilities = public, internal
323
+ dotnet_naming_symbols.public_static_readonly_fields.required_modifiers = readonly, static
324
+
325
+ dotnet_naming_symbols.private_static_readonly_fields.applicable_kinds = field
326
+ dotnet_naming_symbols.private_static_readonly_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
327
+ dotnet_naming_symbols.private_static_readonly_fields.required_modifiers = readonly, static
328
+
329
+ dotnet_naming_symbols.local_functions.applicable_kinds = local_function
330
+ dotnet_naming_symbols.local_functions.applicable_accessibilities = *
331
+ dotnet_naming_symbols.local_functions.required_modifiers =
332
+
333
+ # Naming styles
334
+
335
+ dotnet_naming_style.pascalcase.required_prefix =
336
+ dotnet_naming_style.pascalcase.required_suffix =
337
+ dotnet_naming_style.pascalcase.word_separator =
338
+ dotnet_naming_style.pascalcase.capitalization = pascal_case
339
+
340
+ dotnet_naming_style.ipascalcase.required_prefix = I
341
+ dotnet_naming_style.ipascalcase.required_suffix =
342
+ dotnet_naming_style.ipascalcase.word_separator =
343
+ dotnet_naming_style.ipascalcase.capitalization = pascal_case
344
+
345
+ dotnet_naming_style.tpascalcase.required_prefix = T
346
+ dotnet_naming_style.tpascalcase.required_suffix =
347
+ dotnet_naming_style.tpascalcase.word_separator =
348
+ dotnet_naming_style.tpascalcase.capitalization = pascal_case
349
+
350
+ dotnet_naming_style._camelcase.required_prefix = _
351
+ dotnet_naming_style._camelcase.required_suffix =
352
+ dotnet_naming_style._camelcase.word_separator =
353
+ dotnet_naming_style._camelcase.capitalization = camel_case
354
+
355
+ dotnet_naming_style.camelcase.required_prefix =
356
+ dotnet_naming_style.camelcase.required_suffix =
357
+ dotnet_naming_style.camelcase.word_separator =
358
+ dotnet_naming_style.camelcase.capitalization = camel_case
359
+
360
+ dotnet_naming_style.s_camelcase.required_prefix = s_
361
+ dotnet_naming_style.s_camelcase.required_suffix =
362
+ dotnet_naming_style.s_camelcase.word_separator =
363
+ dotnet_naming_style.s_camelcase.capitalization = camel_case
364
+
data/.eslintrc.js ADDED
@@ -0,0 +1,9 @@
1
+ /** @type {import("eslint").Linter.Config} */
2
+ module.exports = {
3
+ root: true,
4
+ extends: ["@repo/eslint-config/library.js"],
5
+ parser: "@typescript-eslint/parser",
6
+ parserOptions: {
7
+ project: true,
8
+ },
9
+ };
data/.formatter.exs ADDED
@@ -0,0 +1,4 @@
1
+ # Used by "mix format"
2
+ [
3
+ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
4
+ ]