File: README.chromium

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (37 lines) | stat: -rw-r--r-- 1,979 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Name: google-java-format
URL: https://github.com/google/google-java-format
Version: 1.17.0
Revision: d6b1bcc610a1aadfcbddaa22b9d3fbe1b4c429d7
License: NCSA, Apache-2.0
License File: LICENSE
Security Critical: no
Shipped: no

Description:
google-java-format is a program that reformats Java source code to comply with
Google Java Style (https://google.github.io/styleguide/javaguide.html).

Local Modifications:
- Customized import order to match Chromium style guide.
- Tell it treat our @Nullable as TYPE_USE
To see changes: diff -ur originals local_modifications

Update instructions:
- Find latest version available via https://ci.chromium.org/ui/p/chromium/builders/ci/3pp-linux-amd64-packager
- Update DEPS and the version in this README.chromium.
- Run gclient sync and verify locally that the formatter works:
  1) Modify a Java file and including it in the patch
  2) Run "git cl format"
  3) Revert the Java file change

To update local modifications:
1) Create patch file:
  diff -ur originals local_modifications > chromium.patch
2) Update source files:
  curl -o originals/java/com/google/googlejavaformat/java/ImportOrderer.java 'https://raw.githubusercontent.com/google/google-java-format/master/core/src/main/java/com/google/googlejavaformat/java/ImportOrderer.java'
  curl -o originals/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java 'https://raw.githubusercontent.com/google/google-java-format/master/core/src/main/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java'
  cp originals/java/com/google/googlejavaformat/java/ImportOrderer.java local_modifications/java/com/google/googlejavaformat/java/ImportOrderer.java
  cp originals/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java local_modifications/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java
  (cd local_modifications && patch -p1 < ../chromium.patch && rm ../chromium.patch)
3) Rebuild chromium-overrides.jar:
  ./recreate_chromium_overrides_jar.sh