Skip to content

Commit

Permalink
cspell 8.17.4 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Feb 21, 2025
1 parent 34a76a6 commit f270905
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/c/cspell.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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"

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 f270905

Please sign in to comment.