2.26.1 (2024-06-15)
- release configurations and extension on workflow (6dc4dd2)
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix wrong exit code which has to be related to --failon option (default:
error
) - Display severity in human format results
- Automate Releases via GitHub Actions
- From
master
branch: beta - From
alpha
branch: alpha - When a GitHub release is created: Git tag selected for the release.
- From
- Run tests during Pull Request checks
- Fix exit code that should be 1 according to --failon value #71
Fixes:
- Bugfix folder scan & human output: some bugs have been fixed in 2.9 regarding including node modules in the scope of the scan and also the issues in the human output
New Rule: Copy of API Name
Having multiple elements called Copy_X_Of_Element will decrease the readability of the Flow. If you copy and paste them, make sure to update the API name of the new copy.
Configuration ID: CopyOf (View source code)
Introducing two new configurable rules!
- Old API Version
- Flow Naming Convention
Newer API components may cause older versions of Flows to start behaving incorrectly due to differences in the underlying mechanics. The Api Version has been available as an attribute on the Flow since API v50.0 and it is recommended to limit variation and to update them on a regular basis.
Default Value: >50.0
Configuration example:
APIVersion:
{
severity: 'error',
expression: '===58'
}
Configuration ID: APIVersion
(View source code)
Readability of flow is very important. Agreeing on and following the same naming conventions will ease collaboration.
Default Value: [A-Za-z0-9]+_[A-Za-z0-9]+
Configuration example:
FlowName:
{
severity: 'error',
expression: '[A-Za-z0-9]'
}
Configuration ID: FlowName
(View source code)
- DuplicateDMLOperations now also returns false when the navigation of the screen after a DML has been hidden completely and not just the previous navigational button.
- Fix npm package generation (please do not use 2.0.0 but 2.1.0)
- Upgrade lightning-flow-scanner-core dependency to 2.5.0
- Markdown formatting
- Add screenshot image at the head of the README
- Fix rules table alignment
- Add banner at the top of the README
- BREAKING CHANGE:
--throwerrors
argument is not available anymore and is replaced by--failon
, that has more options - Update documentation in README
- Update human-readable output format
- Sort errors by flow
- New argument --failon (error/warning/note): Makes return code 1 in case --failon severity is reached
- Use cosmiconfig to load configuration
- Add a --retrieve argument in case user wants to retrieve flows from org before scanning
- Add a testing GitHub action Workflow
- Add CHANGELOG.md file
- Code refactorization
- let <=> const
- Split main method into smaller methods
- use fs-extra instead of sf plugin fs
- Remove tslint (deprecated), replaced by eslint
- Upgrade dependencies
- Add VsCode local debugging configuration