1
0
Fork 0
Commit Graph

32 Commits

Author SHA1 Message Date
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 7fce9649ec lint: extract common rule source logic from file/module helpers 2019-11-18 06:28:06 -06:00
ssube 197b6119a8 lint: replace negated nil checks with positive assertion 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 1b15952c05 lint: flatten rule resolver to logic 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 ae6c3b28e0 lint: simplify rule selector logic 2019-11-16 20:01:41 -06:00
ssube 6c33b81610 lint: extract visit item method 2019-11-15 21:05:44 -06:00
ssube 0ba6382253 introduce formal rule visitor 2019-11-15 21:05:44 -06:00
ssube 41ac1b5849
lint: rename context inner options to schema 2019-11-12 08:25:09 -06:00
ssube 02ccffda6b
fix: log schema names correctly, do not log unmatched files 2019-11-12 07:59:44 -06:00
ssube 05e1ee714f
lint: declare default filter once 2019-11-10 22:14:09 -06:00
ssube 13d42e8b6f fix: update log level to use enum 2019-11-10 22:05:20 -06:00
ssube 00c7b89f93
fix(rule): allow leading directories in rule path glob 2019-11-09 23:04:18 -06:00
ssube 6f4b324cc8
feat: recursively load rules (fixes #135) 2019-11-09 22:40:30 -06:00
ssube b49b889c61 lint: fix lint issues 2019-11-09 19:41:00 -06:00
ssube f0b5109689 feat(rules): add item index to rule error (fixes #116) 2019-11-09 19:41:00 -06:00
ssube de5dd2833a lint: consolidate ajv-related code, visitor trait interfaces 2019-11-09 19:41:00 -06:00
ssube 705209620b feat(build): replace tslint with eslint 2019-11-09 17:52:16 -06:00
ssube ebe15fb207 fix: extract rule interface 2019-11-03 13:13:24 -06:00
ssube fcd4740eee fix(visitor): include rule name and selector in error messages 2019-11-03 13:13:24 -06:00
ssube 97256855ac fix(visitor): handle missing errors gracefully 2019-11-03 13:13:24 -06:00
ssube 0c30036c98 fix(rules): group rule errors to trigger correct failure (#114) 2019-11-03 13:13:24 -06:00
ssube b5d4698e5a fix(rules): remove redundant rule field from result
the value of the rule field is always this and it is unused by the
visitor.
2019-11-03 13:13:24 -06:00
ssube b99431b368 feat(visitor): move jsonpath pick to context for modules to use 2019-11-03 13:13:24 -06:00
ssube 5229ada847 feat(rules): load JSON rule files when using --rule-path 2019-11-03 13:13:24 -06:00
ssube 9fbf7cc0c7 feat: load rules from directories (#8) and modules (#6) 2019-11-03 13:13:24 -06:00
ssube 59e7c138c0 fix: build a rule selector from args, log it in list mode 2019-11-03 13:13:24 -06:00
ssube 4159004dd4 lint: remove confusing *sync wrapper names 2019-11-03 13:13:24 -06:00
ssube b3dc864f0d feat: split rule and helpers, test rule 2019-11-03 13:13:24 -06:00