Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
pigeon /
node_modules /
coffeelint /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
doc
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
lib
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
node_modules
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
.coffeelintignore
27
B
-rw-r--r--
2016-10-03 01:14
.npmignore
53
B
-rw-r--r--
2016-10-03 01:14
3rd_party_rules.md
2.06
KB
-rw-r--r--
2016-10-03 01:14
Cakefile
2.29
KB
-rw-r--r--
2017-10-02 05:55
LICENSE
1.04
KB
-rw-r--r--
2014-02-18 22:10
README.md
3.39
KB
-rw-r--r--
2017-07-13 11:37
generated_coffeelint.json
2.39
KB
-rw-r--r--
2016-10-03 01:14
package.json
2.21
KB
-rw-r--r--
2022-06-27 18:41
vowsrunner.js
94
B
-rwxr-xr-x
2017-10-02 05:55
Save
Rename
Creating a 3rd party rule ========================= If your rule is overly specific or too restrictive it may not be accepted into the CoffeeLint repo. This doesn't mean you can't have your rule. Setup your repo --------------- My personal preference is to not commit compiled Javascript files to a CoffeeScript repo. 1. `npm init` 2. `npm install --save coffee-script` When it asks about `main` leave it as `index.js` 3. Create an `index.js` it only needs two lines require('coffee-script'); module.exports = require('./your_rule_name.coffee'); 4. `sudo npm link`: Once you run this CoffeeLint will be able to `require` your module 5. Build your rule, make sure the file name matches `index.js`'s `require` [link]: https://npmjs.org/doc/cli/npm-link.html Loading your rule ----------------- It's probably best once you get this worked out, to commit a coffeelint.json to your repo with your rule enabled. Here is an example: { "your_rule_name": { "module": "your-rule-name" } } * `your_rule_name`: This MUST match the name inside your rule. A few of of the built in rules are no_plus_plus, no_tabs, and cyclomatic_complexity * `your-rule-name`: npm's convention is to use dashes. CoffeeLint is going to run `require('your-rule-name')` to find this rule. Publishing your rule -------------------- Once you're ready you can publish it as a normal npm package. Remember to mention in your readme that they will need to `npm install -g your-rule-name`. If it's not global CoffeeLint won't see it. By convention rule authors add the keyword `coffeelintrule` to their npm `package.json` so custom rules can be found easily. Click [here](https://npmjs.org/search?q=coffeelintrule) to list all currently available custom rules on npm. Verify Installation ------------------- This will verify your development install when you used `sudo npm link` or when users run `npm install -g your-rule-name` Verify your installation using: node -p "require('your-rule-name');" You should get output similar to [Function: YourRuleName]