Skip to content

Commit

Permalink
Merge pull request #208323 from xu-cheng/cspell
Browse files Browse the repository at this point in the history
cspell 8.17.4 (new formula)
  • Loading branch information
BrewTestBot authored Feb 21, 2025
2 parents 26f3da0 + 32d0488 commit 412e23c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/c/cspell.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Cspell < Formula
desc "Spell checker for code"
homepage "https://cspell.org"
url "https://registry.npmjs.org/cspell/-/cspell-8.17.4.tgz"
sha256 "706660433488a9889c2b81e1a10c86a0595b742ccd4815077af749f3aaa70d61"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c"
sha256 cellar: :any_skip_relocation, sonoma: "b3e67f015130e4228d41e2e1b800e9f4a5008a76f10a5417072c62f6ed824220"
sha256 cellar: :any_skip_relocation, ventura: "b3e67f015130e4228d41e2e1b800e9f4a5008a76f10a5417072c62f6ed824220"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c"
end

depends_on "node"

def install
system "npm", "install", *std_npm_args
# Skip linking cspell-esm binary, which is identical to cspell.
bin.install_symlink libexec/"bin/cspell"
end

test do
(testpath/"test.rb").write("misspell_worrd = 1")
output = shell_output("#{bin}/cspell test.rb", 1)
assert_match "test.rb:1:10 - Unknown word (worrd)", output
end
end

0 comments on commit 412e23c

Please sign in to comment.