Releases: todogroup/repolinter
Releases · todogroup/repolinter
v0.12.0
0.12.0 (2025-05-09)
Bug Fixes
- add docs directory (0ccdcd8)
- broken test case. (4816a53)
- schema $id mixup. (6bc0828)
- semantic release update to main (f01a516)
- update axioms, fixes and rules for documentation (7432dfe)
- update test case for 'fail-on-non-existent' scenario, the 'passed' of non-exist file should depend on the parameter. (e31bfb3)
Features
- add 'files-not-contents' rule to make string detection rulesets easier to maintain. (093afc3)
- add better regex context support for file-contents (2ff65d1)
- add files-not-hash rule for files detections. (d2f262a)
- add large file rules (2e48a85)
- add lines of regex match in the file-contents and file-not-contents rule output, default turned off. (9831684)
- add policyUrl and policyInfo in the default output. (fb81866)
- add relative path resolving to rulesetPath (561e895)
- update github pull request template locations (c2d0f40)
v0.11.2
v0.11.1
v0.11.0
v0.10.1
v0.10.0
0.10.0 (2020-12-30)
Bug Fixes
- add missing github-markup dependencies to dockerfile (b5fb88a)
- file-hash now accepts legacy configuration format (d509274)
- fix broken link behavrior with files in subdirectories (6c14db9)
- fix pathing issues and succeed/fail criteria with no files found (c0c101b)
- remove Object.fromEntries for node 10 support (0644374)
- update dockerfile to reconfigure bundle which (may) have caused some bugs on linux (889da3e)
- upgrade broken-link-checker to add node 10 support (4f00b33)
- upgrade ruby gems to latest version (e36c10a)
Features
v0.9.0 - new relic changes (last major release before v1.0)
This v0.9.0 release is the last major release before we declare v1.0 - we want to allow a few weeks for testing and finding any major issues after importing a lot of improvements from the new relic fork: #174
Please send any major bugs as we plan to declare v1.0 next month
Proposed Changes
Pulling from the newrelic-forks repolinter changelog:
Breaking
- The ruleset configuration format has been upgraded to version 2, including adding a JSON schema and support for YAML. The previous ruleset format is still supported (albeit not as well tested).
- Renamed several rule options to more clearly convey functionality (
files->globsAny) and remove problematic language (blacklist->denylist). Backwards compatibility for old option names in version 1 rulesets is still maintained, however the schema will (at the moment) fail to validate the old names in version 2. - Major changes have been made to the
lintfunction:- Formatting and printing have been moved outside
lint, allowing the developer to suppress or modify the output as needed. This change is reflected in the new CLI implementation. - The object returned by lint (
LintResult) has been completely restructured. asyncwas added to the interface.
- Formatting and printing have been moved outside
- Major changes have been make to the JSON Formatter to accommodate the structure change of
lint's return value. - Non top-level configuration support (ex.
targetdir/otherdir/repolinter.jsonwould trigger another lint ofotherdir) has been removed for now. I'd be open to adding this functionality back before this PR is merged. - Some slight changes have been made to the default formatter to accommodate the feature list below.
Features
- Automatic fixes have been added. These fixes must be configured in your ruleset before they can be used, but are otherwise enabled by default.
- Markdown formatting is now supported via a CLI argument.
- CLI argument parsing has re-implemented with Yargs to allow for a more user-friendly experience. All previous commands and arguments remain; however, several new options are now available. For more information on these options please see the Repolinter CLI.
--dryRun/-d- Disable fixes.--allowPaths/-a- Specify an allowlist that repolinter should limit itself to.--rulesetFile/-r- Manually specify the configuration repolinter should use.--rulesetUrl/-u- Specify a URL where repolinter can retrieve the ruleset from.--format/-f- Change the output format.
- Added several other functions to the Node API:
runRuleset,determineTargets,validateConfig, andparseConfig. - Added TypeScript types for the Node API.
Fixes
- All file-based operations have been moved to
fs.promises, which increased performance quite a bit. - Fixed some issues with Windows paths.
- Added more tests and autogenerated documentation.
- Modified the build action to run tests on Windows and MacOS. Added a documentation action.
- Added an ESLint config which lints StandardJS and JSDoc comments. This config needs work as the JSDoc plugin for eslint doesn't understand some of the syntax used.
- Updated NPM dependencies.