
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
coffeelint-newline-after-function
Advanced tools
Validate a newline policy after function definitiions
Validate a newline policy after every function definition
This CoffeeLint plugin verifies whether or not your function definitions are followed by a newline. You can customise the number of newlines.
[sudo] npm install -g coffeelint-newline-after-function
Note: Right now a Coffeelint plugin cannot be installed as a project dependency and must be installed globally. Perhaps this will be improved in a future version of Coffeelint. If you would like to track progress on this enhancement head over here.
Insert the below configuration into coffeelint.json that you use for linting your scripts:
"newline_after_function": {
"module": "coffeelint-newline-after-function"
"value": 1,
"level": "error",
}
This code will lint without errors:
class TestClass
foo : ->
@bar()
bar : =>
console.log("foo bar")
But this will fail:
class TestClass
foo : ->
console.log("Oh no! I have linting errors.")
The only configuration option specific to this plugin is the value property. Change this to the number of newlines that you like to be inforced.
By default, Coffeelint will report errors if this rule is not satisfied. You may want to relax this by setting the level to warn in your configuration.
FAQs
Validate a newline policy after function definitiions
The npm package coffeelint-newline-after-function receives a total of 654 weekly downloads. As such, coffeelint-newline-after-function popularity was classified as not popular.
We found that coffeelint-newline-after-function demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.