diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..3474097 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Lint + +on: + push: + paths-ignore: + - '*.md' + pull_request: + paths-ignore: + - '*.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Clone the repository + uses: actions/checkout@v3 + with: + submodules: 'recursive' + - name: Setup PHP + uses: shivammathur/setup-php@v2 + - name: Run lint + run: php ./scripts/lint.php + - name: Upload lint results + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + path: ./build/lint-results.txt diff --git a/.gitignore b/.gitignore index f32e31a..969ed44 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea/ .DS_Store +build/ diff --git a/google.json b/google.json index f1ab9bf..8436901 100644 --- a/google.json +++ b/google.json @@ -28,7 +28,7 @@ { "id": "com.android.soundpicker", "description": "Google Sounds. Needed to pick up a phone ringtone. No weird permissions.", - "label": [ + "web": [ "https://beta.pithus.org/report/f5f7c265c6d98666c78267b91643bbfb635021d5d4f85c93407079ba4aad88ee" ], "removal": "caution" @@ -736,7 +736,7 @@ "https://www.androidcentral.com/amber-alerts-and-android-what-you-need-know", "https://android.googlesource.com/platform/packages/apps/CellBroadcastReceiver/+/refs/heads/master/src/com/android/cellbroadcastreceiver" ], - "removal": "caution", + "removal": "caution" }, { "id": "com.google.android.cellbroadcastservice", @@ -748,7 +748,7 @@ "https://en.wikipedia.org/wiki/Cell_Broadcast", "https://www.androidcentral.com/amber-alerts-and-android-what-you-need-know" ], - "removal": "caution", + "removal": "caution" }, { "id": "com.google.android.configupdater", diff --git a/misc.json b/misc.json index ec53b4c..70dc82e 100644 --- a/misc.json +++ b/misc.json @@ -80,7 +80,7 @@ }, { "id": "com.amazon.kindle", - "label": "Amazon Kindle" + "label": "Amazon Kindle", "description": "Kindle eBook reader app", "web": [ "https://play.google.com/store/apps/details?id=com.amazon.kindle" @@ -105,7 +105,7 @@ }, { "id": "com.amazon.mp3", - "label": "Amazon Music" + "label": "Amazon Music", "description": "Amazon Music streaming app", "web": [ "https://play.google.com/store/apps/details?id=com.amazon.mp3" @@ -126,7 +126,7 @@ }, { "id": "com.aspiro.tidal", - "label": "TIDAL Music" + "label": "TIDAL Music", "description": "Tidal Music streaming app", "web": [ "https://play.google.com/store/apps/details?id=com.aspiro.tidal" @@ -172,7 +172,7 @@ }, { "id": "com.cnn.mobile.android.phone", - "label": "CNN Breaking US & World News" + "label": "CNN Breaking US & World News", "description": "News app from CNN", "web": [ "https://play.google.com/store/apps/details?id=com.cnn.mobile.android.phone" @@ -354,7 +354,7 @@ }, { "id": "com.galaxyfirsatlari", - "label": "Galaxy Fırsatları" + "label": "Galaxy Fırsatları", "description": "Samsung-only app for Turkish people\nRecommands you stuff to buy. You are supposed to save money but we all know this kind of apps\nEncourages consumption.\nExodus found 10 trackers and 17 permissions : https://reports.exodus-privacy.eu.org/fr/reports/143830/", "web": [ "https://play.google.com/store/apps/details?id=com.galaxyfirsatlari" @@ -612,7 +612,7 @@ "web": [ "https://play.google.com/store/apps/details?id=com.microsoft.office.onenote" ], - "removal": "replace" + "removal": "replace", "suggestions": "note_taking_apps" }, { @@ -1179,7 +1179,7 @@ "web": [ "https://play.google.com/store/apps/details?id=com.skype.raider" ], - "removal": "replace" + "removal": "replace", "suggestions": "meeting_apps" }, { diff --git a/oem.json b/oem.json index ca9110d..5ea8072 100644 --- a/oem.json +++ b/oem.json @@ -1971,8 +1971,8 @@ "web": [ "https://beta.pithus.org/report/3cdd48fb6a9c94435fb1b46b41a19c553b96ae889aaa2d7285f28cd64d12363e" ], - "removal": "replace" - "warning": "Make sure have installed another launcher before debloating this app" + "removal": "replace", + "warning": "Make sure have installed another launcher before debloating this app", "suggestions": "launchers" }, { @@ -2901,7 +2901,7 @@ { "id": "com.miui.screenrecorder", "description": "Mi Screen Recorder\n", - "removal": "replace" + "removal": "replace", "suggestions": "screen_recorders" }, { @@ -4039,7 +4039,7 @@ "web": [ "https://beta.pithus.org/report/f55e935357865f4647e59c98afb5a3a46aba22a48844d80d2819d122781e3fde" ], - "removal": "delete" + "removal": "delete", "warning": "Removing this package prevents the OnePlus Game Center to detect games." }, { @@ -4924,7 +4924,7 @@ { "id": "com.samsung.android.messaging", "description": "Samsung Messaging app\n", - "removal": "replace" + "removal": "replace", "suggestions": "sms" }, { @@ -6980,7 +6980,7 @@ "id": "com.tblenovo.whatsnewhost", "label": "Lenovo Feature Update Host", "description": "Exactly not sure what it does.\n", - "web" [ + "web": [ "https://beta.pithus.org/report/e08b8712d07899653631f3a9ac12c0ed48ff7bdb699651724eba26871ac0ca2b" ], "removal": "caution" diff --git a/scripts/lint.php b/scripts/lint.php new file mode 100644 index 0000000..fbb60a9 --- /dev/null +++ b/scripts/lint.php @@ -0,0 +1,207 @@ + $o2['id']; }); - file_put_contents(__DIR__ . '/' . $json_file, json_encode($list, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); + file_put_contents(__DIR__ . 'test.php/' . $json_file, json_encode($list, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); } diff --git a/update_uad.php b/scripts/update_uad.php similarity index 100% rename from update_uad.php rename to scripts/update_uad.php diff --git a/suggestions/barcode_scanners.json b/suggestions/barcode_scanners.json index 6a6b153..a799933 100644 --- a/suggestions/barcode_scanners.json +++ b/suggestions/barcode_scanners.json @@ -4,5 +4,5 @@ "label": "Binary Eye", "source": "fg", "repo": "https://github.com/markusfisch/BinaryEye" - }, + } ]