summaryrefslogtreecommitdiff
path: root/ci/style.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: Enforce order of any `s_*!` macro callFlorian Bartels2022-10-281-0/+6
| | | | | | | Before this change, only the order of `s!` was checked. After, it also checks `s_no_extra_traits!` and `s_paren!`. Only the order is checked, not the number of calls. This is required because multiple calls have to be allowed.
* style: Format errors so that editors can jump to file/lineJosh Triplett2022-07-111-1/+1
| | | | | | | | With this change, it's now possible to do: ``` ./style src > e vim -q e ```
* Format style checkerYuki Okushi2022-06-121-17/+24
| | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Don't check typedefs in impls in style checkerYuki Okushi2022-06-121-26/+8
| | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Relax the line length limit to 100Yuki Okushi2021-04-061-3/+3
|
* Allow long comments containing a linkYuki Okushi2021-04-061-1/+1
|
* Only run the cfg check for single linesYuki Okushi2021-04-061-3/+2
|
* Update style.rs for new Rustfmt styleAmanieu d'Antras2021-02-011-3/+5
|
* ci/style.rs: Catch derives of Copy and CloneJosh Triplett2020-08-191-0/+3
| | | | Let's prevent this from happening again.
* Do not require using extern instead of extern Cgnzlbg2019-09-121-4/+0
|
* replace deprecated string functions in style scriptAdam C. Foltzer2019-06-271-2/+2
|
* Touch up style of wasi.rsAlex Crichton2019-03-271-0/+3
|
* Add SGX C types.gnzlbg2018-11-201-0/+2
|
* style: allow target_arch #[cfg()] statementsJonathan A. Kollasch2018-10-301-1/+2
|
* Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibcMike Hommey2018-04-111-1/+3
| | | | | | | | | | | | | | | | | | `pthread_mutex_t` varies across architectures, in several ways: - endianness alters the ordering of bytes, since the contents of the struct are larger than 8-bit. - its length varies. - the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`, `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies between 32-bit and 64-bit: On 32-bit architectures, it is preceded by three int/unsigned int, while on 64-bit architectures, it is preceded by four of them. These initializers are only available from <pthread.h> when _GNU_SOURCE is defined. Relax the cfg_if check in ci/style.rs to allow #[cfg(target_endian)] tests.
* Add a style checking script to CIAlex Crichton2016-03-011-0/+204
It's tough to have PRs bounce or to have a back and forth with contributors about minor style quibbles. Sometimes it ends up just being easier to fix style after the fact, but let's add some automation to help this! This commit adds a script to run on CI and locally to verify the style of this repository. There's a few stylistic guidelines to ensure that definitions are understandable across the jungle of modules. This consistency should help assist readability for any future readers!