Skip to content

Commit

Permalink
🐛 Fix bad yaml file (#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
pranavgaikwad committed Jan 24, 2024
1 parent 66865ba commit 871ce5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/global-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ jobs:
- uses: actions/checkout@v3
with:
path: rulesets

- name: Validate YAML rules
working-directory: rulesets
run: |
#!/bin/bash
rc=0
for file in $(find . -type f -name *.yaml); do
yq eval '.' "$file" > /dev/null 2>&1 || {
echo "::warning:: bad yaml file ${file}"
rc=1
}
done
exit $rc
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
- name: registry
nameOfCaptureGroup: registry
pattern: org.apache.camel.impl.(?P<registry>(PropertyPlaceholderDelegateRegistry|CompositeRegistry))
description: 'Classes under 'org.apache.camel.impl' have been removed'
description: 'Classes under org.apache.camel.impl have been removed'
effort: 1
labels:
- konveyor.io/source=camel2
Expand Down Expand Up @@ -412,7 +412,7 @@
- name: moved
nameOfCaptureGroup: moved
pattern: org.apache.camel.util.(?P<moved>(AsyncProcessorHelper|AsyncProcessorConverterHelper|EndpointHelper|EventHelper|ExchangeHelper|GZIPHelper|JsonSchemaHelper|MessageHelper|PlatformHelper|PredicateAssertHelper|ResolverHelper|ResourceHelper|UnitOfWorkHelper))
description: 'Classes under 'org.apache.camel.util' have been moved to 'org.apache.camel.support'.'
description: 'Classes under `org.apache.camel.util` have been moved to `org.apache.camel.support`.'
effort: 1
labels:
- konveyor.io/source=camel2
Expand Down Expand Up @@ -526,7 +526,7 @@
pattern: org.apache.camel.impl.ThrottlingInflightRoutePolicy
- category: mandatory
customVariables: []
description: 'Classes under 'org.apache.camel.processor.idempotent' have been moved to 'org.apache.camel.support.processor.idempotent''
description: 'Classes under `org.apache.camel.processor.idempotent` have been moved to `org.apache.camel.support.processor.idempotent`'
effort: 1
labels:
- konveyor.io/source=camel2
Expand Down Expand Up @@ -716,7 +716,7 @@
- name: class
nameOfCaptureGroup: class
pattern: org.apache.camel.(?P<class>(Consume|EndpointInject|Produce))
description: 'Replace the deprecated 'uri' attribute with 'value' in Apache Camel's Consume, EndpointInject, or Produce annotations for modernization '
description: "Replace the deprecated `uri` attribute with `value` in Apache Camel's Consume, EndpointInject, or Produce annotations for modernization"
effort: 0
labels:
- konveyor.io/source=camel2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
labels:
- konveyor.io/include=always
links: []
\ "
ruleID: integration-00001
tag:
- Apache Camel
Expand Down

0 comments on commit 871ce5c

Please sign in to comment.