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
CoffeeLint ========== CoffeeLint is a style checker that helps keep CoffeeScript code clean and consistent. For guides on installing, using and configuring CoffeeLint, head over [here](http://www.coffeelint.org). To suggest a feature, report a bug, or general discussion, head over [here](http://github.com/clutchski/coffeelint/issues/). ## Team Current: - [Shuan Wang](https://github.com/swang) Past: - [Asa Ayers](https://github.com/AsaAyers) - [You Don't Need CoffeeScript](https://gist.github.com/AsaAyers/d09e4de118b8d6b5e2d8fa3e38e496e0) - [Matt Perpick](https://github.com/clutchski) ## Contributing * New rules should be set to a `warn` level. Developers will expect new changes to NOT break their existing workflow, so unless your change is extremely usefull, default to `warn`. Expect discussion if you choose to use `error`. * Look at existing rules and test structures when deciding how to name your rule. `no_foo.coffee` is used for many tests designed to catch specific errors, whereas `foo.coffee` is used for tests that are designed to enforce formatting and syntax. ### Steps 1. Fork the repo locally. 2. Run `npm install` to get dependencies. 3. Create your rule in a single file as `src/rules/your_rule_here.coffee`, using the existing rules as a guide. You may examine the AST and tokens using [http://asaayers.github.io/clfiddle/](http://asaayers.github.io/clfiddle/). 4. Add your test file `my_test.coffee` to the `test` directory. 5. Register your rule in `src/coffeelint.coffee`. 6. Run your test using `npm run testrule test/your_test_here.coffee`. 7. Run the whole tests suite using `npm test`. 8. Check that your rule's documentation is generated properly (see _Updating documentation when adding a new rule_ below). 9. Squash all commits into a single commit when done. 10. Submit a pull request. [](http://travis-ci.org/clutchski/coffeelint) ### Updating documentation when adding a new rule When adding a new rule, its documentation is specified by setting a `description` property within its `rule` property: ```coffeescript module.exports = class NoComment rule: name: 'no_comment' level: 'ignore' message: 'No comment' description: ''' Disallows any comment in the code ''' tokens: ['#', '###'] lintToken : (token, tokenApi) -> return {context: "Found '#{token[0]}'"} ``` The description property is a string that can embed HTML code: ```html description: ''' Disallows any comment in the code. This code would not pass: <pre> <code>### Some code with comments foo = -> # some other comments bar() </code> </pre> ''' ``` [Coffeelint's website](http://www.coffeelint.org/) generates each rule's documentation based on this `description` property. When adding a new rule, it is suggested that you check that the documentation for your new rule is generated correctly. In order to do that, you should follow these steps: * Checkout the branch that contains the changes adding the new rule. * Run `npm run compile`. * Checkout the `gh-pages` branch: `git checkout origin/gh-pages`. * Run `cp lib/coffeelint.js js/coffeelint.js`. * Regenerate the HTML documentation: `rake updatehtml`. Note that you will probably need to install rake. * Open the `index.html` file with your favorite browser and make sure that your rule's documentation is generated properly.