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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fafcba7b56376df705b3e2d974a5b1631874a75105cb792a2ad1d8d1e0bc18ac
4
- data.tar.gz: 0c08b0907caa4905a45a712594f09598c2146548b00fe5e8f1727984f380d557
3
+ metadata.gz: c442b0ec278b734ebc49f7222d453db157c28797e2a6df6134d3b1433a562e37
4
+ data.tar.gz: 7492e627ed33bfcbbcdac8ecb57c765428b9fdb5ba4ce896f2d0dcb61fa64dd9
5
5
  SHA512:
6
- metadata.gz: 6dbc90849b333becc468462b2e63fe6f598e5d5302a2e52be291346a939d1ceb9652669e01ea5e7e6af0adb85e8355418153d7e48dddf7b0b9209de90e1ed507
7
- data.tar.gz: 4271de6f804efde5a165c9835bb9e22f20acf9e5c430ae1032fe8cc3612fe498a8cc4721d967fdda2d93a63ad8f1c8cda7fc64c2be53cc2f5149d3f996720263
6
+ metadata.gz: fe7488cc0aac95c1ead5a2c20d806e895e424fdf76621c713620e745c25817bd74265e54184cdf9577871f320a9abd6cb08a57fa57ddf5d275a6f4a8213b4a6a
7
+ data.tar.gz: 996a85f149c8f7843db5b5b00f95723802a2d929e85302a51ba2711bdaf58ec5527aec7712d8499623c969013a288f19d748acc91e3aad6f43937073ec9d9873
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 60
4
- BUGFIX = 9
4
+ BUGFIX = 10
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -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[:correct] || Origen.config.lint_test[:auto_correct]
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.9
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-03 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport