xrechnung 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 21597aff2df9dfe4043a54fc2ca81a62cb6242127f7374779a24706e1bb619f2
4
+ data.tar.gz: 84ac1f6e15d56004555791669ebf2906480e6e310d154c785f5d6e39b1debcba
5
+ SHA512:
6
+ metadata.gz: 60157aaa2e4864e262b27db75ffcd507db70a01862c943def69ef94e75b7f29eeca053afc93699b4166f96069c7ab88e312b257127628a4e50fa57e1a230dc14
7
+ data.tar.gz: 5528a85885fa6517689546baa2de4073346402d46f26e4c1e6fe6d70af564251519b6b6def76707f6b86570f2b5d4abf2df2bb288d8b3abdd29fcdf005327351
@@ -0,0 +1,32 @@
1
+ name: Validate spec fixtures
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ validate:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+
12
+ - uses: actions/setup-java@v2
13
+ with:
14
+ distribution: "adopt"
15
+ java-version: "11" # LTS
16
+
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: "2.7"
20
+ bundler-cache: true
21
+
22
+ - name: Prepare validator
23
+ run: bundle exec rake validator:download
24
+
25
+ - name: Run validator
26
+ run: bundle exec rake validator:run
27
+
28
+ - uses: actions/upload-artifact@v2
29
+ if: failure()
30
+ with:
31
+ name: validation-results
32
+ path: validator/results/*
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # rbenv/rvm/...
14
+ .ruby-version
15
+ .ruby-gemset
16
+ .gems/
17
+
18
+ # validator working directory
19
+ validator/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,375 @@
1
+ # REQUIRES RUBOCOP 1.8.X
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - bin/**/*
6
+ - db/migrate/**/*
7
+ - db/schema.rb
8
+ - db/seeds.rb
9
+ - node_modules/**/*
10
+ - tmp/**/*
11
+ - vendor/**/*
12
+ - Gemfile
13
+ DisplayCopNames: true
14
+ StyleGuideCopsOnly: false
15
+ TargetRubyVersion: 2.7
16
+
17
+ ## Layout Cops - https://docs.rubocop.org/rubocop/cops_layout.html
18
+
19
+ Layout/ArgumentAlignment:
20
+ EnforcedStyle: with_fixed_indentation
21
+ IndentationWidth: 2
22
+
23
+ Layout/CaseIndentation:
24
+ EnforcedStyle: end
25
+
26
+ Layout/EmptyLinesAroundArguments:
27
+ Enabled: false
28
+
29
+ Layout/EmptyLinesAroundAttributeAccessor:
30
+ Enabled: false
31
+
32
+ Layout/EndAlignment:
33
+ EnforcedStyleAlignWith: start_of_line
34
+
35
+ Layout/ExtraSpacing:
36
+ AllowBeforeTrailingComments: true
37
+ ForceEqualSignAlignment: true
38
+
39
+ Layout/FirstArrayElementIndentation:
40
+ EnforcedStyle: consistent
41
+
42
+ Layout/FirstHashElementIndentation:
43
+ EnforcedStyle: consistent
44
+
45
+ Layout/HashAlignment:
46
+ EnforcedColonStyle: table
47
+ EnforcedHashRocketStyle: table
48
+
49
+ Layout/LineLength:
50
+ Exclude:
51
+ - spec/**/*.rb
52
+ - config/**/*.rb
53
+ - app/lib/cleanup.rb
54
+ - app/lib/takedown.rb
55
+ Max: 120
56
+
57
+ Layout/MultilineMethodCallIndentation:
58
+ EnforcedStyle: indented
59
+ IndentationWidth: 2
60
+
61
+ Layout/SpaceAroundMethodCallOperator:
62
+ Enabled: true
63
+
64
+ Layout/SpaceBeforeBlockBraces:
65
+ EnforcedStyleForEmptyBraces: space
66
+
67
+ Layout/SpaceBeforeBrackets:
68
+ Enabled: true
69
+
70
+ Layout/SpaceInsideBlockBraces:
71
+ SpaceBeforeBlockParameters: true
72
+
73
+ ## Lint Cops - https://docs.rubocop.org/rubocop/cops_lint.html
74
+
75
+ Lint/DeprecatedConstants:
76
+ Enabled: true
77
+
78
+ Lint/LambdaWithoutLiteralBlock:
79
+ Enabled: true
80
+
81
+ Lint/RedundantDirGlobSort:
82
+ Enabled: false # this is only redundant in Ruby 3.0+
83
+
84
+ Lint/AmbiguousAssignment:
85
+ Enabled: true
86
+
87
+ Lint/DuplicateBranch:
88
+ Enabled: true
89
+
90
+ Lint/DuplicateRegexpCharacterClassElement:
91
+ Enabled: true
92
+
93
+ Lint/EmptyBlock:
94
+ Enabled: true
95
+ AllowComments: true
96
+ AllowEmptyLambdas: true # sometimes needed as fallback
97
+
98
+ Lint/EmptyClass:
99
+ Enabled: true
100
+
101
+ Lint/NoReturnInBeginEndBlocks:
102
+ Enabled: true
103
+
104
+ Lint/ToEnumArguments:
105
+ Enabled: true
106
+
107
+ Lint/UnexpectedBlockArity:
108
+ Enabled: true
109
+
110
+ Lint/UnmodifiedReduceAccumulator:
111
+ Enabled: true
112
+
113
+ Lint/BinaryOperatorWithIdenticalOperands:
114
+ Enabled: false # generates false positives
115
+
116
+ Lint/DeprecatedOpenSSLConstant:
117
+ Enabled: true
118
+
119
+ Lint/DuplicateElsifCondition:
120
+ Enabled: true
121
+
122
+ Lint/DuplicateRescueException:
123
+ Enabled: true
124
+
125
+ Lint/EmptyConditionalBody:
126
+ AllowComments: false
127
+ Enabled: true
128
+
129
+ Lint/FloatComparison:
130
+ Enabled: true
131
+
132
+ Lint/MissingSuper:
133
+ Enabled: true
134
+
135
+ Lint/MixedRegexpCaptureTypes:
136
+ Enabled: true
137
+
138
+ Lint/OutOfRangeRegexpRef:
139
+ Enabled: true
140
+
141
+ # maybe consider deactivating: we've got lot of namespaced exceptions, i.e.
142
+ # something like:
143
+ #
144
+ # module Foo
145
+ # Exception = Class.new(StandardError)
146
+ # TimeoutError = Class.new(Exception)
147
+ # end
148
+ #
149
+ # which might cause false positives
150
+ Lint/RaiseException:
151
+ Enabled: true
152
+
153
+ Lint/SelfAssignment:
154
+ Enabled: true
155
+
156
+ Lint/StructNewOverride:
157
+ Enabled: true
158
+
159
+ Lint/SuppressedException:
160
+ AllowComments: true
161
+
162
+ Lint/TopLevelReturnWithArgument:
163
+ Enabled: true
164
+
165
+ Lint/UnreachableLoop:
166
+ Enabled: true
167
+
168
+
169
+ ## Metrics Cops - https://docs.rubocop.org/rubocop/cops_metrics.html
170
+
171
+ Metrics/AbcSize:
172
+ Exclude:
173
+ - spec/**/*.rb
174
+
175
+ Metrics/BlockLength:
176
+ Exclude:
177
+ - spec/**/*.rb
178
+ - config/**/*.rb
179
+
180
+ Metrics/MethodLength:
181
+ Max: 20
182
+
183
+ Metrics/ModuleLength:
184
+ CountComments: false # count full line comments?
185
+ Max: 120
186
+
187
+ Metrics/ParameterLists:
188
+ Max: 6
189
+
190
+ ## Naming Cops - https://docs.rubocop.org/rubocop/cops_naming.html
191
+
192
+ Naming/AccessorMethodName:
193
+ Exclude:
194
+ - 'app/controllers/**/*.rb' # sigh, InheritedResources...
195
+
196
+ Naming/MemoizedInstanceVariableName:
197
+ Enabled: false
198
+
199
+ Naming/MethodParameterName:
200
+ AllowedNames: [io, id, db, ex]
201
+
202
+ Naming/RescuedExceptionsVariableName:
203
+ PreferredName: err
204
+
205
+ ## Style Cops - https://docs.rubocop.org/rubocop/cops_style.html
206
+
207
+ Style/EndlessMethod:
208
+ Enabled: true
209
+
210
+ Style/ArgumentsForwarding:
211
+ Enabled: true
212
+ AllowOnlyRestArgument: true
213
+
214
+ Style/CollectionCompact:
215
+ Enabled: true
216
+
217
+ Style/DocumentDynamicEvalDefinition:
218
+ Enabled: true
219
+
220
+ Style/HashExcept:
221
+ Enabled: true
222
+
223
+ Style/NegatedIfElseCondition:
224
+ Enabled: true
225
+
226
+ Style/NilLambda:
227
+ Enabled: true
228
+
229
+ Style/RedundantArgument:
230
+ Enabled: false # does not make code clearer
231
+
232
+ Style/SwapValues:
233
+ Enabled: true
234
+
235
+ Style/AccessorGrouping:
236
+ Enabled: false
237
+
238
+ Style/ArrayCoercion:
239
+ Enabled: true
240
+
241
+ Style/AsciiComments:
242
+ Enabled: false
243
+
244
+ Style/BisectedAttrAccessor:
245
+ Enabled: true
246
+
247
+ Style/BlockDelimiters:
248
+ AllowBracesOnProceduralOneLiners: true
249
+ EnforcedStyle: semantic
250
+
251
+ Style/CaseLikeIf:
252
+ Enabled: true
253
+
254
+ Style/ClassAndModuleChildren:
255
+ Exclude:
256
+ - app/models/**/*.rb
257
+ - app/controllers/**/*.rb
258
+
259
+ Style/Documentation:
260
+ Enabled: false
261
+
262
+ Style/EmptyMethod:
263
+ EnforcedStyle: expanded
264
+
265
+ Style/ExplicitBlockArgument:
266
+ Enabled: true
267
+
268
+ Style/ExponentialNotation:
269
+ Enabled: true
270
+ EnforcedStyle: engineering
271
+
272
+ Style/FormatStringToken:
273
+ Enabled: false
274
+
275
+ Style/FrozenStringLiteralComment:
276
+ Enabled: false
277
+
278
+ Style/GlobalStdStream:
279
+ Enabled: true
280
+
281
+ Style/HashAsLastArrayItem:
282
+ Enabled: true
283
+
284
+ Style/HashEachMethods:
285
+ Enabled: true
286
+
287
+ Style/HashLikeCase:
288
+ Enabled: true
289
+
290
+ Style/HashTransformKeys:
291
+ Enabled: true
292
+
293
+ Style/HashTransformValues:
294
+ Enabled: true
295
+
296
+ Style/Lambda:
297
+ EnforcedStyle: literal
298
+
299
+ Style/ModuleFunction:
300
+ Enabled: false
301
+
302
+ Style/NumericPredicate:
303
+ Enabled: false
304
+
305
+ Style/OptionalBooleanParameter:
306
+ Enabled: true
307
+
308
+ Style/RedundantAssignment:
309
+ Enabled: true
310
+
311
+ Style/RedundantFetchBlock:
312
+ Enabled: true
313
+
314
+ Style/RedundantFileExtensionInRequire:
315
+ Enabled: true
316
+
317
+ Style/RedundantRegexpCharacterClass:
318
+ Enabled: true
319
+
320
+ Style/RedundantRegexpEscape:
321
+ Enabled: true
322
+
323
+ Style/RescueModifier:
324
+ Enabled: false
325
+
326
+ Style/SingleArgumentDig:
327
+ Enabled: true
328
+
329
+ Style/SlicingWithRange:
330
+ Enabled: true
331
+
332
+ Style/StringConcatenation:
333
+ Enabled: true
334
+
335
+ Style/StringLiterals:
336
+ EnforcedStyle: double_quotes
337
+
338
+ Style/TrailingCommaInArguments:
339
+ EnforcedStyleForMultiline: comma
340
+
341
+ Style/TrailingCommaInArrayLiteral:
342
+ EnforcedStyleForMultiline: comma
343
+
344
+ Style/TrailingCommaInHashLiteral:
345
+ EnforcedStyleForMultiline: comma
346
+
347
+ require:
348
+ - rubocop-rspec
349
+
350
+ RSpec/AnyInstance:
351
+ Enabled: false
352
+
353
+ RSpec/ContextWording:
354
+ Enabled: false
355
+
356
+ RSpec/DescribedClass:
357
+ Enabled: false
358
+
359
+ RSpec/DescribeClass:
360
+ Exclude:
361
+ - 'spec/features/**/*.rb'
362
+
363
+ RSpec/ExampleLength:
364
+ Max: 30
365
+
366
+ RSpec/ImplicitSubject:
367
+ Enabled: false
368
+
369
+ RSpec/MultipleExpectations:
370
+ Max: 5
371
+ Exclude:
372
+ - 'spec/features/**/*.rb'
373
+
374
+ RSpec/NestedGroups:
375
+ Max: 6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jk@digineo.de. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/