Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dotfiles
Submodule .dotfiles added at 979342
14 changes: 14 additions & 0 deletions .github/workflows/lint-codebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint Codebase

on:
pull_request:
paths:
- '**.swift'

jobs:
swiftlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run SwiftLint
uses: GetAutomaApp/opensource-actions/swiftlint@main
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
.swiftlint.yml
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".dotfiles"]
path = .dotfiles
url = https://github.com/GetAutomaApp/dotfiles
4 changes: 1 addition & 3 deletions Tokenizer/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import PackageDescription

let package = Package(

Check warning on line 5 in Tokenizer/Package.swift

View workflow job for this annotation

GitHub Actions / swiftlint

All declarations should specify Access Control Level keywords explicitly (explicit_acl)

Check warning on line 5 in Tokenizer/Package.swift

View workflow job for this annotation

GitHub Actions / swiftlint

Top-level declarations should specify Access Control Level keywords explicitly (explicit_top_level_acl)
name: "Tokenizer",
platforms: [
.macOS(.v15),
Expand All @@ -11,17 +11,15 @@
products: [
.library(
name: "Tokenizer",
targets: ["Tokenizer"]),

Check warning on line 14 in Tokenizer/Package.swift

View workflow job for this annotation

GitHub Actions / swiftlint

Multiline arguments should have their surrounding brackets in a new line (multiline_arguments_brackets)
.executable(
name: "TokenizerApp",
targets: ["TokenizerApp"]),

Check warning on line 17 in Tokenizer/Package.swift

View workflow job for this annotation

GitHub Actions / swiftlint

Multiline arguments should have their surrounding brackets in a new line (multiline_arguments_brackets)
],
targets: [
.target(
name: "Tokenizer"),
.executableTarget(
name: "TokenizerApp",
dependencies: ["Tokenizer"]),
.executableTarget(name: "TokenizerApp",dependencies: ["Tokenizer"]),

Check warning on line 22 in Tokenizer/Package.swift

View workflow job for this annotation

GitHub Actions / swiftlint

There should be no space before and one after any comma (comma)
.testTarget(
name: "TokenizerTests",
dependencies: ["Tokenizer"]
Expand Down
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "fluxscript",
"version": "1.0.0",
"description": "A versitile scripting language built to be fully customizable and embedded into swift programs!",
"main": "index.js",
"scripts": {
"config": "./.dotfiles/config.sh",
"install:swiftlint": "brew install swiftlint",
"install:swiftformat": "brew install swiftformat",
"install:all": "npx npm-run-all --sequential install:swiftlint install:swiftformat config",
"format": "swiftformat .",
"lint": "swiftlint --config=.swiftlint.yml .",
"update:submmdules": "git submodule foreach --recursive 'branch=$(git remote show origin | awk \"/HEAD branch/ {print \\$NF}\"); git checkout $branch && git pull origin $branch' && CHANGED=$(git status --porcelain | grep '^ M \\.dotfiles' || true) && if [ -n \"$CHANGED\" ]; then npm run config; fi && git add -A && git commit -m \"chore: update submodules\" || echo 'No changes to commit'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GetAutomaApp/FluxScript.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/GetAutomaApp/FluxScript/issues"
},
"homepage": "https://github.com/GetAutomaApp/FluxScript#readme"
}
Loading