origen 0.60.9 → 0.60.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/commands/lint.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c442b0ec278b734ebc49f7222d453db157c28797e2a6df6134d3b1433a562e37
|
4
|
+
data.tar.gz: 7492e627ed33bfcbbcdac8ecb57c765428b9fdb5ba4ce896f2d0dcb61fa64dd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7488cc0aac95c1ead5a2c20d806e895e424fdf76621c713620e745c25817bd74265e54184cdf9577871f320a9abd6cb08a57fa57ddf5d275a6f4a8213b4a6a
|
7
|
+
data.tar.gz: 996a85f149c8f7843db5b5b00f95723802a2d929e85302a51ba2711bdaf58ec5527aec7712d8499623c969013a288f19d748acc91e3aad6f43937073ec9d9873
|
data/config/version.rb
CHANGED
data/lib/origen/commands/lint.rb
CHANGED
@@ -18,9 +18,11 @@ http://origen.freescale.net/origen/latest/guides/utilities/lint/
|
|
18
18
|
END
|
19
19
|
opts.on('-c', '--correct', 'Correct errors automatically where possible') { options[:correct] = true }
|
20
20
|
opts.on('-n', '--no-correct', "Don't correct errors automatically (override if the app default is set to auto correct)") { options[:no_correct] = true }
|
21
|
+
opts.on('-A', '--auto-correct-all', 'Autocorrect offenses (safe and unsafe)') { options[:correct_all] = true }
|
21
22
|
opts.on('-e', '--easy', 'Be less strict, most checks run with this flag enabled can be corrected automatically') { options[:easy] = true }
|
22
23
|
opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
|
23
24
|
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
|
25
|
+
opts.on('-o', '--override-config CONFIG', String, 'Path to a rubocop rules yml file to use instead of the default rules') { |file| options[:override_config] = file }
|
24
26
|
# Apply any application option extensions to the OptionParser
|
25
27
|
Origen::CommandHelpers.extend_options(opts, app_options, options)
|
26
28
|
opts.separator ''
|
@@ -48,11 +50,14 @@ if options[:easy] || Origen.config.lint_test[:level] == :easy
|
|
48
50
|
else
|
49
51
|
config = "#{Origen.top}/config/rubocop/strict.yml"
|
50
52
|
end
|
53
|
+
config = options[:override_config] || config
|
51
54
|
|
52
55
|
command = "rubocop #{files} --config #{config} --display-cop-names"
|
53
56
|
|
54
57
|
unless options[:no_correct]
|
55
|
-
if options[:
|
58
|
+
if options[:correct_all] || Origen.config.lint_test[:auto_correct_all]
|
59
|
+
command += ' --auto-correct-all'
|
60
|
+
elsif options[:correct] || Origen.config.lint_test[:auto_correct]
|
56
61
|
command += ' --auto-correct'
|
57
62
|
end
|
58
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.60.
|
4
|
+
version: 0.60.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|