google / google/google-java-format
Feature request - make a git-aware google-java-format-diff.py
- Linguagem predominante
- Java
- Estrelas
- 6.2k
- Forks
- 937
- Merge médio
- 6min
- PRs com merge (30d)
- 3
Descrição
google-java-format-diff.py is generic in that it takes any diff and formats it.
This is certainly useful, but it means that every user who also uses git has to write a wrapper to run "git diff" appropriately and pass in that input. This makes automating formatting in a repository a bit more work.
It would be nice if there were a more git-aware variant that took in commits and/or files directly. For example, clang-format has an official git-clang-format hook (https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format) which provides very tight integration with git when running clang-format.
Guia de contribuição
Direção de pesquisa
Comece lendo google-java-format-diff.py e compare sua interface com o exemplo vinculado de git-clang-format. Defina como a variante compatível com git deve aceitar commits e/ou arquivos e invocar a formatação. Considera-se concluído quando os usuários do repositório puderem integrar a formatação ao git sem escrever um wrapper separado para git diff.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- git, java, python
- Domínio
- cli, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100