<commit_before>trigger:
    - main

jobs:
    - job: Compliance
      pool:
          vmImage: 'windows-latest'
      steps:
          - task: PoliCheck@1
            displayName: '🌎 PoliCheck'
            inputs:
                inputType: 'Basic'
                targetType: 'F'
                targetArgument: '$(Build.SourcesDirectory)'
                result: 'PoliCheck.xml'
                optionsXS: 1 # Scan subfolders
                optionsPE: 1 # Enable exclusions
                optionsUEPATH: '$(Build.SourcesDirectory)/policheck/UserExclusion.xml'

          - task: PublishBuildArtifacts@1
            displayName: 'Create log artifact'
            inputs:
              pathToPublish: '..\_sdt\logs\PoliCheck\PoliCheck.xml'
              artifactName: 'PoliCheck

    - job: Security
      pool:
          vmImage: 'windows-latest'
      steps:
          - task: ESLint@1
            displayName: '🛡 Guardian: ESLint'
            inputs:
                Configuration: 'recommended'
                TargetType: 'eslint'
                TargetsESLint: |
                    $(Build.SourcesDirectory)/**/*.js
                ErrorLevel: 'warn'<commit_msg>Fix Typo in Azure Pipeline (#190)<commit_after>trigger:
    - main

jobs:
    - job: Compliance
      pool:
          vmImage: 'windows-latest'
      steps:
          - task: PoliCheck@1
            displayName: '🌎 PoliCheck'
            inputs:
                inputType: 'Basic'
                targetType: 'F'
                targetArgument: '$(Build.SourcesDirectory)'
                result: 'PoliCheck.xml'
                optionsXS: 1 # Scan subfolders
                optionsPE: 1 # Enable exclusions
                optionsUEPATH: '$(Build.SourcesDirectory)/policheck/UserExclusion.xml'

          - task: PublishBuildArtifacts@1
            displayName: 'Create log artifact'
            inputs:
                pathToPublish: '..\_sdt\logs\PoliCheck\PoliCheck.xml'
                artifactName: 'PoliCheck'

    - job: Security
      pool:
          vmImage: 'windows-latest'
      steps:
          - task: ESLint@1
            displayName: '🛡 Guardian: ESLint'
            inputs:
                Configuration: 'recommended'
                TargetType: 'eslint'
                TargetsESLint: |
                    $(Build.SourcesDirectory)/**/*.js
                ErrorLevel: 'warn'
{'fraction_non_alphanumeric': 0.0946345585128855, 'fraction_numerical': 0.005492184199408534, 'mean_word_length': 1.4262295081967213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2927625', 'n_tokens_mistral': 690, 'n_tokens_neox': 635, 'n_words': 134}