-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 99-shoot-system-tests
- Loading branch information
Showing
29 changed files
with
872 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" | ||
"https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
|
||
<suppressions> | ||
<suppress checks="TodoComment"/> | ||
<suppress checks="LineLength"/> | ||
<suppress checks="JavadocPackage"/> | ||
<suppress checks="ConstantName"/> | ||
<suppress checks="JavadocVariable"/> | ||
</suppressions> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,46 @@ | ||
name: Code Linter | ||
on: [pull_request] | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
suppressionLevel: | ||
description: 'Suppressions Level' | ||
required: true | ||
default: 'Normal' | ||
type: choice | ||
options: | ||
- Normal | ||
- More | ||
- Show All | ||
lintActions: | ||
description: 'Lint Github Actions' | ||
required: true | ||
default: true | ||
type: boolean | ||
lintMD: | ||
description: 'Lint Markdown' | ||
required: true | ||
default: false | ||
type: boolean | ||
lintXML: | ||
description: 'Lint XML' | ||
required: true | ||
default: false | ||
type: boolean | ||
lintYML: | ||
description: 'Lint YML' | ||
required: true | ||
default: false | ||
type: boolean | ||
|
||
env: | ||
suppressionLevel: ${{ github.event_name != 'workflow_dispatch' && 'Normal' || inputs.suppressionLevel }} | ||
lintActions: ${{ github.event_name != 'workflow_dispatch' && 'true' || inputs.lintActions }} | ||
lintMD: ${{ github.event_name != 'workflow_dispatch' && 'false' || inputs.lintMD }} | ||
lintXML: ${{ github.event_name != 'workflow_dispatch' && 'false' || inputs.lintXML }} | ||
lintYML: ${{ github.event_name != 'workflow_dispatch' && 'false' || inputs.lintYML }} | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
@@ -13,6 +54,20 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check Suppressions Level | ||
run: | | ||
if [ "$SUPPRESSIONS" == "Show All" ]; then | ||
echo "Showing ALL Suppressions (Use at your own risk)" | ||
rm .github/linter_suppressions.xml | ||
elif [ "$SUPPRESSIONS" == "More" ]; then | ||
echo "Showing More Suppressions" | ||
rm .github/linter_suppressions.xml | ||
mv .github/linter_suppressions_limited.xml .github/linter_suppressions.xml | ||
else | ||
echo "Using Normal Suppressions" | ||
fi | ||
env: | ||
SUPPRESSIONS: ${{ env.suppressionLevel }} | ||
- name: Java Code Linter | ||
uses: super-linter/super-linter/[email protected] | ||
env: | ||
|
@@ -22,12 +77,13 @@ jobs: | |
JAVA_FILE_NAME: 'sun_checks.xml' | ||
VALIDATE_BASH: false | ||
VALIDATE_BASH_EXEC: false | ||
VALIDATE_GITHUB_ACTIONS: ${{ env.lintActions != 'true' && 'false' || '' }} | ||
VALIDATE_GITLEAKS: false | ||
VALIDATE_GOOGLE_JAVA_FORMAT: false | ||
VALIDATE_GROOVY: false | ||
VALIDATE_JSCPD: false | ||
VALIDATE_JSON: false | ||
VALIDATE_MARKDOWN: false | ||
VALIDATE_MARKDOWN: ${{ env.lintMD != 'true' && 'false' || '' }} | ||
VALIDATE_NATURAL_LANGUAGE: false | ||
VALIDATE_XML: false | ||
VALIDATE_YAML: false | ||
VALIDATE_XML: ${{ env.lintXML != 'true' && 'false' || '' }} | ||
VALIDATE_YAML: ${{ env.lintYML != 'true' && 'false' || '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": 1.0, | ||
"startingPose": null, | ||
"command": { | ||
"type": "sequential", | ||
"data": { | ||
"commands": [ | ||
{ | ||
"type": "named", | ||
"data": { | ||
"name": "test" | ||
} | ||
}, | ||
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "1MeterSquareLL" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"folder": "Test Autos", | ||
"choreoAuto": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": 1.0, | ||
"startingPose": null, | ||
"command": { | ||
"type": "sequential", | ||
"data": { | ||
"commands": [ | ||
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "Sipnslow" | ||
} | ||
}, | ||
{ | ||
"type": "named", | ||
"data": { | ||
"name": "test" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"folder": null, | ||
"choreoAuto": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "Spin" | ||
"pathName": "Spinslow" | ||
} | ||
} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"version": 1.0, | ||
"startingPose": { | ||
"position": { | ||
"x": 0.0, | ||
"y": 0.0 | ||
}, | ||
"rotation": 0 | ||
}, | ||
"command": { | ||
"type": "sequential", | ||
"data": { | ||
"commands": [ | ||
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "1MeterSquare" | ||
} | ||
}, | ||
{ | ||
"type": "wait", | ||
"data": { | ||
"waitTime": 2.0 | ||
} | ||
}, | ||
{ | ||
"type": "named", | ||
"data": { | ||
"name": "test" | ||
} | ||
}, | ||
{ | ||
"type": "wait", | ||
"data": { | ||
"waitTime": 2.0 | ||
} | ||
}, | ||
{ | ||
"type": "path", | ||
"data": { | ||
"pathName": "4MeterSquare" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"folder": null, | ||
"choreoAuto": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.