1 | # apexlint
|
2 |
|
3 | [![npm version](https://badge.fury.io/js/apexlint.svg)](https://badge.fury.io/js/apexlint) [![travis-ci](https://travis-ci.org/renatoliveira/apexlint.svg?branch=master)](https://travis-ci.org/renatoliveira/apexlint)
|
4 |
|
5 | An Apex linter written in TypeScript (work in progress)
|
6 |
|
7 | ## About this repository
|
8 |
|
9 | As the title says, this is a work in progress linter for the Apex language.
|
10 |
|
11 | I'm building this to assist me with writing better code for the Salesforce ☁ platform. Think about simple stuff like line length, method names, and some styling. I do plan, in the long run, if everything I mentioned before works, to make this work for checking types and references (even though those are caught at compile-time by the platform, for some of us it would be nice to have those errors handled before sending the files to the platform's servers).
|
12 |
|
13 | Other reasons to create this thing is to learn how to write a linter, because there are no How To's online (at least not as of 4 Mar 2018).
|
14 |
|
15 | Check the project's [issue board](https://github.com/renatoliveira/apexlint/issues) board to see what's on the roadmap.
|
16 |
|
17 | ## Installation
|
18 |
|
19 | This tool can be installed with npm or yarn, and you should link it for it to be available globally.
|
20 |
|
21 | Like this on npm:
|
22 |
|
23 | ```npm install apexlint -g```
|
24 |
|
25 | Or this with yarn:
|
26 |
|
27 | ```yarn global add apexlint```
|
28 |
|
29 | ## Uninstall
|
30 |
|
31 | Using npm, you can uninstall it by issuing the same install command, but replacing `install` with `uninstall`:
|
32 |
|
33 | ```npm uninstall apexlint -g```
|
34 |
|
35 | or, with yarn:
|
36 |
|
37 | ```yarn global remove apexlint```
|
38 |
|
39 | ## License
|
40 |
|
41 | Copyright 2018 Renato Oliveira
|
42 |
|
43 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
44 |
|
45 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
46 |
|
47 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
48 |
|
\ | No newline at end of file |