-
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.
Update HEMTT and tools + lint cleanup (#104)
* Update HEMTT & tools * Fix unused format param * Config duplication * Remove unnecessary macro padding * Fix command casing * Use select instead of if * Remove repeated calls to global marker * Sort stringtables * Add (not exactly) missing semicolon * Add missing `isNotEqualTo` keyword to validator * Replace multi-line with single-line comment * List files with docblock * Validate only fnc_*.sqf files * Fix return types * Fix stringtable validator prefix
- Loading branch information
Showing
74 changed files
with
760 additions
and
504 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,3 @@ | ||
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
# | ||
* @ArmaForces/sqf-devs |
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,38 @@ | ||
[ | ||
{ | ||
"name": "bug", | ||
"color": "#d73a4a", | ||
"description": "Something isn't working" | ||
}, | ||
{ | ||
"name": "bugfix", | ||
"color": "#52ed47", | ||
"description": "Fixes something wasn't working" | ||
}, | ||
{ | ||
"name": "documentation", | ||
"color": "#0075ca", | ||
"description": "Improvements or additions to documentation" | ||
}, | ||
{ | ||
"name": "duplicate", | ||
"color": "#cfd3d7", | ||
"description": "This issue or pull request already exists" | ||
}, | ||
{ | ||
"name": "enhancement", | ||
"color": "#a2eeef", | ||
"description": "New feature or request" | ||
}, | ||
{ | ||
"name": "ignore changelog", | ||
"color": "#fff", | ||
"description": "Do not add to changelog" | ||
}, | ||
{ | ||
"name": "scenario", | ||
"color": "#3BC4B8", | ||
"description": "Improvements or additions to a scenario" | ||
} | ||
] | ||
|
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,33 @@ | ||
branches: | ||
- master | ||
|
||
name-template: 'v$NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
|
||
categories: | ||
- title: '**ADDED:**' | ||
labels: | ||
- feature | ||
- title: '**FIXED:**' | ||
labels: | ||
- bugfix | ||
- title: '**CHANGED:**' | ||
labels: | ||
- cleanup | ||
- enhancement | ||
|
||
exclude-labels: | ||
- 'ignore changelog' | ||
|
||
change-template: '- $TITLE (#$NUMBER)' | ||
template: | | ||
_ArmaForces SerialKillers release._ | ||
## Change Log Summary | ||
$CHANGES | ||
replacers: | ||
# Category titles | ||
- search: '/\#\# (\*\*(ADDED|FIXED|CHANGED):\*\*)/g' | ||
replace: '$1' |
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,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Release Drafter | ||
if: github.repository == 'ArmaForces/SerialKillers' | ||
uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,33 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build_addon: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set VERSION env | ||
run: echo VERSION=${GITHUB_REF:11} >> $GITHUB_ENV | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Run HEMTT release | ||
run: hemtt release | ||
# Upload to GitHub | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: 'releases/afsk-${{ env.VERSION }}-*.zip' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Upload to Steam Workshop | ||
- uses: arma-actions/workshop-upload@v1 | ||
with: | ||
itemId: '1993094302' # Id of item to update | ||
contentPath: '.hemttout/release' | ||
changelog: 'https://github.com/ArmaForces/SerialKillers/releases/tag/v${{ env.VERSION }}' | ||
env: | ||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | ||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} |
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 @@ | ||
|
||
let modCpp = HEMTT_VFS | ||
.join("mod.cpp") | ||
.open_file() | ||
.read() | ||
; | ||
|
||
modCpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
|
||
HEMTT_VFS | ||
.join("mod.cpp") | ||
.create_file() | ||
.write(modCpp) | ||
; |
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,43 @@ | ||
[default] | ||
workshop = [ | ||
"450814997", # CBA_A3 | ||
"2369477168", # ADT | ||
] | ||
parameters = [ | ||
"-name=dev_sk", | ||
] | ||
|
||
[ace] | ||
extends = "default" | ||
workshop = [ | ||
"463939057", # ACE | ||
# "766491311", # KKA3 ACE Extension | ||
] | ||
|
||
[cup] | ||
extends = "default" | ||
workshop = [ | ||
"583496184", # CUP Terrains - Core | ||
"583544987", # CUP Terrains - Maps | ||
"497660133", # CUP Weapons | ||
"497661914", # CUP Units | ||
"541888371", # CUP Vehicles | ||
] | ||
|
||
[vn] | ||
extends = "default" | ||
dlc = [ | ||
"S.O.G. Prairie Fire", | ||
] | ||
|
||
[ww2] | ||
extends = "default" | ||
dlc = [ | ||
"Spearhead 1944", | ||
] | ||
|
||
[gm] | ||
extends = "default" | ||
dlc = [ | ||
"Global Mobilization", | ||
] |
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,6 @@ | ||
[sqf.command_case] | ||
options.ignore = [ | ||
"CIVILIAN", | ||
"EAST", | ||
"WEST", | ||
] |
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
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
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
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.