-
Notifications
You must be signed in to change notification settings - Fork 127
Lint #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tbleher
wants to merge
7
commits into
entropia:master
Choose a base branch
from
tbleher:lint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Lint #239
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c61260d
Script to download all GMEs
nomeata 806be99
tttool lint: Slightly improve code
nomeata 0441235
Audio table decoding: Detect the audio table copy more liberally
nomeata 9313000
Allow giving the filename with extension in play commands (#237)
tbleher 5ad1912
lint: verify that each line contains only one jump
3bd755c
lint: set exit code if any lint check triggers
d11c1db
Apply suggestions from code review
tbleher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,3 +1,5 @@ | ||
output | ||
./downloaded | ||
./all-gmes | ||
!expected/** | ||
|
This file contains hidden or 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 hidden or 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,19 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
dir="${1:-downloaded}" | ||
gmes="${1:-gme-files-test.txt}" | ||
dir="${2:-downloaded}" | ||
|
||
mkdir -p "$dir" | ||
cd "$dir" | ||
|
||
# We used to have a script that would fetch an .xml file from ravensburger | ||
# that lists all GME files, but that XML file disappeared. | ||
# For now, just list some GME files | ||
|
||
function get() { | ||
wget --no-verbose --timestamping --no-check-certificate \ | ||
https://ssl-static.ravensburger.de/db/applications/"$1" | ||
} | ||
|
||
get WissenQuizzen1.gme | ||
get Pocketwissen_Feuerwehr.gme | ||
while read -r filename; do | ||
wget --no-verbose --timestamping --no-check-certificate -P "$dir" \ | ||
https://ssl-static.ravensburger.de/db/applications/"$filename" | ||
done < "$gmes" |
16 changes: 16 additions & 0 deletions
16
testsuite/expected/downloaded/Alle meine Tiere.gme.info.txt
This file contains hidden or 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,16 @@ | ||
Product ID: 100 | ||
Raw XOR value: 0x000000C6 | ||
Magic XOR value: 0x55 | ||
Comment: CHOMPTECH DATA FORMAT CopyRight 2009 Ver2.10.0901 | ||
Date: 20170315 | ||
Language: | ||
Number of registers: 3 | ||
Initial registers: [0,0,0] | ||
Initial sounds: [[18,25]] | ||
Scripts for OIDs from 4201 to 4282; 0/82 are disabled. | ||
Audio table entries: 543 | ||
Audio table copy: Similar | ||
Binary tables entries: 0/0/0 | ||
Single binary table entries: 1/1/1 | ||
Special OIDs: 4210, 0 | ||
Checksum found 0x6E379441, calculated 0x6E379441 |
1 change: 1 addition & 0 deletions
1
...ed/downloaded/WissenQuizzen1.gme.lint.txt → .../downloaded/Alle meine Tiere.gme.lint.txt
This file contains hidden or 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,2 +1,3 @@ | ||
All lines do satisfy hypothesis "play indicies are correct"! | ||
All lines do satisfy hypothesis "media indicies are correct"! | ||
All lines do satisfy hypothesis "at most one jump per line, as last action"! |
This file contains hidden or 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 @@ | ||
0fd54c3bbb1a88b494972a2547b08f9f output/downloaded/Alle meine Tiere.gme.yaml |
16 changes: 16 additions & 0 deletions
16
testsuite/expected/downloaded/Dein Koerper und Du.gme.info.txt
This file contains hidden or 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,16 @@ | ||
Product ID: 61 | ||
Raw XOR value: 0x000000FA | ||
Magic XOR value: 0x16 | ||
Comment: CHOMPTECH DATA FORMAT CopyRight 2009 Ver2.10.0901 | ||
Date: 20141021 | ||
Language: | ||
Number of registers: 71 | ||
Initial registers: [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] | ||
Initial sounds: [[1447,317],[317]] | ||
Scripts for OIDs from 5670 to 9969; 3709/4300 are disabled. | ||
Audio table entries: 1448 | ||
Audio table copy: Equal | ||
Binary tables entries: 1/1/1 | ||
Single binary table entries: 1/1/1 | ||
Special OIDs: 9756, 0 | ||
Checksum found 0x0092FB3D, calculated 0x0092FB3D |
1 change: 1 addition & 0 deletions
1
...oaded/Pocketwissen_Feuerwehr.gme.lint.txt → ...wnloaded/Dein Koerper und Du.gme.lint.txt
This file contains hidden or 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,2 +1,3 @@ | ||
All lines do satisfy hypothesis "play indicies are correct"! | ||
All lines do satisfy hypothesis "media indicies are correct"! | ||
All lines do satisfy hypothesis "at most one jump per line, as last action"! |
1 change: 1 addition & 0 deletions
1
testsuite/expected/downloaded/Dein Koerper und Du.gme.yaml.md5sum
This file contains hidden or 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 @@ | ||
e2f933effc132ed235888e4f0bf22e8f output/downloaded/Dein Koerper und Du.gme.yaml |
16 changes: 16 additions & 0 deletions
16
testsuite/expected/downloaded/Duell-der-Superquizzer.gme.info.txt
This file contains hidden or 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,16 @@ | ||
Product ID: 137 | ||
Raw XOR value: 0x000000D2 | ||
Magic XOR value: 0x4D | ||
Comment: CHOMPTECH DATA FORMAT CopyRight 2009 Ver2.10.0901 | ||
Date: 20190215 | ||
Language: | ||
Number of registers: 3 | ||
Initial registers: [1,0,0] | ||
Initial sounds: [[29,44,108]] | ||
Scripts for OIDs from 4100 to 4300; 0/201 are disabled. | ||
Audio table entries: 2115 | ||
Audio table copy: Similar | ||
Binary tables entries: 1/1/1 | ||
Single binary table entries: 1/1/1 | ||
Special OIDs: 4105, 0 | ||
Checksum found 0xFD752110, calculated 0xFD752110 |
3 changes: 3 additions & 0 deletions
3
testsuite/expected/downloaded/Duell-der-Superquizzer.gme.lint.txt
This file contains hidden or 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,3 @@ | ||
All lines do satisfy hypothesis "play indicies are correct"! | ||
All lines do satisfy hypothesis "media indicies are correct"! | ||
All lines do satisfy hypothesis "at most one jump per line, as last action"! |
1 change: 1 addition & 0 deletions
1
testsuite/expected/downloaded/Duell-der-Superquizzer.gme.yaml.md5sum
This file contains hidden or 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 @@ | ||
61a09460d93d53c8c5383248973bf1a7 output/downloaded/Duell-der-Superquizzer.gme.yaml |
16 changes: 16 additions & 0 deletions
16
testsuite/expected/downloaded/Expedition Wissen - Aegypten.gme.info.txt
This file contains hidden or 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,16 @@ | ||
Product ID: 34 | ||
Raw XOR value: 0x00000025 | ||
Magic XOR value: 0xDE | ||
Comment: CHOMPTECH DATA FORMAT CopyRight 2009 Ver2.10.0901 | ||
Date: 20150114 | ||
Language: | ||
Number of registers: 51 | ||
Initial registers: [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] | ||
Initial sounds: [[907,908],[908]] | ||
Scripts for OIDs from 34 to 3583; 3018/3550 are disabled. | ||
Audio table entries: 909 | ||
Audio table copy: Equal | ||
Binary tables entries: 14/14/14 | ||
Single binary table entries: 1/1/1 | ||
Special OIDs: 3010, 3009 | ||
Checksum found 0xC3F06F70, calculated 0xC3F06F70 |
3 changes: 3 additions & 0 deletions
3
testsuite/expected/downloaded/Expedition Wissen - Aegypten.gme.lint.txt
This file contains hidden or 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,3 @@ | ||
All lines do satisfy hypothesis "play indicies are correct"! | ||
All lines do satisfy hypothesis "media indicies are correct"! | ||
All lines do satisfy hypothesis "at most one jump per line, as last action"! |
1 change: 1 addition & 0 deletions
1
testsuite/expected/downloaded/Expedition Wissen - Aegypten.gme.yaml.md5sum
This file contains hidden or 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 @@ | ||
0a99dc6315e77ff0efb0c91928480327 output/downloaded/Expedition Wissen - Aegypten.gme.yaml |
16 changes: 16 additions & 0 deletions
16
testsuite/expected/downloaded/Leserabe Drache.gme.info.txt
This file contains hidden or 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,16 @@ | ||
Product ID: 32 | ||
Raw XOR value: 0x00000024 | ||
Magic XOR value: 0xA1 | ||
Comment: CHOMPTECH DATA FORMAT CopyRight 2009 Ver2.10.0901 | ||
Date: 20141127 | ||
Language: GERMANÚ | ||
Number of registers: 45 | ||
Initial registers: [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] | ||
Initial sounds: [[1007,1008]] | ||
Scripts for OIDs from 1008 to 5547; 3755/4540 are disabled. | ||
Audio table entries: 1009 | ||
Audio table copy: Equal | ||
Binary tables entries: 12/12/12 | ||
Single binary table entries: 1/1/1 | ||
Special OIDs: 4902, 4901 | ||
Checksum found 0x848AC808, calculated 0x848AC808 |
This file contains hidden or 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,3 @@ | ||
All lines do satisfy hypothesis "play indicies are correct"! | ||
All lines do satisfy hypothesis "media indicies are correct"! | ||
All lines do satisfy hypothesis "at most one jump per line, as last action"! |
This file contains hidden or 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 @@ | ||
dafec43004052b310638581994076b1a output/downloaded/Leserabe Drache.gme.yaml |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.