defmastership 1.0.18 → 1.0.19
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +15 -1
- data/Gemfile +27 -7
- data/Guardfile +44 -0
- data/config/cucumber.yml +3 -0
- data/config/mutant.yml +4 -0
- data/config/reek.yml +129 -105
- data/config/rubocop.yml +72 -28
- data/defmastership.gemspec +5 -3
- data/features/changeref.feature +0 -8
- data/features/definition_checksum.feature +0 -10
- data/features/definition_version.feature +168 -10
- data/features/export.feature +23 -18
- data/features/modify.feature +1 -5
- data/features/rename_included_files.feature +0 -5
- data/features/step_definitions/git_steps.rb +19 -0
- data/lib/defmastership/constants.rb +5 -3
- data/lib/defmastership/definition.rb +2 -2
- data/lib/defmastership/document.rb +6 -14
- data/lib/defmastership/update_def_modifier.rb +1 -1
- data/lib/defmastership/update_def_version_modifier.rb +30 -5
- data/lib/defmastership/version.rb +1 -1
- data/spec/unit/def_mastership/batch_modifier_spec.rb +2 -0
- data/spec/unit/def_mastership/modifier_factory_spec.rb +1 -0
- data/spec/unit/def_mastership/modifier_spec.rb +8 -6
- data/spec/unit/def_mastership/update_def_modifier_spec.rb +2 -0
- data/spec/unit/def_mastership/update_def_version_modifier_spec.rb +225 -33
- data/tasks/code_quality.rake +74 -0
- data/tasks/test.rake +6 -21
- metadata +36 -11
- data/.rubocop.yml +0 -76
- data/config/devtools.yml +0 -2
- data/config/flay.yml +0 -3
- data/config/flog.yml +0 -2
- data/config/yardstick.yml +0 -2
- data/cucumber.yml +0 -2
- data/tasks/smelling_code.rake +0 -38
- /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
data/config/flay.yml
DELETED
data/config/flog.yml
DELETED
data/config/yardstick.yml
DELETED
data/cucumber.yml
DELETED
data/tasks/smelling_code.rake
DELETED
@@ -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')
|
/data/{.rspec → config/rspec}
RENAMED
File without changes
|