Skip to content

Commit

Permalink
Move to get-woke org
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlinelfring committed Aug 31, 2020
1 parent 99984b1 commit 93f734e
Show file tree
Hide file tree
Showing 20 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
env:
DOCKERHUB_USERNAME: celfring
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_REPOSITORY: celfring/woke
DOCKERHUB_REPOSITORY: getwoke/woke
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- linux
- windows
- darwin
ldflags: -s -w -X github.com/caitlinelfring/woke/cmd.Version={{.Version}} -X github.com/caitlinelfring/woke/cmd.Commit={{.ShortCommit}} -X github.com/caitlinelfring/woke/cmd.Date={{.Date}}
ldflags: -s -w -X github.com/get-woke/woke/cmd.Version={{.Version}} -X github.com/get-woke/woke/cmd.Commit={{.ShortCommit}} -X github.com/get-woke/woke/cmd.Date={{.Date}}

archives:
- format: tar.gz
Expand Down Expand Up @@ -45,6 +45,6 @@ dockers:
binaries:
- woke
image_templates:
- "celfring/woke:latest"
- "celfring/woke:{{ .Major }}.{{ .Minor }}"
- "celfring/woke:{{ .RawVersion }}"
- "getwoke/woke:latest"
- "getwoke/woke:{{ .Major }}.{{ .Minor }}"
- "getwoke/woke:{{ .RawVersion }}"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build:

run:
docker run --rm -it \
-v `pwd`:/go/src/github.com/caitlinelfring/woke \
-v `pwd`:/go/src/github.com/get-woke/woke \
woke "./*.go ./**/*.go ./**/**/*.go *.yaml"

.PHONY: build run
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

_I stay woke - Erykah Badu_

