-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from chkp-eyalit/code-cleanup
Major refactor - v2.0.0
- Loading branch information
Showing
93 changed files
with
3,331 additions
and
2,735 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
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,43 @@ | ||
How to contribute | ||
================= | ||
First of all, thank you for choosing to contribute to our project. This short guide will describe the required coding conventions, as well as the built-in tests that we use in our project. Following these guidelines will help us merge your pull request into our code base in a fast as smooth manner. | ||
|
||
Submitting changes | ||
------------------ | ||
Please send us a GitHub Pull Request with a clear list of what you've done. Make sure to include a clear log message for your commits, describing the modifications / additions to the code base, and their implications. | ||
|
||
Reporting a bug | ||
--------------- | ||
In order to help us close the bug as quickly as possible, please follow these steps: | ||
1. Make sure there isn't an open issue that already addresses this bug | ||
2. If there isn't, open a new issue and attach as many informative details as you can: | ||
* Architecture & compilation flags in which the bug occurs | ||
* Trace + logs, describing the bug / exception | ||
* As many details as you can in order to help us reproduce and fix this issue | ||
3. If you already have a fix, please submit it as a pull request, and include the bug details in it's description | ||
|
||
Coding Conventions | ||
------------------ | ||
Start reading our code and we believe you'll get the hang of it. | ||
The important notes are: | ||
* Every function should be documented in a manner that is consistent with the current documentation standard | ||
* Each indentation level should be 4 spaces in width (spaces, not tabs) | ||
* We believe that comments improve the readability, make sure that your code is documented enough to be understood by other developers | ||
|
||
Testing | ||
------- | ||
**Scout** uses the following tools to enforce coding conventions and to help eliminate common python bugs: | ||
* [pydocstyle](http://www.pydocstyle.org/en/2.1.1/usage.html) | ||
* [flake8](https://pypi.org/project/flake8/) | ||
|
||
Testing can be done from the project's home directory: | ||
1. Testing for **pydocstyle**: | ||
```Scout> python tests.py``` | ||
2. Testing for **flake8**: | ||
```Scout> flake8 src``` | ||
|
||
One last note | ||
------------- | ||
We believe that the only way that Open Source tools will help the infosec community in the long term, is to maintain these tools and to make sure they are developed according to the community standards. Each contribution brings as one step further to this goal. | ||
|
||
Thanks :) |
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,5 @@ | ||
Used compilers: | ||
=============== | ||
1. GCC compilation to 32 bits on 64 bits linux machines ==> sudo apt-get install gcc-multilib libc6-dev-i386 | ||
2. ARM cross compiler toolchain for Linux ==> sudo apt-get install gcc-arm-none-eabi | ||
3. MIPS cross compiler toolchain for Linux ==> sudo apt-get install gcc-mips-linux-gnu |
This file was deleted.
Oops, something went wrong.
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
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.