Commit Graph

20 Commits

Author SHA1 Message Date
Ivan Krysak 5f6003346c Increase licence header search range 2023-07-03 15:23:10 +00:00
Ivan Krysak 0e061aedc4 Make clang-format-style-file a YAML file 2023-07-02 11:06:55 +00:00
Alessandro Di Federico 5273aaa15c check-conventions: handle one line commits 2023-06-30 15:05:27 +02:00
Giacomo Vercesi 52d20ffc36 rcc: add commit check
Add the command-line flag `--check-commit` to `revng-check-conventions`,
this will introduce additional checks related to commits message
conformity.
2023-05-11 10:05:32 +02:00
Alessandro Di Federico 0434249297 rcc: introduce NOLINTNEXTLINE 2023-04-28 14:34:50 +02:00
Giacomo Vercesi cf0921ab31 revng-check-conventions: allow ignoring InitRevng
Add an additional `rcc-ignore` rule to ignore the absence of `InitRevng`
in a `Main.cpp` file
2023-04-20 14:43:11 +02:00
Giacomo Vercesi a06df16b73 rcc: handle empty files gracefully
Fix two corner cases in `revng-check-conventions` where it would error
out when processing an empty file
2023-04-20 14:43:10 +02:00
Giacomo Vercesi 8e05ae5ead rcc: fix report output with multiple rules
The rule output logic was wrongly coded to do `"\n".join` where
appending a newline to each line was the correct behavior.
Also remove a leftover typo in `rcc-config.yml`.
2023-03-13 22:53:44 +01:00
Giacomo Vercesi 1e1d3b4920 rcc: fix off-by-one in line reporting 2023-02-07 16:54:35 +01:00
Alessandro Di Federico 70e4f24d9f revng-check-conventions: fix mypy if no normal_files 2023-01-21 16:46:35 +01:00
Alessandro Di Federico f5fb269468 check-conventions: use first byte as diff opcode 2022-11-28 09:21:42 +01:00
Giacomo Vercesi bf4122ed0a Introduce v2 of revng-check-conventions 2022-09-29 15:21:59 +02:00
Alessandro Di Federico f6d5cd24dd Give pretty names to temporary files 2022-09-26 18:09:01 +02:00
Ivan Krysak 60f6abf0eb Ease conventions to allow lines to start with -> 2022-09-26 10:33:43 +02:00
Giacomo Vercesi c084620ef2 Switch from yarn to npm 2022-09-02 03:49:56 +02:00
Giacomo Vercesi a741e39f76 revng-check-conventions: introduce prettier
Adds the formatting tool prettier to allow formatting JS, TS, JSON,
YAML and HTML files.
2022-06-28 15:29:09 +02:00
Giacomo Vercesi 7a9617547a revng-check-conventions: if no changes, do nothing 2022-06-28 15:28:48 +02:00
Alessandro Di Federico ee95dbba26 check-conventions: update for share/revng 2022-06-21 18:38:21 +02:00
Alessandro Di Federico 0e2b9a0629 check-conventions: don't search in SCRIPT_PATH 2022-06-21 18:36:08 +02:00
Alessandro Di Federico f4684e244d Switch to new testsuite 2022-06-20 19:04:18 +02:00