@iobroker/repochecker 3.1.4 → 3.2.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.
- package/README.md +177 -111
- package/index.js +135 -109
- package/lib/M000_PackageJson.js +23 -23
- package/lib/M100_IOPackageJson.js +51 -45
- package/lib/M250_Npm.js +3 -5
- package/lib/M400_Repository.js +10 -10
- package/lib/M500_Code.js +266 -150
- package/lib/M500__JsonConfig.js +603 -0
- package/lib/M700_License.js +3 -3
- package/lib/M800_Github.js +21 -21
- package/lib/M900_GitNpmIgnore.js +1 -1
- package/lib/common.js +48 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,215 +1,281 @@
|
|
|
1
1
|
# Adapter repository checker
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
This is a code for frontend and back-end of the service <https://adapter-check.iobroker.in/>
|
|
3
4
|
|
|
4
5
|
If you want to add your adapter to the public ioBroker repository, all tests on this page must be OK.
|
|
5
6
|
|
|
6
7
|
## How to test via cli
|
|
8
|
+
|
|
7
9
|
You can pass your repository as a parameter to test
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
`npx @iobroker/repochecker <repo> [branch]`
|
|
10
12
|
|
|
11
|
-
```
|
|
13
|
+
```bash
|
|
12
14
|
npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript master
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
Branch (`master/main/dev`) is optional.
|
|
16
18
|
|
|
19
|
+
For extra debugging outputs you can pass the `--debug` parameter.
|
|
20
|
+
|
|
21
|
+
For a local test you can pass the `--local` parameter. Most of the files are read localy.
|
|
22
|
+
The link to the github repository is still necessary because data from the project settings on github is also checked.
|
|
23
|
+
|
|
24
|
+
Example:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --local
|
|
28
|
+
```
|
|
29
|
+
|
|
17
30
|
<!--
|
|
18
31
|
Placeholder for the next version (at the beginning of the line):
|
|
19
32
|
### **WORK IN PROGRESS**
|
|
20
33
|
-->
|
|
21
34
|
|
|
22
35
|
## Changelog
|
|
36
|
+
### 3.2.1 (2024-11-01)
|
|
37
|
+
|
|
38
|
+
- (mcm1957) Size checking for "divider" and "staticImage" supended.
|
|
39
|
+
|
|
40
|
+
### 3.2.0 (2024-11-01)
|
|
41
|
+
|
|
42
|
+
- (oweitman) Script has been extended to use optionally local data for checking.
|
|
43
|
+
- (mcm1957) Warning if i18n is not used has been fixed [#324].
|
|
44
|
+
- (mcm1957) Check for importent issues has been added.
|
|
45
|
+
- (mcm1957) Checking of jsonConfig (initially) added.
|
|
46
|
+
|
|
23
47
|
### 3.1.4 (2024-10-26)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
|
|
49
|
+
- (mcm1957) linter has been activated and issues reported have been fixed.
|
|
50
|
+
- (mcm1957) Blacklist for package/dependencies has been extended.
|
|
51
|
+
- (mcm1957) Recommend adapter-core 3.2.2 now.
|
|
52
|
+
- (mcm1957) Clearify test for "[E952] .npmignore not found". [#320]
|
|
53
|
+
- (mcm1957) Abort processing if iobroker.live not reachable. [#321]
|
|
29
54
|
|
|
30
55
|
### 3.1.3 (2024-10-11)
|
|
31
|
-
|
|
56
|
+
|
|
57
|
+
- (mcm1957) Checker no longer crash id no npm package exists.
|
|
32
58
|
|
|
33
59
|
### 3.1.2 (2024-10-04)
|
|
34
|
-
|
|
60
|
+
|
|
61
|
+
- (mcm1957) Require node 18 minimum as engines clause.
|
|
35
62
|
|
|
36
63
|
### 3.1.1 (2024-10-04)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
64
|
+
|
|
65
|
+
- (mcm1957) "[E166] 'common.mode: extension' is unknown" has been fixed [#308]
|
|
66
|
+
- (mcm1957) "[E904] file iob_npm.done found in repository, but not found in .gitignore" removed as covered by [E503]. [#309]
|
|
67
|
+
- (mcm1957) "[E500] node_modules found" has been retricted to adapetr root. [#297]
|
|
68
|
+
- (mcm1957) Do not check main entry if common.mode none or extension.
|
|
69
|
+
- (mcm1957) Change "[W113] Adapter should support compact mode" text and honor common.compact set to false. [#300]
|
|
42
70
|
|
|
43
71
|
### 3.1.0 (2024-09-29)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
|
|
73
|
+
- (mcm1957) "@iobroker/plugin-sentry" blacklisted as dependency [#301]
|
|
74
|
+
- (mcm1957) Accept .ts files as main file too. [#303]
|
|
75
|
+
- (mcm1957) [E405] and [E426] incorrect path has been corrected. [#299]
|
|
47
76
|
|
|
48
77
|
### 3.0.7 (2024-09-19)
|
|
49
|
-
|
|
78
|
+
|
|
79
|
+
- (mcm1957) "[W523] 'package-lock.json"'not found in repo!" reduced to suggestion. [#298]
|
|
50
80
|
|
|
51
81
|
### 3.0.6 (2024-09-13)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
82
|
+
|
|
83
|
+
- (mcm1957) "[E124] Main file not found" no longer raised if common.nogit is set
|
|
84
|
+
- (mcm1957) 'Text of "common.main" is deprecated' has been adapted. [#266]
|
|
85
|
+
- (mcm1957) Ignore errors caused by complex .gitignor/.npmignore. [#288]
|
|
55
86
|
|
|
56
87
|
### 3.0.5 (2024-09-13)
|
|
57
|
-
|
|
88
|
+
|
|
89
|
+
- (mcm1957) '@iobroker/dev-server' is valid as dev-dependency. [#260]
|
|
58
90
|
|
|
59
91
|
### 3.0.4 (2024-09-12)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
92
|
+
|
|
93
|
+
- (mcm1957) Abort with incorrect dependency definition fixed [#287]
|
|
94
|
+
- (mcm1957) Improve handling of malformed dependency definitions [#284]
|
|
95
|
+
- (mcm1957) Improve handling of malformed .releaseconfig.json files [#283]
|
|
96
|
+
- (mcm1957) Missing mandatory translations are considered an error now. [#277, #278]
|
|
97
|
+
- (mcm1957) '.npmignore found but "files" is used' is a warning now. [#274]
|
|
98
|
+
- (mcm1957) '@iobroker/dev-server' has been blacklisted as any dependency. [#260]
|
|
99
|
+
- (mcm1957) Do no longer require a js-controller dependecy for wwwOnly adapters. [#250]
|
|
67
100
|
|
|
68
101
|
### 3.0.3 (2024-09-12)
|
|
69
|
-
|
|
102
|
+
|
|
103
|
+
- (mcm1957) Check for iob_npm.done at .npmignore has been removed [#294]
|
|
70
104
|
|
|
71
105
|
### 3.0.2 (2024-09-11)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
106
|
+
|
|
107
|
+
- (mcm1957) Handling of missing LICENSE file corrected. [#282]
|
|
108
|
+
- (mcm1957) [W126] Missing mandatory translation is error now. [#293]
|
|
109
|
+
- (mcm1957) Record repochcker version used for tests.
|
|
110
|
+
- (mcm1957) Record github commit-sha of last commit used for tests.
|
|
76
111
|
|
|
77
112
|
### 3.0.0 (2024-09-10)
|
|
78
|
-
|
|
79
|
-
|
|
113
|
+
|
|
114
|
+
- (mcm1957) Error and warning numbering has been reviewed and duplicates removed.
|
|
115
|
+
- (mcm1957) index.js has been split into seperated modules.
|
|
80
116
|
|
|
81
117
|
### 2.10.0 (2024-08-19)
|
|
82
|
-
|
|
118
|
+
|
|
119
|
+
- (mcm1957) Suggestions ([Sxxx] have been added).
|
|
83
120
|
|
|
84
121
|
### 2.9.1 (2024-08-12)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
122
|
+
|
|
123
|
+
- (mcm1957) E162 - correct dependency check for js-controller. [#267].
|
|
124
|
+
- (mcm1957) E605 - copyright year range including whitespaces is now accepted. [#269].
|
|
125
|
+
- (mcm1957) E016 - missing vaiableexpansion has been added. [#263].
|
|
126
|
+
- (mcm1957) E114 - typo at error message has been fixed [#261].
|
|
89
127
|
|
|
90
128
|
### 2.9.0 (2024-07-29)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
129
|
+
|
|
130
|
+
- (mcm1957) Adapt text if sources-dist(-stable).json need a correction [#97].
|
|
131
|
+
- (mcm1957) Missing "common.mode" error text corrected [#249].
|
|
132
|
+
- (mcm1957) Files "iob" and "iobroker" are disallowed now [#248].
|
|
133
|
+
- (mcm1957) Checks related to @alcalzone/releasescript modified [#71].
|
|
134
|
+
- (mcm1957) Text of E114 (missing adminUI) adapted.
|
|
96
135
|
|
|
97
136
|
### 2.8.1 (2024-07-28)
|
|
98
|
-
|
|
99
|
-
|
|
137
|
+
|
|
138
|
+
- (mcm1957) Check of js-controller version has been corrected [#247].
|
|
139
|
+
- (mcm1957) Honor '>' at dependency checks too [#246].
|
|
100
140
|
|
|
101
141
|
### 2.8.0 (2024-07-28)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
142
|
+
|
|
143
|
+
- (mcm1957) Copyright year check has been fixed for single year entries.
|
|
144
|
+
- (mcm1957) js-controller version check added [#233].
|
|
145
|
+
- (mcm1957) Check for fixed version dependencies and for github dependencies [#233].
|
|
146
|
+
- (mcm1957) Missing language files reduced to warning [#203].
|
|
147
|
+
- (mcm1957) Missing .gitignore is considered an error now.
|
|
148
|
+
- (mcm1957) "common.noConfig" no longer reported as error if "common.adminUI" is present [#245].
|
|
149
|
+
- (mcm1957) "common.noConfig" must match "common.adminUI" setting [#170].
|
|
109
150
|
|
|
110
151
|
### 2.7.2 (2024-07-26)
|
|
111
|
-
|
|
152
|
+
|
|
153
|
+
- (mcm1957) package-lock.json check fixed.
|
|
112
154
|
|
|
113
155
|
### 2.7.1 (2024-07-26)
|
|
114
|
-
|
|
156
|
+
|
|
157
|
+
- (mcm1957) Reduce setTimeout/setInterval error to warning temporary.
|
|
115
158
|
|
|
116
159
|
### 2.7.0 (2024-07-26)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
160
|
+
|
|
161
|
+
- (mcm1957) Some non trivial keywords related to adapter are enforced now [#234].
|
|
162
|
+
- (mcm1957) Severity if [E105] / [W105] has been corrected [#204].
|
|
163
|
+
- (mcm1957) Disallow 'globalDependencies' at package.json [#204].
|
|
164
|
+
- (mcm1957) Several false positives for wwwOnly widgetadapters have been fixed [#230, #222].
|
|
165
|
+
- (mcm1957) Missing .npmignore is now considered an error [#229].
|
|
166
|
+
- (mcm1957) Usage of package.json 'files' section is now recommended.
|
|
167
|
+
- (mcm1957) If more than 7 common.news entries are present a warning is issued now [#232].
|
|
168
|
+
- (mcm1957) Versions listed at common.news are checked to exist at npm now [#226].
|
|
169
|
+
- (mcm1957) 'package-lock.json' is checked to exist at GitHub now [#188].
|
|
170
|
+
- (mcm1957) travis checks have been removed [#237].
|
|
171
|
+
- (mcm1957) Copyright year now honors commit year and npm publish year too [#237].
|
|
128
172
|
|
|
129
173
|
### 2.6.1 (2024-06-24)
|
|
130
|
-
|
|
174
|
+
|
|
175
|
+
- (mcm1957) Check "[W156] Adapter should support admin 5 UI (jsonConfig)" checks for reactUi now.
|
|
131
176
|
|
|
132
177
|
### 2.6.0 (2024-06-24)
|
|
133
|
-
|
|
134
|
-
|
|
178
|
+
|
|
179
|
+
- (mcm1957) Check has been aded to ensure keywords and common.keywords are present. [#200]
|
|
180
|
+
- (mcm1957) Detection of react has been added, gulpfile.js is accepted for react based UIs now. [#223]
|
|
135
181
|
|
|
136
182
|
### 2.5.1 (2024-06-24)
|
|
137
|
-
|
|
138
|
-
|
|
183
|
+
|
|
184
|
+
- (mcm1957) Suggestion to update dependencies to recommended version added.
|
|
185
|
+
- (mcm1957) Adapter-core recommended set to 3.1.6 [#220]
|
|
139
186
|
|
|
140
187
|
### 2.5.0 (2024-05-30)
|
|
141
|
-
|
|
188
|
+
|
|
189
|
+
- (mcm1957) Check to ensure that dependency revisions are available at repository added. [#180]
|
|
142
190
|
|
|
143
191
|
### 2.4.0 (2024-05-30)
|
|
144
|
-
|
|
145
|
-
|
|
192
|
+
|
|
193
|
+
- (mcm1957) Add check to protect sensitive data. [#195]
|
|
194
|
+
- (mcm1957) Add check to verify that dependencies and globalDepencies are of type array. [#90]
|
|
146
195
|
|
|
147
196
|
### 2.3.1 (2024-05-07)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
197
|
+
|
|
198
|
+
- (mcm1957) Reduce number of missing translation warnings.
|
|
199
|
+
- (mcm1957) Seperate between required and recommended translations.
|
|
200
|
+
- (mcm1957) Log missing translations in detail.
|
|
151
201
|
|
|
152
202
|
### 2.3.0 (2024-05-07)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
203
|
+
|
|
204
|
+
- (mcm1957) Elements marked as deprectaed added to blacklist.
|
|
205
|
+
- (mcm1957) Blacklist added to block elements at package.json and io-package.json.
|
|
206
|
+
- (mcm1957) Error [E000] will be raised now if repository cannot be accessed at all [#194].
|
|
207
|
+
- (mcm1957) Reading of package.json and io-package.json has been moved to head of tests.
|
|
208
|
+
- (mcm1957) Check minimum and recommended node version at package.json (#160)
|
|
209
|
+
- (mcm1957) Raise an error if version at package.json is lower than latest release at npmjs [#192]
|
|
159
210
|
|
|
160
211
|
### 2.2.3 (2024-03-29)
|
|
161
|
-
* (mcm1957) Checking of license has been improved
|
|
162
212
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
213
|
+
- (mcm1957) Checking of license has been improved
|
|
214
|
+
|
|
215
|
+
### 2.2.2 (2024-03-29)
|
|
216
|
+
|
|
217
|
+
- (mcm1957) Checking of adapter-core has been fixed
|
|
218
|
+
- (mcm1957) Load all potential interesting files, fixes [#149]
|
|
166
219
|
|
|
167
220
|
### 2.2.1 (2024-03-26)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
221
|
+
|
|
222
|
+
- (mcm1957) Added check that own adapter is not listed at common.restartAdapters
|
|
223
|
+
- (mcm1957) Added check of version strings at common.news
|
|
224
|
+
- (mcm1957) Added check for recommended node version (node 18 for now)
|
|
225
|
+
- (mcm1957) Disallow common.mode == subscribe
|
|
226
|
+
- (mcm1957) Deprecate common.wakeup
|
|
227
|
+
- (mcm1957) Added check for adapter-core version (>= 3.0.6)
|
|
174
228
|
|
|
175
229
|
### 2.2.0 (2024-03-24)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
230
|
+
|
|
231
|
+
- (klein0r) Added check for licenseInformation
|
|
232
|
+
- (klein0r) Added check for deprecated license
|
|
233
|
+
- (klein0r) Added check for required attribute common.tier
|
|
234
|
+
- (klein0r) Added check for disallowed attribute common.automaticUpgrade
|
|
180
235
|
|
|
181
236
|
### 2.1.13 (2024-01-02)
|
|
182
|
-
|
|
237
|
+
|
|
238
|
+
- (bluefox) Corrected rule W156: adminUI.config === 'none' is allowed
|
|
183
239
|
|
|
184
240
|
### 2.1.12 (2023-09-21)
|
|
185
|
-
|
|
241
|
+
|
|
242
|
+
- (bluefox) Added check of using '\_' in adapter name
|
|
186
243
|
|
|
187
244
|
### 2.1.11 (2023-09-05)
|
|
188
|
-
|
|
245
|
+
|
|
246
|
+
- (bluefox) Added check of iobroker.js-controller in dependencies
|
|
189
247
|
|
|
190
248
|
### 2.1.7 (2023-08-14)
|
|
191
|
-
|
|
192
|
-
|
|
249
|
+
|
|
250
|
+
- (mcm57) Update index.js - fix typo in error message (packet.json)
|
|
251
|
+
- (mcm57) Update index.js - renumber E504/1 to 519 - fixes #112
|
|
193
252
|
|
|
194
253
|
### 2.1.6 (2022-12-08)
|
|
195
|
-
|
|
254
|
+
|
|
255
|
+
- (bluefox) added better error logging
|
|
196
256
|
|
|
197
257
|
### 2.1.5 (2022-12-07)
|
|
198
|
-
|
|
258
|
+
|
|
259
|
+
- (bluefox) added check of `.releaseconfig.json` file
|
|
199
260
|
|
|
200
261
|
### 2.1.4 (2022-08-19)
|
|
201
|
-
|
|
262
|
+
|
|
263
|
+
- (bluefox) Added check for adapter name: it may not start with '\_'
|
|
202
264
|
|
|
203
265
|
### 2.1.2 (2022-07-14)
|
|
204
|
-
|
|
266
|
+
|
|
267
|
+
- (bluefox) Fixed some errors
|
|
205
268
|
|
|
206
269
|
### 2.1.0 (2022-05-26)
|
|
207
|
-
|
|
270
|
+
|
|
271
|
+
- (bluefox) Added support for jsonConfig.json5 and jsonCustom.json5
|
|
208
272
|
|
|
209
273
|
### 2.0.5 (2022-05-22)
|
|
210
|
-
|
|
274
|
+
|
|
275
|
+
- (bluefox) Made it possible to run with npx
|
|
211
276
|
|
|
212
277
|
## License
|
|
278
|
+
|
|
213
279
|
The MIT License (MIT)
|
|
214
280
|
|
|
215
281
|
Copyright (c) 2014-2024 Denis Haev <dogafox@gmail.com>
|