69 Commits
Author SHA1 Message Date
Claudio DeSouza dddc1dd6a0 Add presubmit to prevent new StringPiece uses
This change adds a presubmit check to brave, to make sure we don't ended
reintroducing `base::StringPiece` until it gets finally deleted
upstream.
2023-09-22 17:46:21 +03:00
Jay Harris 0f73ab4331 [Leo] Version Bump & Integrate Presubmit (#19187) 2023-07-25 13:01:18 +02:00
zenparsing 2f852e3c6d Replace ledger terminology in Rewards code 2023-07-11 14:47:11 -04:00
bridiver b1c1343cd0 convert brave rust targets to upstream rust targets 2023-06-29 12:10:14 -07: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
Szilard Szaloki 31ca383797 Rewards architectural improvements. 2023-04-11 07:40:54 -05:00
Aleksey Khoroshilov f1f9c20cd3 Use BanRule.excluded_paths filter for CheckNoBannedFunctions check. 2023-03-23 20:38:15 +07:00
Aleksey Khoroshilov 32b1b9fabf Fail on missing presubmit overrides. 2023-03-23 20:27:51 +07:00
Jay HarrisandAleksey Khoroshilov 4a256f79e8 [Prettier] Add Prettier dependency, to format web files (#15932)
* Add prettier

* Integrate prettier with presubmit format checks.

* Use the usual presubmit diff for Prettier to support --files option.

* Disable prettier presubmit check.

---------

Co-authored-by: Aleksey Khoroshilov <akhoroshilov@brave.com>
2023-02-16 10:07:55 -08:00
Aleksey Khoroshilov c220cdc1d7 Rework src/PRESUBMIT.py execution to run --fix in the right order. (#16404)
* Rework src/PRESUBMIT.py execution to run `--fix` in the right order.

* Don't force WebDevStyle issues as errors.

* Apply default_files_to_skip setting to all checks.
2022-12-20 19:45:27 +07:00
Aleksey Khoroshilov e79b5f55cd Apply presubmit config to brave/PRESUBMIT.py checks. 2022-12-16 14:32:20 +07:00
Aleksey Khoroshilov 7c8709db0d Add web dev style guide presubmit checks and --fix support. 2022-12-16 14:32:20 +07:00
Aleksey Khoroshilov 691b20af9e Don't show current year for license header in existing files. 2022-12-05 19:34:34 +07:00
Aleksey Khoroshilov 7bff57f87c Add multiline comment license example to presubmit message. 2022-11-30 21:31:19 +07:00
Aleksey Khoroshilov 78d09a387c Add Brave license header checker. 2022-11-09 19:10:09 +07:00
Aleksey Khoroshilov 2a29fd5073 Update presubmit pylint check to use proper configuration. 2022-10-18 22:06:08 +07:00
Aleksey Khoroshilov 231ee9bc5e Make inline and override helpers usable more widely. 2022-08-17 19:42:50 +07:00
Aleksey Khoroshilov ffd10a5576 Add support for upstream presubmit logic on npm run lint. 2022-06-20 17:30:24 +07:00