Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverchang committed Jan 30, 2019
0 parents commit 88570c9
Show file tree
Hide file tree
Showing 1,229 changed files with 175,165 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "src/appengine/private/bower_components"
}
28 changes: 28 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[run]
branch = True

omit =
src/python/fuzzers/ml/rnn/*
src/tests/*
src/third_party/*

source = src


[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
!/bot/build-urls/README
!/bot/builds/README
!/bot/cache/README
!/bot/env.yaml
!/bot/inputs/crash-stacks/README
!/bot/inputs/data-bundles/README
!/bot/inputs/fuzzer-common-data-bundles/README
!/bot/inputs/fuzzer-testcases/README
!/bot/inputs/fuzzer-testcases-disk/README
!/bot/inputs/fuzzers/README
!/bot/inputs/images/README
!/bot/inputs/symbols/README
!/bot/inputs/user-profile-dirs/README
!/bot/logs/README
*.iml
*.pyc
.idea
/.project
/.pydevproject
/ENV
/bot/*
/coverage
/deployment
/local/storage
/paramiko.log
/src/appengine/app.yaml
/src/appengine/cron-service.yaml
/src/appengine/cron.yaml
/src/appengine/index.yaml
/src/appengine/staging.yaml
/src/appengine/config
/src/appengine/local_gcs
/src/appengine/private/bower_components
/src/appengine/protos
/src/appengine/python
/src/appengine/resources/clusterfuzz-source.manifest
/src/appengine/templates
/src/appengine/third_party
/src/go/server/config
/src/go/server/go-cron-service.yaml
/src/local/remote/generated.remmina
/src/protos/ENV
/src/third_party
_test_data
bazel-*
118 changes: 118 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
[MESSAGES CONTROL]

# List of checkers and warnings to enable.
enable=
indexing-exception,
old-raise-syntax,

# List of checkers and warnings to disable.
# TODO: Shrink this list to as small as possible.
disable=
attribute-defined-outside-init,
bad-option-value,
bare-except,
broad-except,
c-extension-no-member,
design,
file-ignored,
fixme,
global-statement,
import-error,
locally-disabled,
misplaced-comparison-constant,
multiple-imports,
no-member,
no-name-in-module,
no-self-use,
relative-import,
similarities,
suppressed-message,
ungrouped-imports,
unsubscriptable-object,
useless-suppression,
wrong-import-order,
wrong-import-position,


[BASIC]

# Regular expression which should only match the name
# of functions or classes which do not require a docstring.
no-docstring-rgx=(__.*__|main)

# Min length in lines of a function that requires a docstring.
docstring-min-length=10

# Regular expression which should only match correct module names. The
# leading underscore is sanctioned for private modules by Google's style
# guide.
#
# There are exceptions to the basic rule (_?[a-z][a-z0-9_]*) to cover
# requirements of Python's module system and of the presubmit framework.
module-rgx=^(_?[a-z][a-z0-9_]*)|__init__|PRESUBMIT|PRESUBMIT_unittest$

# Regular expression which should only match correct module level names.
const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$

# Regular expression which should only match correct class attribute.
class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$

# Regular expression which should only match correct class names.
class-rgx=^_?[A-Z][a-zA-Z0-9]*$

# Regular expression which should only match correct function names.
# 'camel_case' and 'snake_case' group names are used for consistency of naming
# styles across functions and methods.
function-rgx=^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$

# Regular expression which should only match correct method names.
# 'camel_case' and 'snake_case' group names are used for consistency of naming
# styles across functions and methods. 'exempt' indicates a name which is
# consistent with all naming styles.
method-rgx=(?x)
^(?:(?P<exempt>_[a-z0-9_]+__|runTest|setUp|tearDown|setUpTestCase
|tearDownTestCase|setupSelf|tearDownClass|setUpClass
|(test|assert)_*[A-Z0-9][a-zA-Z0-9_]*|next)
|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9_]*)
|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$

# Regular expression which should only match correct instance attribute names.
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$

# Regular expression which should only match correct argument names.
argument-rgx=^[a-z][a-z0-9_]*$

# Regular expression which should only match correct variable names.
variable-rgx=^[a-z][a-z0-9_]*$

# Regular expression which should only match correct list comprehension /
# generator expression variable names.
inlinevar-rgx=^[a-z][a-z0-9_]*$

# Good variable names which should always be accepted, separated by a comma.
good-names=main,_

# Bad variable names which should always be refused, separated by a comma.
bad-names=

# List of builtins function names that should not be used, separated by a comma.
bad-functions=input,apply,reduce


[FORMAT]

# Maximum number of characters on a single line.
max-line-length=80

# Maximum number of lines in a module
max-module-lines=99999

# String used as indentation unit. We differ from PEP8's normal 4 spaces.
indent-string=' '

# Make sure : in dicts and trailing commas are checked for whitespace.
no-space-check=


[TYPECHECK]

5 changes: 5 additions & 0 deletions .style.yapf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[style]
based_on_style = chromium
column_limit = 80
indent_width = 2
split_before_named_assigns = true
32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.

## Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.

## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Community Guidelines

This project follows
[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).

## Contributing code

Please follow the instructions in *Contributing code* section in the ClusterFuzz documentation.
Loading

0 comments on commit 88570c9

Please sign in to comment.