File: README.chromium

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (38 lines) | stat: -rw-r--r-- 2,004 bytes parent folder | download | duplicates (3)
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
38
Name: google-java-format
URL: https://github.com/google/google-java-format
Version: 1.17.0
Revision: d6b1bcc610a1aadfcbddaa22b9d3fbe1b4c429d7
Update Mechanism: Manual
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