onceover-codequality 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 539deb30ea7e0a162926b170e8adf94de19e7e469eb1212801daedc20b994318
4
- data.tar.gz: ed7c7de7e391a6faac5e78e66b4edd6ed38868311a299a19e197bba873939471
3
+ metadata.gz: 6c5e0265de668f3ab30a6cc223574ddf14907d37f24c2bb1787f53e69d33c61a
4
+ data.tar.gz: e7e4bd3c0ec5763db2ba67905bef64193cc1b8d74462ddbcecbc7f85914f0826
5
5
  SHA512:
6
- metadata.gz: 70ea401197ac110b5f53fbd3e4d433889d6171181e88c790ca2eabb5b8fb88163c5427b097875355c296aea3f595650ecf64b8dc1bacb5ef7ffe0f5e2ab75930
7
- data.tar.gz: 14532de430f9523b8519fca0fe1b3a9aabb27f117446668eeed95ca1b5b4df1c2b70aa2bf0902cff8b930f830d0185dd2990d90524a5e6ba5bf20946a713a0df
6
+ metadata.gz: 9dfe773e6e19ccb0ab0315018c6e5ad03d2ad75a4cbbbf66873d67b1e7cab00f6669ee84ff9ec8557cdd078bc730f8b12b4d6e423a59c788adae43da44003df3
7
+ data.tar.gz: cf6f3714a9fc421ee001e172e70585def375900bc21ad6de4bd0445fa0ec97bcaa5cae8f50e42ac3f5dcb5aae131f875c6167982196356d81beeb0be5fc12890
data/README.md CHANGED
@@ -54,7 +54,7 @@ $ onceover run codequality --no_puppetfile
54
54
  **Skip documentation generation**
55
55
 
56
56
  ```shell
57
- $ onceover run codequality --no_doc
57
+ $ onceover run codequality --no_docs
58
58
  ```
59
59
 
60
60
  **Use custom lint settings**
@@ -7,14 +7,18 @@ class Onceover
7
7
  status = true
8
8
 
9
9
  #
10
- # puppet-lint
10
+ # puppet-syntax
11
11
  #
12
12
 
13
13
  logger.info("Checking syntax using puppet-syntax rake task...")
14
14
  # puppet-syntax seems to assign $stdout/$stderr internally in ways that
15
15
  # prevent capturing output. As a nasty hack, run it as inline ruby and
16
16
  # capture the output from the process...
17
- inline_ruby = "require 'puppet-syntax/tasks/puppet-syntax' ; Rake::Task['syntax'].invoke"
17
+ inline_ruby = <<-RUBY_CODE
18
+ require 'puppet-syntax/tasks/puppet-syntax'
19
+ PuppetSyntax.exclude_paths = ['vendor/**/*','spec/templates/*.erb']
20
+ Rake::Task['syntax'].invoke
21
+ RUBY_CODE
18
22
  output, s = Open3.capture2e("ruby", "-e", inline_ruby)
19
23
  ok = s.exitstatus.zero?
20
24
  status &= ok
@@ -1,5 +1,5 @@
1
1
  class Onceover
2
2
  module CodeQuality
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover-codequality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Declarative Systems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler