Add plugin support for Bazel

未关闭
#76 14 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
java, python, shell
领域
build-system

调研方向

首先查看 Spotless 现有的插件结构和 spotless-lib 入口点,然后比较 Bazel 的 Skylark 扩展、shell 命令和二进制集成选项。完成标准是提供有文档说明的 Bazel 集成,使其能够调用 spotless-lib 或 Java wrapper,但该 issue 没有指出应从哪些文件或测试开始。

由索引模型根据 Issue 内容生成。

描述

enhancement

Bazel is something which has interested me for a while now, so writing a Spotless plugin for it may prove to be a good way to get my feet wet with it. However I'm limited for time with my studies and I suspect I won't be able to work on something this big until late May 2017 or later.

Here's what I currently understand about Bazel with regards to plugin-writing:

  1. Bazel uses a subset of Python called Skylark for writing extensions (Bazel's terminology for plugins AFAICT). So it may very well be that Spotless would need to be ported to Skylark first, which isn't ideal.
  2. There seem to be ways of integrating shell scripts and binaries as extensions into Bazel. I'm hoping that we can use one of these options or some another option to call spotless-lib (or a Java binary wrapper around it) without porting it to Skylark.
主要语言
Java
星标
5.7k
派生
560
平均合并
1 天 13 小时
30 天内合并 PR
43

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

diffplug/spotless 的其他 Issue

查看 diffplug/spotless 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。