From 46e33c52ab4cd560b53bfd6529fd83e54ed11424 Mon Sep 17 00:00:00 2001 From: Christian Joergensen Date: Sun, 12 Jul 2020 23:44:33 +0200 Subject: [PATCH 1/3] Adding linter. --- .github/workflows/linter.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..4d3fafd --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,45 @@ +name: Lint Code Base + +# +# Documentation: +# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [master] + # Remove the line above to run when pushing to master + pull_request: + branches: [master] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v2 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: docker://github/super-linter:v3 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: master From 6fde3ceec6892e45660c3a8052651e3152d73286 Mon Sep 17 00:00:00 2001 From: Christian Joergensen Date: Sun, 12 Jul 2020 23:49:58 +0200 Subject: [PATCH 2/3] Testing --- smtpd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtpd.go b/smtpd.go index 0dbf38c..0e96d03 100644 --- a/smtpd.go +++ b/smtpd.go @@ -1,4 +1,4 @@ -// Package smtpd implements an SMTP server with support for STARTTLS, authentication (PLAIN/LOGIN), XCLIENT and optional restrictions on the different stages of the SMTP session. +// foo Package smtpd implements an SMTP server with support for STARTTLS, authentication (PLAIN/LOGIN), XCLIENT and optional restrictions on the different stages of the SMTP session. package smtpd import ( From 15c75ccffdfe8da69d0ed52a526005b67d13517f Mon Sep 17 00:00:00 2001 From: Christian Joergensen Date: Sun, 12 Jul 2020 23:57:09 +0200 Subject: [PATCH 3/3] Testing --- .github/workflows/linter.yml | 2 +- smtpd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 4d3fafd..879af37 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -41,5 +41,5 @@ jobs: - name: Lint Code Base uses: docker://github/super-linter:v3 env: - VALIDATE_ALL_CODEBASE: false + VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: master diff --git a/smtpd.go b/smtpd.go index 0e96d03..0dbf38c 100644 --- a/smtpd.go +++ b/smtpd.go @@ -1,4 +1,4 @@ -// foo Package smtpd implements an SMTP server with support for STARTTLS, authentication (PLAIN/LOGIN), XCLIENT and optional restrictions on the different stages of the SMTP session. +// Package smtpd implements an SMTP server with support for STARTTLS, authentication (PLAIN/LOGIN), XCLIENT and optional restrictions on the different stages of the SMTP session. package smtpd import (