diff --git a/.dir-locals.el b/.dir-locals.el deleted file mode 100644 index a44395f8..00000000 --- a/.dir-locals.el +++ /dev/null @@ -1,4 +0,0 @@ -((haskell-mode . ((haskell-indent-spaces . 4) - (haskell-process-use-ghci . t))) - (hamlet-mode . ((hamlet/basic-offset . 4) - (haskell-process-use-ghci . t)))) diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 5374401f..00000000 --- a/.dockerignore +++ /dev/null @@ -1,15 +0,0 @@ -*.cabal -*.md -.circleci/ -.dockerignore -.env* -.git -.stack-work -Dockerfile -Makefile -config/client_session_key.aes -fixtures -tags -test -tools -yesod-devel diff --git a/.env.example b/.env.example deleted file mode 100644 index 34859b89..00000000 --- a/.env.example +++ /dev/null @@ -1,45 +0,0 @@ -# shellcheck disable=SC2034 -APPROOT=https://restyled.ngrok.io - -# Use this if you need to skip ngrok. End-to-end processing and OAuth login will -# not function. -#APPROOT=http://localhost:3000 - -REDIS_URL=rediss://localhost:6379 - -# Develoment GitHub App secrets. Required for end-to-end processing. -GITHUB_APP_ID=SSM_github_app_id -GITHUB_APP_KEY=" -SSM_github_app_key -" - -# Development GitHub OAuth secrets and Admin declaration. Required to log in, -# view private repo jobs, and/or access /admin -ADMIN_EMAILS= -GITHUB_OAUTH_CLIENT_ID=SSM_github_oauth_client_id -GITHUB_OAUTH_CLIENT_SECRET=SSM_github_oauth_client_secret - -# A personal token, with no permissions. Used to make requests for public -# information in the GitHub API without hitting anonymous-user rate limits. -GITHUB_RATE_LIMIT_TOKEN=SSM_github_rate_limit_token - -# GitLab OAuth secrets. Required to try experimental GitLab support. -GITLAB_OAUTH_CLIENT_ID= -GITLAB_OAUTH_CLIENT_SECRET= - -# Secrets for GitHub for Students OAUTH -GITHUB_STUDENTS_OAUTH_CLIENT_ID=SSM_github_students_oauth_client_id -GITHUB_STUDENTS_OAUTH_CLIENT_SECRET=SSM_github_students_oauth_client_secret - -# Optional. To maintain persistent sessions, copy the generated value from the -# logs the first time you run the app -#SESSION_KEY= - -# Optional. Run a publically-accessible image, instead of locally-built. -#RESTYLER_IMAGE=quay.io/restyled-io/restyler:b390 - -LOG_LEVEL=DEBUG - -# Used by local restyled/agent in docker-compose -RESTYLED_HOST=https://restyled.ngrok.io -RESTYLED_TOKEN=xxx # TODO: create in local instance diff --git a/.env.test b/.env.test deleted file mode 100644 index d6fe7cbb..00000000 --- a/.env.test +++ /dev/null @@ -1,11 +0,0 @@ -ADMIN_EMAILS=admin1@restyled.io,admin2@restyled.io -AUTH_DUMMY_LOGIN=true -DATABASE_URL=postgres://postgres:password@localhost:5432/restyled_test -STATEMENT_TIMEOUT=5000 -GITHUB_APP_ID=1234 -GITHUB_APP_KEY=non-empty -GITHUB_RATE_LIMIT_TOKEN=non-empty -LOG_LEVEL=ERROR -#LOG_LEVEL=DEBUG -REDIS_URL=rediss://localhost:6379/15 -SESSION_KEY=OdGAXaFkwPLt20jx+8PQpcDWS574prRyYHITBQ6jJCYuWqpOGS7WAYWiZAglCNCKjD+q8qFOYhQguSCGLMnqBBwZKZvggZrJNZpzJpfVD5a8gMf04yhJAN+2Zxs+h4Z/ diff --git a/.gitignore b/.gitignore deleted file mode 100644 index c5539871..00000000 --- a/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -.env* -!.env.example -!.env.test -.stack-work/ -static/tmp/ -static/combined/ -config/client_session_key.aes diff --git a/.hlint.yaml b/.hlint.yaml deleted file mode 100644 index c6993dc1..00000000 --- a/.hlint.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# Gets confused by Database.Esqueleto.(^.) vs Control.Lens.(^.) -- ignore: {name: Redundant ^.} - -# Too aggressive -- ignore: {name: Use &&} -- ignore: {name: Use ||} -- ignore: {name: Functor law} diff --git a/.restyled.yaml b/.restyled.yaml deleted file mode 100644 index 080b9e7d..00000000 --- a/.restyled.yaml +++ /dev/null @@ -1,26 +0,0 @@ -restylers_version: dev -restylers: - - fourmolu - - hlint: - include: - - "**/*.hs" - - "!src/Restyled/Settings.hs" # CPP - - "!src/Restyled/Handlers/Revision.hs" # CPP - - stylish-haskell: - enabled: false - - prettier: - # Explicitly set parser so it works on .julius - arguments: - - --parser - - babel - include: - - "**/*.js" - - "**/*.julius" - - shellharden: - enabled: false - - whitespace: - include: - - "**/*" - - "!**/*.hamlet" - - "!seeds/output/**/*" - - "*"