-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
2,157 additions
and
1,841 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## [1.5.0] - 2018-12-26 | ||
### Added | ||
- Add not-rely-on-time to rules documentation [#88](https://github.com/protofire/solhint/pull/88) | ||
- Have --max-warnings better reflect its name [#89](https://github.com/protofire/solhint/pull/89) | ||
- Added disable-previous-line [#91](https://github.com/protofire/solhint/pull/91) | ||
- Snake case now allows for a (single) leading underscore [#93](https://github.com/protofire/solhint/pull/93) | ||
|
||
### Fixed | ||
- Fixed some comment directive tests [#92](https://github.com/protofire/solhint/pull/92) | ||
|
||
## [1.4.1] - 2018-12-10 | ||
### Added | ||
- Allow to specify the path to the config file [#78](https://github.com/protofire/solhint/issues/78) | ||
- Roadmap and changelog [#81](https://github.com/protofire/solhint/issues/81) | ||
|
||
### Changed | ||
- Upgrade grammar [#79](https://github.com/protofire/solhint/pull/79) | ||
|
||
## [1.4.0] - 2018-10-10 | ||
### Added | ||
- Support prettier-solidity [#72](https://github.com/protofire/solhint/pull/72) | ||
|
||
## [1.3.0] - 2018-09-25 | ||
### Added | ||
- Add "Projects that use solhint" to README.md file [#64](https://github.com/protofire/solhint/issues/63) | ||
- Add prettier and airbnb [#59](https://github.com/protofire/solhint/issues/59) | ||
- Add new feature --ignore-path option [#58](https://github.com/protofire/solhint/issues/58) | ||
- Add contribution formatter parameter validation [#54](https://github.com/protofire/solhint/pull/54) | ||
- Add --max-warnings [int] option [#56](https://github.com/protofire/solhint/issues/56) | ||
- Add --quiet option [#55](https://github.com/protofire/solhint/pull/55) | ||
|
||
### Changed | ||
- Move rules sections out from README.md [#65](https://github.com/protofire/solhint/issues/65) | ||
- Complete docs and readme [#61](https://github.com/protofire/solhint/issues/61) | ||
|
||
### Fixed | ||
- Unable to satisfy indentation rules for functions with multiple return values [#49](https://github.com/protofire/solhint/issues/49) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Roadmap | ||
|
||
An overview of what the core Solhint team is looking to work on over the next few months. | ||
|
||
As a caveat - this is a living doc, and will evolve as priorities grow and shift. The Solhint project will always be adapting to new use-cases and evolutions in the blockchain world - this roadmap is more of a "North Star" of what we're looking to work on than a strict timeline. | ||
|
||
Please feel free to fill issues on this repository if you have questions, concerns, or suggestions. | ||
|
||
|
||
## What's next? | ||
|
||
So, what will that new chapter hold? We see a few major themes... | ||
|
||
This is our next releases plan: | ||
|
||
- 1.4.0 [released on Oct 10, 2018] | ||
- Support prettier-solidity [#72] | ||
- 2.0.0 | ||
- Switch from Blacklisting to Rulesets + Whitelisting [#73] | ||
- Plugins support [#70] | ||
- Support prettier-solidity as a plugin | ||
- 2.1.0 | ||
- Separate core library from CLI app [#69] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Contributing to Solhint | ||
======================= | ||
|
||
_Thanks for considering contributing to Solhint!_ | ||
|
||
The following is a set of guidelines for contributions. Feel free to suggest | ||
improvements to this document in a pull request. | ||
|
||
Issues and feature requests | ||
--------------------------- | ||
|
||
If you have any issues to report or features to request, please use the | ||
[issue tracker](https://github.com/protofire/solhint/issues). | ||
|
||
Development | ||
----------- | ||
|
||
### Requirements | ||
|
||
In order to develop Solhint, you'll need: | ||
|
||
- [Git](https://git-scm.com/) | ||
- [Node.js](https://nodejs.org/) | ||
|
||
### Getting Started | ||
|
||
Clone this repository and install npm dependencies: | ||
|
||
$ git clone git@github.com:protofire/solhint.git | ||
$ cd solhint | ||
$ npm install | ||
|
||
### Testing changes without re-installing | ||
|
||
Since `solhint` is a CLI tool, the best way to test new changes immediately | ||
after they are done is to globally link the module. Go to the repository and | ||
run: | ||
|
||
$ npm link | ||
|
||
This will create a symbolic link to `solhint`'s directory. Any changes you make | ||
will be available when you use `solhint` in any terminal. | ||
|
||
### Running tests | ||
|
||
If you make changes to the existing code, please make sure that all tests are | ||
passing. If you contribute with a new feature, please add tests for it. To run the tests: | ||
|
||
$ npm test | ||
|
||
Grammar modifications | ||
--------------------- | ||
|
||
Solhint uses [ANTLR4](http://www.antlr.org/) to generate the Solidity parser. | ||
The grammar description is taken from | ||
[solidity-antlr4](https://github.com/solidityj/solidity-antlr4). If there is | ||
some language feature that Solhint doesn't support, the first step is to check | ||
if the `Solidity.g4` fil is out of sync with the one in that repo. If that's the | ||
case, the steps to update it are: | ||
|
||
1. Copy the `Solidity.g4` file and replace the one in this repo | ||
(`lib/grammar/Solidity.g4`). | ||
2. From the root of the project, execute `scripts/build-grammar.sh`. You will | ||
need to have the Java Runtime Environment (7 or later) installed for this to | ||
work. | ||
|
||
Pull Requests | ||
------------- | ||
|
||
All code changes happen through pull requests. To create one: | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. Make the changes you want to do. | ||
3. Ensure the tests are still passing. Please remember to add tests for new features. | ||
4. Create the pull request. | ||
|
||
|
||
License | ||
------- | ||
|
||
By contributing, you agree that your contributions will be licensed under its MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Roadmap | ||
|
||
An overview of what the core Solhint team is looking to work on over the next few months. | ||
|
||
As a caveat - this is a living doc, and will evolve as priorities grow and shift. The Solhint project will always be adapting to new use-cases and evolutions in the blockchain world - this roadmap is more of a "North Star" of what we're looking to work on than a strict timeline. | ||
|
||
Please feel free to fill issues on this repository if you have questions, concerns, or suggestions. | ||
|
||
|
||
## What's next? | ||
|
||
So, what will that new chapter hold? We see a few major themes... | ||
|
||
This is our next releases plan: | ||
|
||
- 1.4.0 [released on Oct 10, 2018] | ||
- Support prettier-solidity [#72] | ||
- 2.0.0 | ||
- Switch from Blacklisting to Rulesets + Whitelisting [#73] | ||
- Plugins support [#70] | ||
- Support prettier-solidity as a plugin | ||
- 2.1.0 | ||
- Separate core library from CLI app [#69] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class FileNotExistsError extends Error { | ||
constructor(data) { | ||
const { message } = data | ||
super(message) | ||
} | ||
} | ||
|
||
module.exports = { | ||
FileNotExistsError | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.