@iobroker/repochecker 3.1.3 → 3.2.0

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