You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Onceover::CodeQuality
1
+
# PuppetlabsOnceover::CodeQuality
2
2
3
-
This is the Code Quality plugin for [Onceover](https://github.com/voxpupuli/onceover), _The gateway drug to automated infrastructure testing with Puppet_
3
+
This is the Code Quality plugin for [puppetlabs-onceover](https://github.com/puppetlabs/puppetlabs-onceover), _The gateway drug to automated infrastructure testing with Puppet_
4
4
5
5
## What does it do?
6
6
@@ -15,61 +15,61 @@ For sure you can hack around with rake/make and hack something up each time but
15
15
16
16
## Installation
17
17
18
-
Install the `onceover-codequality` gem by adding it to your `Gemfile` or by running the following command:
18
+
Install the `puppetlabs-onceover-codequality` gem by adding it to your `Gemfile` or by running the following command:
19
19
20
20
```shell
21
-
gem install onceover-codequality
21
+
gem install puppetlabs-onceover-codequality
22
22
```
23
23
24
24
## Usage
25
25
26
-
Installing the codequality gem creates a new item within onceover's `run` command: `codequality`. See `onceover run codequality --help` for all available options.
26
+
Installing the codequality gem creates a new item within puppetlabs-onceover's `run` command: `codequality`. See `puppetlabs-onceover run codequality --help` for all available options.
27
27
28
28
The command will return `1` to the system if any tests fail, otherwise `0`, which makes it perfect to include in build pipelines.
29
29
30
30
### Check all code in the control repository for Lint and Syntax errors
31
31
32
32
```shell
33
-
onceover run codequality
33
+
puppetlabs-onceover run codequality
34
34
```
35
35
36
36
### Skip Lint check
37
37
38
38
```shell
39
-
onceover run codequality --no_lint
39
+
puppetlabs-onceover run codequality --no_lint
40
40
```
41
41
42
42
### Skip Puppet syntax check
43
43
44
44
```shell
45
-
onceover run codequality --no_syntax
45
+
puppetlabs-onceover run codequality --no_syntax
46
46
```
47
47
48
48
### Skip Puppetfile syntax check
49
49
50
50
```shell
51
-
onceover run codequality --no_puppetfile
51
+
puppetlabs-onceover run codequality --no_puppetfile
52
52
```
53
53
54
54
### Skip documentation generation
55
55
56
56
```shell
57
-
onceover run codequality --no_docs
57
+
puppetlabs-onceover run codequality --no_docs
58
58
```
59
59
60
60
### Use custom lint setting
61
61
62
-
Create a file `puppet-lint.rc` in the directory you run `onceover codequality`
62
+
Create a file `puppet-lint.rc` in the directory you run `puppetlabs-onceover codequality`
63
63
from and it will be automatically used by Puppet Lint. If missing, the built-in
64
-
defaults from `lib/onceover/codequality/lint.rb` will be used.
64
+
defaults from `lib/puppetlabs-onceover/codequality/lint.rb` will be used.
65
65
66
66
67
67
## Sample output
68
68
69
69
### All clear
70
70
71
71
```shell
72
-
$ onceover run codequality
72
+
$ puppetlabs-onceover run codequality
73
73
INFO -> Checking for lint...
74
74
INFO -> checking manifests
75
75
INFO -> checking site/role
@@ -83,7 +83,7 @@ INFO -> Code Quality tests passed, have a nice day
83
83
### Lint and syntax errors
84
84
85
85
```shell
86
-
$ onceover run codequality
86
+
$ puppetlabs-onceover run codequality
87
87
INFO -> Checking for lint...
88
88
INFO -> checking manifests
89
89
INFO -> checking site/role
@@ -104,7 +104,7 @@ $ echo $?
104
104
105
105
**`WARN: Unresolved specs during Gem::Specification.reset`?**
106
106
107
-
I get these errors when I run `onceover run codequality` but everything seems to work, what gives?:
107
+
I get these errors when I run `puppetlabs-onceover run codequality` but everything seems to work, what gives?:
108
108
109
109
```shell
110
110
WARN: Unresolved specs during Gem::Specification.reset:
@@ -118,7 +118,7 @@ Please report a bug if this causes problems.
118
118
Beats me - something to do with rubygems. The best way to beat this message is to use [bundler](https://github.com/bundler/bundler) which basically you should already be doing anyway (for your own sanity):
0 commit comments