Skip to content

Commit

Permalink
chore: Add EOF check to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tshashkova committed Dec 13, 2023
1 parent 72d71ff commit 887bc0d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
paths-ignore:
- '**/.gitignore'
- '**/*.md'
- 'proto'
- '**/proto/**'

jobs:
eslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- name: Checkout source code
Expand All @@ -32,3 +33,13 @@ jobs:
reporter: github-pr-review
workdir: ./
eslint_flags: "--cache ./**/*.{js,jsx,ts,tsx}"

linelint:
runs-on: ubuntu-latest
name: Check if all files end in newline
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Linelint
uses: fernandrone/linelint@master
id: linelint
15 changes: 15 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
rules:
# checks if file ends in a newline character
end-of-file:
# set to true to enable this rule
enable: true

# set to true to disable autofix (if enabled globally)
disable-autofix: false

# will be ignored only by this rule
ignore:
- '**/proto/**'

# if true also checks if file ends in a single newline character
single-new-line: true
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,4 +493,4 @@ If you have any questions about this Agreement, please contact us at
or obligations under this Agreement without the prior written
approval of Inworld. Inworld may transfer, delegate, or
otherwise assign this Agreement and all of its rights hereunder
to any person without your consent.
to any person without your consent.
2 changes: 1 addition & 1 deletion examples/chat/bak.env copy.local
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ REACT_APP_MODEL_URI=./assets/innequin_v3.glb
REACT_APP_DRACO_COMPRESSION_URI=/draco-gltf/
# Innequin Defaults
REACT_APP_DEFAULT_ANIMATION=Neutral_Hello_Long_01
REACT_APP_DEFAULT_SKIN=WOOD1
REACT_APP_DEFAULT_SKIN=WOOD1
2 changes: 1 addition & 1 deletion examples/generate_token/.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ INWORLD_SCENE=
PORT=4000
USE_SSL=false
SSL_KEY_NAME=
SSL_CERT_NAME=
SSL_CERT_NAME=

0 comments on commit 887bc0d

Please sign in to comment.