Skip to content

Commit

Permalink
(#5) Lint license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
llorllale committed Feb 19, 2019
1 parent 8761324 commit e42f8e6
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .dependency_license
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# weasel config

\.gitignore, Apache
\.dependency_license, Apache
README\.md, Docs

# Remove false positives.
go\.mod, Ignore
go\.sum, Ignore
\.golangci\.yml, Ignore
\.goreleaser\.yml, Ignore
\.pdd, Ignore
\.travis\.yml, Ignore
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
install:
- gem install pdd
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.14.0
- GO111MODULE=off go get github.com/comcast/weasel
jobs:
include:
- if: (type = pull_request) OR (type = push AND branch = master)
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ lint:
pdd:
pdd --file=puzzles.xml

checks: build lint pdd test coverage
license:
${GOPATH}/bin/weasel

checks: build lint pdd license test coverage

release:
./release.sh
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ To run `make checks` you will need:
* Ruby 2.x (for `pdd`)
* [pdd](https://github.com/yegor256/pdd) (a ruby gem - `gem install pdd`)
* [golangci-lint](https://github.com/golangci/golangci-lint) v1.14.0 (expected to be in the `./bin` folder)
* [weasel](https://github.com/comcast/weasel)(`go get github.com/comcast/weasel`)

14 changes: 14 additions & 0 deletions cmd/go-gitlint/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 George Aristy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package main

import (
Expand Down
14 changes: 14 additions & 0 deletions internal/commits/commits.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 George Aristy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package commits

import (
Expand Down
14 changes: 14 additions & 0 deletions internal/commits/commits_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 George Aristy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package commits

import (
Expand Down
14 changes: 14 additions & 0 deletions internal/repo/repo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 George Aristy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package repo

import (
Expand Down
14 changes: 14 additions & 0 deletions internal/repo/repo_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 George Aristy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package repo

import (
Expand Down

0 comments on commit e42f8e6

Please sign in to comment.