Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic linting rules #24

Merged
merged 3 commits into from
Nov 11, 2023
Merged

Add basic linting rules #24

merged 3 commits into from
Nov 11, 2023

Conversation

dxbednarczyk
Copy link
Contributor

This is largely opinionated, and the golangci-lint configuration file was taken from another project of mine (based on what I thought was restrictive enough).

One of these commits also fixes some dependency issues after running go mod tidy.

A separate thing that can be added later is a workflow to run golangci-lint after every commit. The makefile I added provides an install step for recommended linters so anyone can run them locally.

ForwardedFor = getenv("X_FORWARDED_FOR", "66.249.66.1")
rulesSet = loadRules()
allowedDomains = strings.Split(os.Getenv("ALLOWED_DOMAINS"), ",")
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@mms-gianni
Copy link
Contributor

I like this idea.

@mms-gianni mms-gianni merged commit fb0ccc9 into everywall:main Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants