6 Commits
Author SHA1 Message Date
AlexeyBarabash ff83351b09 Changed presubmit rules severity to error for more rules (p3) (#26924)
Changed presubmit rules severity to error for:
- AvoidStarImport;
- ModifierOrder;
- RedundantImport;
- PackageName;
- SimplifyBooleanExpression;
- SimplifyBooleanReturn;
- TypeName;
- ConstantName.
2025-03-25 16:57:47 +02:00
AlexeyBarabash ba0c0ee2ea Changed ParameterName presubmit rule severity to error (#26794)
Fixes brave/brave-browser#42583
2024-12-06 20:09:16 +02:00
AlexeyBarabash 716ec90292 Changed MethodNameCheck presubmit rule severity to error (#26750)
Changed MethodNameCheck presubmit rule to error severity
2024-11-26 16:35:42 +02:00
mkarolin aa89809c48 //third_party/checkstyle 8.15 -> 10.12.1
Chromium change:

https://chromium.googlesource.com/chromium/src/+/39326acff8e5f1

commit 39326acff8e5f1694d053d659e35f80f7e0228f7
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Wed Jul 5 14:22:49 2023 +0000

    Roll //third_party/checkstyle 8.15 -> 10.12.1

    This makes checkstyle understand newer Java syntax.

    Bug: 1462201
2023-09-06 12:38:50 +01:00
AlexeyBarabash 16169dfe09 Make upstream's remove_unused_imports.py to be usable at Brave repo (#18903)
This PR introduces remove_unused_imports.sh script which wraps the same
upstream's tool and makes it usable at Brave repo.

Fixes brave/brave-browser#31045
2023-06-16 12:05:56 +03:00
AlexeyBarabash 6523c3bace Enable CheckJavaStyle presubmit check (#18761)
* Enable CheckJavaStyle presubmit check

For now severity for all checks except RedundantImport/UnusedImports
is changed from error to warning with brave-style-5.0.xml.

Once all Java style errors will be fixed, check should be switched
back to upstream's original check.

Fixes brave/brave-browser#30823

* Remove all unused/redundant imports from java files
2023-06-07 20:44:28 +03:00