defmastership 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +15 -1
  4. data/Gemfile +27 -7
  5. data/Guardfile +44 -0
  6. data/config/cucumber.yml +3 -0
  7. data/config/mutant.yml +4 -0
  8. data/config/reek.yml +129 -105
  9. data/config/rubocop.yml +72 -28
  10. data/defmastership.gemspec +5 -3
  11. data/features/changeref.feature +0 -8
  12. data/features/definition_checksum.feature +0 -10
  13. data/features/definition_version.feature +168 -10
  14. data/features/export.feature +23 -18
  15. data/features/modify.feature +1 -5
  16. data/features/rename_included_files.feature +0 -5
  17. data/features/step_definitions/git_steps.rb +19 -0
  18. data/lib/defmastership/constants.rb +5 -3
  19. data/lib/defmastership/definition.rb +2 -2
  20. data/lib/defmastership/document.rb +6 -14
  21. data/lib/defmastership/update_def_modifier.rb +1 -1
  22. data/lib/defmastership/update_def_version_modifier.rb +30 -5
  23. data/lib/defmastership/version.rb +1 -1
  24. data/spec/unit/def_mastership/batch_modifier_spec.rb +2 -0
  25. data/spec/unit/def_mastership/modifier_factory_spec.rb +1 -0
  26. data/spec/unit/def_mastership/modifier_spec.rb +8 -6
  27. data/spec/unit/def_mastership/update_def_modifier_spec.rb +2 -0
  28. data/spec/unit/def_mastership/update_def_version_modifier_spec.rb +225 -33
  29. data/tasks/code_quality.rake +74 -0
  30. data/tasks/test.rake +6 -21
  31. metadata +36 -11
  32. data/.rubocop.yml +0 -76
  33. data/config/devtools.yml +0 -2
  34. data/config/flay.yml +0 -3
  35. data/config/flog.yml +0 -2
  36. data/config/yardstick.yml +0 -2
  37. data/cucumber.yml +0 -2
  38. data/tasks/smelling_code.rake +0 -38
  39. /data/{.rspec → config/rspec} +0 -0
data/.rubocop.yml DELETED
@@ -1,76 +0,0 @@
1
- # The behavior of RuboCop can be controlled via the .rubocop.yml
2
- # configuration file. It makes it possible to enable/disable
3
- # certain cops (checks) and to alter their behavior if they accept
4
- # any parameters. The file can be placed either in your home
5
- # directory or in some project directory.
6
- #
7
- # RuboCop will start looking for the configuration file in the directory
8
- # where the inspected file is and continue its way up to the root directory.
9
- #
10
- # See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
11
-
12
- require:
13
- - rubocop-performance
14
- - rubocop-rspec
15
- - rubocop-rake
16
-
17
- AllCops:
18
- TargetRubyVersion: 2.7
19
- EnabledByDefault: true
20
- DisplayCopNames: true
21
-
22
- Style/Copyright:
23
- Enabled: true
24
- Notice: 'Copyright (\(c\) )?202[0-9] Jerome Arbez-Gindre'
25
- AutocorrectNotice: '# Copyright (c) 2023 Jerome Arbez-Gindre'
26
-
27
- Lint/ConstantResolution: # Not available ins rubocop 0.81
28
- Enabled: false
29
-
30
- Style/DocumentationMethod:
31
- Enabled: false
32
-
33
- Style/StringHashKeys :
34
- Enabled: true
35
- Exclude:
36
- - '*.gemspec'
37
- - 'spec/**/*'
38
-
39
- Style/MissingElse:
40
- EnforcedStyle: case
41
-
42
- Metrics/ModuleLength :
43
- Exclude:
44
- - 'spec/**/*'
45
-
46
- Metrics/BlockLength :
47
- Exclude:
48
- - 'spec/**/*'
49
- - '*.gemspec'
50
-
51
- Security/Eval :
52
- Exclude:
53
- - 'Rakefile'
54
-
55
- Style/ConstantVisibility :
56
- Exclude:
57
- # there is one unique explicit constant visibility for all
58
- # constants
59
- - 'lib/defmastership/constants.rb'
60
-
61
- # rubocop-rspec options
62
- RSpec/MessageExpectation :
63
- Enabled: true
64
-
65
- RSpec/FilePath :
66
- Enabled: true
67
-
68
- RSpec/NestedGroups:
69
- Max: 4
70
-
71
- Layout/RedundantLineBreak:
72
- Enabled: false
73
-
74
- Layout/EndOfLine:
75
- EnforcedStyle: lf
76
-
data/config/devtools.yml DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- unit_test_timeout: 0.2
data/config/flay.yml DELETED
@@ -1,3 +0,0 @@
1
- ---
2
- threshold: 8
3
- total_score: 119
data/config/flog.yml DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- threshold: 13.5
data/config/yardstick.yml DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- threshold: 100
data/cucumber.yml DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- default: --publish --format pretty
@@ -1,38 +0,0 @@
1
- # Copyright (c) 2023 Jerome Arbez-Gindre
2
- # frozen_string_literal: true
3
-
4
- namespace 'quality' do
5
- begin
6
- require('rubocop/rake_task')
7
-
8
- RuboCop::RakeTask.new do |task|
9
- task.options << '--display-cop-names'
10
- end
11
- rescue LoadError
12
- task(:rubocop) do
13
- puts('Install rubocop to run its rake tasks')
14
- end
15
- end
16
-
17
- begin
18
- require('reek/rake/task')
19
-
20
- Reek::Rake::Task.new do |t|
21
- t.fail_on_error = true
22
- t.verbose = false
23
- end
24
- rescue LoadError
25
- task(:reek) do
26
- puts('Install reek to run its rake tasks')
27
- end
28
- end
29
-
30
- desc 'Runs all quality code check'
31
- task(all: ['quality:rubocop', 'quality:reek'])
32
- end
33
-
34
- desc 'Synonym for quality:rubocop'
35
- task(rubocop: 'quality:rubocop')
36
-
37
- desc 'Synonym for quality:reek'
38
- task(reek: 'quality:reek')
File without changes