
golint Docker镜像基于Alpine的轻量级多阶段构建Docker化版本的https://github.com/golang/lint[1]。该镜像每晚针对多个稳定版本构建并推送到Dockerhub。
[1] 官方项目:https://github.com/golang/lint
本镜像提供了一个便捷的方式在Docker环境中运行golint工具,无需在本地系统安装Go环境和golint依赖。适用于持续集成(CI)流程或本地开发环境,确保代码质量检查的一致性和可重复性。
amd64、i386、arm64、arm/v7架构以下Docker镜像标签为滚动发布,每晚构建和更新。
| Docker标签 | Git引用 | golint版本 | 可用架构 |
|---|---|---|---|
latest | master | latest | amd64、i386、arm64、arm/v7 |
以下Docker镜像标签为一次性构建,适用于可重复构建。版本不会更改,需定期更新标签以保持最新。
| Docker标签 | Git引用 | golint版本 | 可用架构 |
|---|---|---|---|
latest-<tag> | tag: <tag> | latest | amd64、i386、arm64、arm/v7 |
其中
<tag>指本仓库的特定Git标签。
Docker容器内的工作目录为**/data/**,应本地挂载到项目根目录。
bashdocker run --rm -v $(pwd):/data cytopia/golint .
上述命令会:
/data/目录以下是其他用于CI的Docker化代码检查工具:
| GitHub | DockerHub | 类型 | 描述 |
|---|---|---|---|
| https://github.com/cytopia/awesome-ci | https://hub.docker.com/r/cytopia/awesome-ci | 基础工具 | 用于git、文件和静态源代码分析的工具 |
| https://github.com/cytopia/docker-file-lint | https://hub.docker.com/r/cytopia/file-lint | 基础工具 | 基础源代码分析 |
| https://github.com/cytopia/docker-linkcheck | https://hub.docker.com/r/cytopia/linkcheck | 基础工具 | 在文件中搜索URL并验证其HTTP状态码 |
| https://github.com/cytopia/docker-ansible | https://hub.docker.com/r/cytopia/ansible | Ansible | 多个版本和风格的Ansible |
| https://github.com/cytopia/docker-ansible-lint | https://hub.docker.com/r/cytopia/ansible-lint | Ansible | Ansible代码检查 |
| https://github.com/cytopia/docker-gofmt | https://hub.docker.com/r/cytopia/gofmt | Go | Go源代码格式化 [1] |
| https://github.com/cytopia/docker-goimports | https://hub.docker.com/r/cytopia/goimports | Go | Go源代码格式化 [1] |
| https://github.com/cytopia/docker-golint | https://hub.docker.com/r/cytopia/golint | Go | Go代码检查 |
| https://github.com/cytopia/docker-eslint | https://hub.docker.com/r/cytopia/eslint | JavaScript | JavaScript代码检查 |
| https://github.com/cytopia/docker-jsonlint | https://hub.docker.com/r/cytopia/jsonlint | JSON | JSON文件检查 [1] |
| https://github.com/cytopia/docker-kubeval | https://hub.docker.com/r/cytopia/kubeval | K8s | Kubernetes文件检查 |
| https://github.com/cytopia/docker-checkmake | https://hub.docker.com/r/cytopia/checkmake | Make | Makefile检查 |
| https://github.com/cytopia/docker-phpcbf | https://hub.docker.com/r/cytopia/phpcbf | PHP | PHP代码美化和修复 |
| https://github.com/cytopia/docker-phpcs | https://hub.docker.com/r/cytopia/phpcs | PHP | PHP代码嗅探器 |
| https://github.com/cytopia/docker-phplint | https://hub.docker.com/r/cytopia/phplint | PHP | PHP代码检查 [1] |
| https://github.com/cytopia/docker-php-cs-fixer | https://hub.docker.com/r/cytopia/php-cs-fixer | PHP | PHP编码标准修复器 |
| https://github.com/cytopia/docker-bandit | https://hub.docker.com/r/cytopia/bandit | Python | PyCQA的安全检查工具 |
| https://github.com/cytopia/docker-black | https://hub.docker.com/r/cytopia/black | Python | 不妥协的Python代码格式化工具 |
| https://github.com/cytopia/docker-mypy | https://hub.docker.com/r/cytopia/mypy | Python | 静态源代码分析 |
| https://github.com/cytopia/docker-pycodestyle | https://hub.docker.com/r/cytopia/pycodestyle | Python | Python风格指南检查器 |
| https://github.com/cytopia/docker-pydocstyle | https://hub.docker.com/r/cytopia/pydocstyle | Python | Python文档风格检查器 |
| https://github.com/cytopia/docker-pylint | https://hub.docker.com/r/cytopia/pylint | Python | Python源代码、错误和质量检查器 |
| https://github.com/cytopia/docker-terraform-docs | https://hub.docker.com/r/cytopia/terraform-docs | Terraform | Terraform文档生成器(支持TF 0.12)[1] |
| https://github.com/cytopia/docker-terragrunt | https://hub.docker.com/r/cytopia/terragrunt | Terraform | Terragrunt和Terraform |
| https://github.com/cytopia/docker-terragrunt-fmt | https://hub.docker.com/r/cytopia/terragrunt-fmt | Terraform | Terragrunt文件的terraform fmt [1] |
| https://github.com/cytopia/docker-yamlfmt | https://hub.docker.com/r/cytopia/yamlfmt | Yaml | Yaml文件格式化 [1] |
| https://github.com/cytopia/docker-yamllint | https://hub.docker.com/r/cytopia/yamllint | Yaml | Yaml文件检查 |
[1] 使用shell包装器添加了原始项目不具备的增强功能。
MIT许可证
版权所有 (c) 2019 https://github.com/cytopia






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务