Sean Sube
047673c6af
feat(test): add example and rule to insert image pull policy
2022-04-24 18:13:35 -05:00
Sean Sube
c9ffd00733
lint(test): remove console log
2022-04-22 19:03:06 -05:00
Sean Sube
322de068f8
fix(test): correctly check lines, remove empty alternative
2022-04-22 09:20:55 -05:00
Sean Sube
09f83ee5ab
fix(test): cover new reporters
2022-04-22 09:20:55 -05:00
Sean Sube
9fbc6b06c4
feat(reporter): format total errors per rule in table reporter
2022-04-22 09:17:58 -05:00
Sean Sube
84afd78b69
fix(deps): replace usage of deprecated array helper with new name
2022-04-22 09:17:58 -05:00
Sean Sube
f69fd0a730
replace untyped error data with ref to rule and elem
2022-04-22 09:17:58 -05:00
Sean Sube
456b30d77c
fix remaining tests
2022-04-22 09:17:58 -05:00
Sean Sube
c9af9857f4
fix most of the tests
2022-04-22 09:17:58 -05:00
Sean Sube
299f16b9ba
make schema work with document/element structure
2022-04-22 09:17:58 -05:00
Sean Sube
9ff436859b
build and run tests again
2022-04-22 09:17:58 -05:00
Sean Sube
1fa386581e
feat(source): formalize source data with Document and Element
2022-04-22 09:17:58 -05:00
Sean Sube
a3f0c0b61d
begin adding output reporters
2022-04-22 09:17:58 -05:00
Sean Sube
f7b82590f7
remove: unused entry point files
2022-02-06 00:23:37 -06:00
Sean Sube
ed26185e31
fix(tests): correct paths to schema, test config
2022-02-06 00:23:37 -06:00
Sean Sube
3b7e48a494
fix: usage of __dirname, lint rules and corresponding fixes
2022-02-06 00:23:37 -06:00
Sean Sube
052ca736d2
fix: more ES imports, some corresponding import changes, reset mock FS after every test
2022-02-06 00:23:37 -06:00
Sean Sube
cea8c8abff
feat: convert to ES modules, C8 for coverage
...
BREAKING CHANGE: this is not breaking for users, but for library users,
some bundling or a runtime supporting ES modules is now required.
2022-02-06 00:23:37 -06:00
ssube
41b5a395ee
feat: update Ajv, schema rule usage thereof
...
BREAKING CHANGE: updates Ajv from v6 to v8, with the breaking
changes included there (https://ajv.js.org/v6-to-v8-migration.html ).
This removes support for JSON-Schema draft-04 and adds new
drafts and keywords.
2021-08-07 01:02:33 -05:00
ssube
e7e42eee89
feat: list files using node's fs module instead of recursive-readdir
...
BREAKING CHANGE: this changes how directories are listed, by replacing
the recursive-readdir module with node's readdir method, and a custom
implementation that is compatible with the changes to Node 16's fs
implementation for testing.
2021-07-14 00:13:21 -05:00
ssube
5cd1ab6fb5
fix(test): cover includes in config
2020-07-14 20:19:40 -05:00
Sean Sube
cb3ee1fa8e
remove(test): async leak helpers ( #313 )
2020-04-02 18:58:57 -05:00
ssube
2fc7d7683c
fix(test): leaking config load
2020-04-01 16:58:26 -05:00
ssube
1121b112cc
remove(utils): use js-utils lib
2020-04-01 08:32:03 -05:00
ssube
899dac262e
fix(lint): selectively allow null types
2020-02-19 23:05:40 -06:00
ssube
4f1571b75c
lint(tests): clean up magic numbers
2019-11-19 06:03:48 -06:00
ssube
91e5a93db8
cover pojso rule instantiation
2019-11-18 06:28:06 -06:00
ssube
61498e7fab
cover rule module defs directly
2019-11-18 06:28:06 -06:00
ssube
089725ef60
cover rule file and module validation
2019-11-18 06:28:06 -06:00
ssube
c1ff388aff
feat: validate config while loading
2019-11-18 06:28:06 -06:00
ssube
dbfe0429fa
feat: validate rules while loading
2019-11-18 06:28:06 -06:00
ssube
b3fa9dd9be
fix(tests): cover rule module error handling, exclude by level
2019-11-16 20:01:41 -06:00
ssube
c0eb3e0bfc
fix(tests): cover read config, rule module helpers
2019-11-16 20:01:41 -06:00
ssube
0f214ed2dc
rudimentary coverage for fix mode
2019-11-16 20:01:41 -06:00
ssube
8254848ef8
feat(rules/kubernetes): add rule to prevent latest tag, rule to ensure pull policy is set
2019-11-15 21:05:44 -06:00
ssube
26eda4c6fe
lint: split rule visitor tests
2019-11-15 21:05:44 -06:00
ssube
4fef163e5b
cover rule visitor's extraneous pick method
2019-11-15 21:05:44 -06:00
ssube
79210654f0
cover include path helper
2019-11-15 21:05:44 -06:00
ssube
fb60b09db8
cover config types better
2019-11-15 21:05:44 -06:00
ssube
6c33b81610
lint: extract visit item method
2019-11-15 21:05:44 -06:00
ssube
c053da9051
fix(tests): cover rule failures through main
2019-11-15 21:05:44 -06:00
ssube
b818aa66d4
cover stream error handling
2019-11-15 21:05:44 -06:00
ssube
0ba6382253
introduce formal rule visitor
2019-11-15 21:05:44 -06:00
ssube
761c64851c
test schema rule selecting 0 items
2019-11-15 21:05:44 -06:00
ssube
c9b6c9fe4e
fix(tests): mock config when listing rules
2019-11-15 21:05:44 -06:00
ssube
11b3bd0d09
fix: manually pass argv to yargs
2019-11-15 21:05:44 -06:00
ssube
838f87baf5
fix(tests): cover source read and write
2019-11-15 21:05:44 -06:00
ssube
2812254ba5
fix(config): accept S regex flag, anchor slashes
2019-11-13 07:50:56 -06:00
ssube
eff5f648a8
lint(tests): helper for friendly error tests
2019-11-13 07:26:09 -06:00
ssube
41ac1b5849
lint: rename context inner options to schema
2019-11-12 08:25:09 -06:00