[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/caitlinelfring/woke?logo=github&sort=semver)](https://github.com/caitlinelfring/woke/releases)
[![Build](https://github.com/caitlinelfring/woke/workflows/Build/badge.svg?branch=main)](https://github.com/caitlinelfring/woke/actions)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/caitlinelfring/woke)](https://pkg.go.dev/github.com/caitlinelfring/woke)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/get-woke/woke?logo=github&sort=semver)](https://github.com/get-woke/woke/releases)
[![Build](https://github.com/get-woke/woke/workflows/Build/badge.svg?branch=main)](https://github.com/get-woke/woke/actions)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/get-woke/woke)](https://pkg.go.dev/github.com/get-woke/woke)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/caitlinelfring/woke)](https://goreportcard.com/report/github.com/caitlinelfring/woke)
[![Go Report Card](https://goreportcard.com/badge/github.com/get-woke/woke)](https://goreportcard.com/report/github.com/get-woke/woke)

`woke` is a text file analysis tool that detects non-inclusive language in your source code.

![woke.gif](https://raw.githubusercontent.com/caitlinelfring/woke/main/img/woke.gif)
![woke.gif](https://raw.githubusercontent.com/get-woke/woke/main/img/woke.gif)

**Table of Contents**

Expand Down Expand Up @@ -60,25 +60,25 @@ is available on your `$PATH` (check with `woke --version`).
Install the go toolchain: <https://golang.org/doc/install>

```bash
go get -u github.com/caitlinelfring/woke
go get -u github.com/get-woke/woke
```

`woke` will be installed to `$GOPATH/bin/woke`.

### Releases

Download the latest binary from [Releases](https://github.com/caitlinelfring/woke/releases/latest)
Download the latest binary from [Releases](https://github.com/get-woke/woke/releases/latest)

### Docker

You can run `woke` within docker. You will need to mount a volume that contains your source code and/or rules.

```bash
## Run with all defaults, within the mounted /src directory
docker run -v $(pwd):/src -w /src celfring/woke
docker run -v $(pwd):/src -w /src getwoke/woke

## Provide rules config
docker run -v $(pwd):/src -w /src celfring/woke \
docker run -v $(pwd):/src -w /src getwoke/woke \
woke -c my-rules.yaml
```

Expand Down Expand Up @@ -132,9 +132,9 @@ $ echo "This has whitelist from stdin" | woke --stdin

### Rules

A set of default rules is provided in [`pkg/rule/default.go`](https://github.com/caitlinelfring/woke/blob/main/pkg/rule/default.go).
A set of default rules is provided in [`pkg/rule/default.go`](https://github.com/get-woke/woke/blob/main/pkg/rule/default.go).

See [example.yaml](https://github.com/caitlinelfring/woke/blob/example.yaml) for an example of adding custom rules.
See [example.yaml](https://github.com/get-woke/woke/blob/example.yaml) for an example of adding custom rules.
You can supply your own rules with `-c path/to/rules.yaml`

The syntax for rules is very basic. You just need a name, a list of terms to match that violate the rule,
Expand Down Expand Up @@ -202,4 +202,4 @@ exit code, but running `woke --exit-1-on-failure`.
## License

This application is licensed under the MIT License, you may obtain a copy of it
[here](https://github.com/caitlinelfring/woke/blob/main/LICENSE).
[here](https://github.com/get-woke/woke/blob/main/LICENSE).
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (
"strings"
"time"

"github.com/caitlinelfring/woke/pkg/config"
"github.com/caitlinelfring/woke/pkg/ignore"
"github.com/caitlinelfring/woke/pkg/parser"
"github.com/caitlinelfring/woke/pkg/result"
"github.com/get-woke/woke/pkg/config"
"github.com/get-woke/woke/pkg/ignore"
"github.com/get-woke/woke/pkg/parser"
"github.com/get-woke/woke/pkg/result"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.14

RUN apt-get update && apt-get install -y inotify-tools

ENV ROOT_PATH /go/src/github.com/caitlinelfring/woke
ENV ROOT_PATH /go/src/github.com/get-woke/woke
WORKDIR $ROOT_PATH
COPY go.mod ./
COPY go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/caitlinelfring/woke
module github.com/get-woke/woke

go 1.14

Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for caitlinelfring/woke
$this: download go binaries for get-woke/woke
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/caitlinelfring/woke/releases
https://github.com/get-woke/woke/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand Down Expand Up @@ -337,7 +337,7 @@ End of functions from https://github.com/client9/shlib
EOF

PROJECT_NAME="woke"
OWNER=caitlinelfring
OWNER=get-woke
REPO="woke"
BINARY=woke
FORMAT=tar.gz
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"os"
"time"

"github.com/caitlinelfring/woke/cmd"
"github.com/get-woke/woke/cmd"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
"io/ioutil"

"github.com/caitlinelfring/woke/pkg/rule"
"github.com/get-woke/woke/pkg/rule"

"gopkg.in/yaml.v2"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/outformat.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package config
import (
"strings"

"github.com/caitlinelfring/woke/pkg/printer"
"github.com/caitlinelfring/woke/pkg/util"
"github.com/get-woke/woke/pkg/printer"
"github.com/get-woke/woke/pkg/util"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/parser/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/caitlinelfring/woke/pkg/ignore"
"github.com/get-woke/woke/pkg/ignore"
"github.com/rs/zerolog/log"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"time"

"github.com/caitlinelfring/woke/pkg/ignore"
"github.com/caitlinelfring/woke/pkg/result"
"github.com/caitlinelfring/woke/pkg/rule"
"github.com/caitlinelfring/woke/pkg/util"
"github.com/get-woke/woke/pkg/ignore"
"github.com/get-woke/woke/pkg/result"
"github.com/get-woke/woke/pkg/rule"
"github.com/get-woke/woke/pkg/util"
"github.com/rs/zerolog/log"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/printer/githubactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package printer
import (
"fmt"

"github.com/caitlinelfring/woke/pkg/result"
"github.com/caitlinelfring/woke/pkg/rule"
"github.com/get-woke/woke/pkg/result"
"github.com/get-woke/woke/pkg/rule"
)

// GitHubActions is a GitHubActions printer meant for use by a GitHub Action annotation
Expand Down
2 changes: 1 addition & 1 deletion pkg/printer/printer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package printer

import "github.com/caitlinelfring/woke/pkg/result"
import "github.com/get-woke/woke/pkg/result"

// Printer is an interface for printing FileResults
type Printer interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/printer/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"go/token"

"github.com/caitlinelfring/woke/pkg/result"
"github.com/get-woke/woke/pkg/result"
)

// Simple is a simple printer meant for a machine to read
Expand Down
2 changes: 1 addition & 1 deletion pkg/printer/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package printer
import (
"fmt"

"github.com/caitlinelfring/woke/pkg/result"
"github.com/fatih/color"
"github.com/get-woke/woke/pkg/result"
)

// Text is a text printer meant for humans to read
Expand Down
2 changes: 1 addition & 1 deletion pkg/result/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"go/token"

"github.com/caitlinelfring/woke/pkg/rule"
"github.com/get-woke/woke/pkg/rule"
)

// Result contains data about the result of a broken rule
Expand Down
2 changes: 1 addition & 1 deletion pkg/result/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package result
import (
"strings"

"github.com/caitlinelfring/woke/pkg/rule"
"github.com/get-woke/woke/pkg/rule"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/rule/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strings"

"github.com/caitlinelfring/woke/pkg/util"
"github.com/get-woke/woke/pkg/util"
)

// Rule is a linter rule
Expand Down

0 comments on commit 93f734e

Please sign in to comment.