Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Lightning-Flow-Scanner/lightning-flow-scanner-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.14.0
Choose a base ref
...
head repository: Lightning-Flow-Scanner/lightning-flow-scanner-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 27, 2025

  1. Copy the full SHA
    8e173b9 View commit details
  2. Copy the full SHA
    2680ffa View commit details
  3. Copy the full SHA
    c74542a View commit details
  4. Copy the full SHA
    4f55ee2 View commit details
  5. Merge pull request #165 from Lightning-Flow-Scanner/release-swc-compiler

    feat: use swc compiler for everything
    junners authored Jan 27, 2025
    Copy the full SHA
    b90b2d1 View commit details
  6. Copy the full SHA
    076b0a7 View commit details
  7. Copy the full SHA
    e99765f View commit details

Commits on Feb 1, 2025

  1. Copy the full SHA
    25f1653 View commit details
  2. Copy the full SHA
    a2492bc View commit details
  3. Merge pull request #171 from Lightning-Flow-Scanner/convert-project-t…

    …o-esm
    
    feat: convert core project to esm and use vite for umd bundling browser ready version
    junners authored Feb 1, 2025
    Copy the full SHA
    ea5b40f View commit details
  4. Copy the full SHA
    a6bb052 View commit details

Commits on Feb 2, 2025

  1. Copy the full SHA
    3a2afa7 View commit details
  2. Merge pull request #172 from Lightning-Flow-Scanner/fix-build-scripts

    fix: failing build scripts after removing cjs
    junners authored Feb 2, 2025
    Copy the full SHA
    d74865a View commit details
  3. Copy the full SHA
    df4d39e View commit details
  4. Copy the full SHA
    3660fad View commit details

Commits on Feb 6, 2025

  1. Copy the full SHA
    5ddeb17 View commit details
  2. Copy the full SHA
    f81b0db View commit details
  3. Merge pull request #173 from Lightning-Flow-Scanner/quality-hardening…

    …-mutation-tests
    
    test: use stryker for mutation testing quality hardening
    junners authored Feb 6, 2025
    Copy the full SHA
    e35b41b View commit details
  4. Copy the full SHA
    d66ce97 View commit details

Commits on Feb 12, 2025

  1. move naming logic from Flow Model to ParseFlows, and add metadata typ…

    …e preprocessing on Flow Model(description, apiversion, etc)
    RubenHalman committed Feb 12, 2025
    Copy the full SHA
    68d32b6 View commit details
  2. cyclomatic complexity

    RubenHalman committed Feb 12, 2025
    Copy the full SHA
    99f8bba View commit details
  3. cyclomatic complexity

    RubenHalman committed Feb 12, 2025
    Copy the full SHA
    e6d7d20 View commit details
  4. Copy the full SHA
    5175814 View commit details
  5. use parse as part of core

    RubenHalman committed Feb 12, 2025
    Copy the full SHA
    f049f3e View commit details

Commits on Feb 13, 2025

  1. Copy the full SHA
    bc44216 View commit details
  2. Copy the full SHA
    b28e238 View commit details
  3. Copy the full SHA
    c74ef13 View commit details
  4. Copy the full SHA
    828d2b6 View commit details
  5. Copy the full SHA
    2a99a21 View commit details
  6. Copy the full SHA
    c4377da View commit details
  7. Merge pull request #175 from Lightning-Flow-Scanner/cyclomatic-comple…

    …xity
    
    Cyclomatic complexity
    junners authored Feb 13, 2025
    Copy the full SHA
    2242627 View commit details
  8. Copy the full SHA
    6df4e59 View commit details

Commits on Feb 17, 2025

  1. Copy the full SHA
    81c7520 View commit details
  2. Copy the full SHA
    491e001 View commit details
  3. Copy the full SHA
    1578a04 View commit details
  4. Merge pull request #176 from Lightning-Flow-Scanner/package-lock-main…

    …tenance
    
    Package lock maintenance
    junners authored Feb 17, 2025
    Copy the full SHA
    7192a5e View commit details
  5. Copy the full SHA
    a16c498 View commit details
  6. Copy the full SHA
    20973bc View commit details
