Skip to content

Commit

Permalink
chore: add typos
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Sep 25, 2024
1 parent a6581e8 commit 2b36779
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export DIRENV_WARN_TIMEOUT=5m
has nix && use flake
16 changes: 16 additions & 0 deletions .github/workflows/lints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linting

on:
push:
branches:
pull_request:
branches:

jobs:
build:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
95 changes: 95 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[default]
extend-ignore-identifiers-re = [
# java packages
"[a-z][a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)+[0-9a-zA-Z_]+",
# short commit hashes
"\\b[0-9a-f]{5,40}\\b"
]

[default.extend-identifiers]
UE4 = "UE4"
cpp-ue4 = "cpp-ue4"
DEACTIVE = "DEACTIVATE"
xdescribe = "xdescribe"
inout = "inout"
woo-noo = "woo-noo"


[default.extend-words]
testng = "testng"
robocorp = "robocorp"
freee = "freee"
verticle = "verticle"
commitish = "commitish"
cpp-ue4 = "cpp-ue4"
woo-noo = "woo-noo"
inout = "inout"
UE = "UE"
BA = "BA"
ND = "ND"
ist = "ist"
EDE = "EDE"
dota = "dota"
ser = "ser"
creater = "create"
claus = "claus"
2nd_place_medal = "2nd_place_medal"
fo = "fo"
Laso = "Laso"
patten = "pattern"
DEFFERED = "DEFERRED"
add-ons = "add-ons"
Paket = "Paket"
MKE = "MKE"
Informations = "Informations"
mvNiOIS = "mvNiOIS"
thess = "these"
Interal = "Internal"
sie = "sie"
NWE = "NWE"
womens = "womens"
noo = "noo"

[files]
extend-exclude = [
"samples/documentation/**/*.html",
"samples/documentation/**/*.js",
"modules/openapi-generator-online/src/main/resources/static/**/*",
"modules/openapi-generator/src/main/resources/htmlDocs2/**/*",
"modules/openapi-generator/src/main/resources/openapi-static/assets/js/*.js",
"modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json",
# contains a fixed typo
"docs/3.0.0-release-note.md"
]


[type.pbxproj]
extend-glob = [
"**/*.pbxproj"
]
check-file = false

[type.swift]
extend-glob = [
"*.swift",
"docs/generators/swift*.md",
"docs/generators/swift5.md",
"docs/generators/swift*/**/*.md",
"samples/client/**/swift*/**/*.md",
"samples/client/petstore/swift6/**/*.md"
]
# check-file = false

[type.swift.extend-words]
inout = "inout"

# [type.java.extend-identifiers]
# com.fasterxml.jackson.databind.ser = "com.fasterxml.jackson.databind.ser"

[type.cert]
extend-glob = ["*.cert"]
check-file = false

[type.http]
extend-glob = ["*.http"]
check-file = false
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
buildInputs = with pkgs;[
jdk11
maven
typos
];
};
}
Expand Down

0 comments on commit 2b36779

Please sign in to comment.