16 Commits

Author SHA1 Message Date
Sean DuBois d9ba0533f5 Fix Codacy warnings
Run standardjs across all js files, fix all other issues by hand
2019-02-05 23:18:47 -08:00
Sean DuBois 696b7ff050 Remove build-examples from CI
This was useful when we had lots of things in the internal folder.
Now that we moved everything to their own repos this isn't an issue,
we also are sure that things build because of golang-ci.

It might be useful to grep for `github.com/pions/webrtc/internal` but
for now lets just watch in the PRs
2019-01-13 12:40:36 -08:00
Sean DuBois 871557787d Update tooling to support modules
* Disable Go Modules when building examples out of tree
* Run golangci-lint against examples also
2019-01-13 12:40:36 -08:00
Max Hawkins 2bb876a40d Run lint scripts in git hooks
You can install the git hooks by running ./.github/install-hooks.sh.
Afterward the linters will be run before every commit and push so
you can catch violations before the CI does.
2018-12-04 17:13:22 -08:00
Max Hawkins 07b4f0a87a Remove 'Relates to #' check from linter
This will encourage contributions by removing a check that has
caused problems for first-time contributors in the past.
2018-12-04 17:13:22 -08:00
Sean DuBois 92487d5659 Update build-examples.sh to support Modules
Relates to #244
2018-12-03 23:12:23 -08:00
Sean DuBois 8d24eaa9e0 Allow panics in test files
The lint-disallowed-functions-in-library.sh lint is
stopping people from  using helpful functions in tests, raise
the restriction in files that match _test.go

Resolves #127
2018-09-12 14:37:13 -07:00
Sean DuBois 8f1e32abf8 Remove panics and fix lint
Don't allow panics in library code, pion-WebRTC should never
cause a user's application to exit

Resolves #125
2018-09-12 00:07:27 -07:00
Sean DuBois 95ab1c94a4 Add commit message linting
Implement commit message linting that asserts the following rules
* Separate subject from body with a blank line
* Limit the subject line to 50 characters
* Capitalize the subject line
* Do not end the subject line with a period
* Wrap the body at 72 characters
* Must include 'Relates to #' or 'Resolves #' on its own line

Resolves #122
2018-09-11 12:22:31 -05:00
Sean DuBois bae8deefdc Add script to CI to ensure all examples can be built out of tree 2018-08-18 01:33:40 -07:00
Sean DuBois 3e67d71290 Update panic lint script with more functions 2018-08-11 13:56:28 -07:00
Sean DuBois 554e08aeb5 Add lint to disallow panic and os.Exit in library code 2018-08-11 13:56:28 -07:00
Sean DuBois 695b7d4ab2 Unshallow the repo, otherwise contributor check is useless 2018-07-22 18:56:59 -07:00
Sean DuBois 4335e7208b Call assert-contributors.sh with bash directly 2018-07-22 18:48:36 -07:00
Sean DuBois d34d77216b Add simple bash script to assert contributors are credited 2018-07-22 18:18:21 -07:00
Sean DuBois da2628a74b Add mascot 2018-06-19 23:30:32 -07:00