Showing with 7,175 additions and 1,466 deletions.
  1. +1 −6 .github/workflows/deploy-BETA.yml
  2. +2 −8 .github/workflows/deploy-RELEASE.yml
  3. +2 −2 .github/workflows/test.yml
  4. +17 −11 .gitignore
  5. +6 −4 .swcrc
  6. +1 −1 LICENSE.md
  7. +9 −9 jest.config.ts
  8. BIN {src → }/media/bannerslim.png
  9. +6,063 −1,213 package-lock.json
  10. +36 −31 package.json
  11. +2 −1 readme.md
  12. +1 −1 release.config.mjs
  13. +0 −26 rollup.config.mjs
  14. +35 −89 src/index.ts
  15. +3 −4 src/main/internals/internals.ts
  16. +1 −1 src/main/libs/DynamicRule.ts
  17. +20 −0 src/main/libs/FixFlows.ts
  18. +9 −0 src/main/libs/GetRuleDefinitions.ts
  19. +2 −2 src/main/libs/ParseFlows.ts
  20. +1 −1 src/main/libs/RuleLoader.ts
  21. +42 −0 src/main/libs/ScanFlows.ts
  22. +1 −1 src/main/models/Flow.ts
  23. +1 −1 src/main/models/FlowElement.ts
  24. +66 −0 src/main/rules/CyclomaticComplexity.ts
  25. +2 −0 src/main/store/DefaultRuleStore.ts
  26. +23 −0 stryker.config.mjs
  27. +1 −1 tests/APIVersion.test.ts
  28. +1 −1 tests/AutoLayout.test.ts
  29. +1 −1 tests/Config.test.ts
  30. +1 −1 tests/CopyAPIName.test.ts
  31. +123 −0 tests/CyclomaticComplexity.test.ts
  32. +1 −1 tests/DMLStatementInLoop.test.ts
  33. +1 −1 tests/DuplicateDMLOperation.test.ts
  34. +1 −1 tests/FlowDescription.test.ts
  35. +1 −1 tests/FlowName.test.ts
  36. +1 −1 tests/HardcodedId.test.ts
  37. +1 −1 tests/MissingFaultPath.test.ts
  38. +1 −1 tests/MissingNullHandler.test.ts
  39. +1 −1 tests/SOQLQueryInLoop.test.ts
  40. +1 −1 tests/SameRecordFieldUpdates.test.ts
  41. +4 −4 tests/UnconnectedElement.test.ts
  42. +5 −5 tests/UnsafeRunningContext.test.ts
  43. +1 −1 tests/UnusedVariable.test.ts
  44. +653 −0 tests/xmlfiles/Cyclomatic_Complexity.flow-meta.xml
  45. +5 −4 tsconfig.cjs.json → tsconfig.types.json
  46. +0 −27 tsconfig.umd.json
  47. +25 −0 vite.config.ts
7 changes: 1 addition & 6 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
@@ -47,12 +47,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci
npm run build
cp package*.json out && cp tsconfig.cjs.json out
mkdir -p out/src
mkdir -p out/src/media
cp ./src/media/bannerslim.png out/src/media
cp readme.md out
npm run swc:sim:pack
- name: Semantic Release Dependency
run: npm install -g @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm conventional-changelog-conventionalcommits semantic-release
- name: Publish Beta
10 changes: 2 additions & 8 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
@@ -40,14 +40,8 @@ jobs:
- name: Publish
run: |
npm install
npm run build
cp package.json out
cp tsconfig.cjs.json out
mkdir -p out/src
mkdir -p out/src/media
cp ./src/media/bannerslim.png out/src/media
cp readme.md out
cd out
npm run swc:sim:pack
cd out/src
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
node-version: 22.x
- name: Install dependencies
run: npm ci
- name: Run test build
run: npm run build
- name: Run test UMD compile
run: npm run vite:dist
- name: Run unit tests
run: npm run test
28 changes: 17 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
node_modules/
/out/
src/main/.DS_Store
.yarn/**
**.gz

dist/
out/

.nyc_output/
node_modules

# Mac files
**/.DS_Store
.DS_Store

.yarn/**
**.gz
*.log

coverage/
# generated directories
types
dist
out

# stryker temp files
.stryker-tmp

# generated reports
reports
coverage
.nyc_output
10 changes: 6 additions & 4 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"$schema": "https://swc.rs/schema.json",
"sourceMaps": "inline",
"sourceMaps": false,
"module": {
"type": "commonjs",
"type": "es6",
"strictMode": true,
"noInterop": false
"noInterop": false,
"resolveFully": true
},
"jsc": {
"externalHelpers": false,
@@ -21,5 +22,6 @@
},
"keepClassNames": true,
"baseUrl": "./"
}
},
"minify": true
}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Ruben Halman, Jun Jose and others
Copyright (c) 2025 Ruben Halman, Jun Jose and others

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
18 changes: 9 additions & 9 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -156,9 +156,7 @@ const config: Config = {
// ],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
// "/node_modules/"
// ],
testPathIgnorePatterns: ["/node_modules/"],

// The regexp pattern or array of patterns that Jest uses to detect test files
// testRegex: [],
@@ -170,16 +168,18 @@ const config: Config = {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: { "^.+.tsx?$": ["ts-jest", { tsconfig: "tsconfig.cjs.json", isolatedModules: true }] },
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
sourceMaps: "inline",
minify: false,
},
],
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
// "\\.pnp\\.[^\\/]+$"
// ],
transformIgnorePatterns: ["/node_modules/", "\\.pnp\\.[^\\/]+$"],

// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
// unmockedModulePathPatterns: undefined,
File renamed without changes
Loading