├── .gitignore ├── Cargo.toml ├── LICENSE ├── MISRA-Rules.md ├── README.md ├── README.rx ├── include └── _'_.rs ├── src └── main.rs └── tests ├── compile-fail ├── Rule_10_1.rs ├── Rule_10_2.rs ├── Rule_10_3.rs ├── Rule_10_4.rs ├── Rule_10_5.rs ├── Rule_10_6.rs ├── Rule_10_7.rs ├── Rule_10_8.rs ├── Rule_11_1.rs ├── Rule_11_2.rs ├── Rule_11_3.rs ├── Rule_11_4.rs ├── Rule_11_5.rs ├── Rule_11_6.rs ├── Rule_11_7.rs ├── Rule_11_8.rs ├── Rule_11_9.rs ├── Rule_12_1.rs ├── Rule_12_2.rs ├── Rule_12_3.rs ├── Rule_12_4.rs ├── Rule_13_1.rs ├── Rule_13_2.rs ├── Rule_13_3.rs ├── Rule_13_4.rs ├── Rule_13_5.rs ├── Rule_13_6.rs ├── Rule_14_1.rs ├── Rule_14_2.rs ├── Rule_14_3.rs ├── Rule_14_4.rs ├── Rule_15_1.rs ├── Rule_15_2.rs ├── Rule_15_3.rs ├── Rule_15_4.rs ├── Rule_15_5.rs ├── Rule_15_6.rs ├── Rule_15_7.rs ├── Rule_16_1.rs ├── Rule_16_2.rs ├── Rule_16_3.rs ├── Rule_16_4.rs ├── Rule_16_5.rs ├── Rule_16_6.rs ├── Rule_16_7.rs ├── Rule_17_1.rs ├── Rule_17_2.rs ├── Rule_17_3.rs ├── Rule_17_4.rs ├── Rule_17_5.rs ├── Rule_17_6.rs ├── Rule_17_7.rs ├── Rule_17_8.rs ├── Rule_18_1.rs ├── Rule_18_2.rs ├── Rule_18_3.rs ├── Rule_18_4.rs ├── Rule_18_5.rs ├── Rule_18_6.rs ├── Rule_18_7.rs ├── Rule_18_8.rs ├── Rule_19_1.rs ├── Rule_19_2.rs ├── Rule_1_1.rs ├── Rule_1_2.rs ├── Rule_1_3.rs ├── Rule_20_1.rs ├── Rule_20_10.rs ├── Rule_20_11.rs ├── Rule_20_12.rs ├── Rule_20_13.rs ├── Rule_20_14.rs ├── Rule_20_2.rs ├── Rule_20_3.rs ├── Rule_20_4.rs ├── Rule_20_5.rs ├── Rule_20_6.rs ├── Rule_20_7.rs ├── Rule_20_8.rs ├── Rule_20_9.rs ├── Rule_21_1.rs ├── Rule_21_10.rs ├── Rule_21_11.rs ├── Rule_21_12.rs ├── Rule_21_2.rs ├── Rule_21_3.rs ├── Rule_21_4.rs ├── Rule_21_5.rs ├── Rule_21_6.rs ├── Rule_21_7.rs ├── Rule_21_8.rs ├── Rule_21_9.rs ├── Rule_22_1.rs ├── Rule_22_2.rs ├── Rule_22_3.rs ├── Rule_22_4.rs ├── Rule_22_5.rs ├── Rule_22_6.rs ├── Rule_2_1.rs ├── Rule_2_2.rs ├── Rule_2_3.rs ├── Rule_2_4.rs ├── Rule_2_5.rs ├── Rule_2_6.rs ├── Rule_2_7.rs ├── Rule_3_1.rs ├── Rule_3_2.rs ├── Rule_4_1.rs ├── Rule_4_2.rs ├── Rule_5_1.rs ├── Rule_5_2.rs ├── Rule_5_3.rs ├── Rule_5_4.rs ├── Rule_5_5.rs ├── Rule_5_6.rs ├── Rule_5_7.rs ├── Rule_5_8.rs ├── Rule_5_9.rs ├── Rule_6_1.rs ├── Rule_6_2.rs ├── Rule_7_1.rs ├── Rule_7_2.rs ├── Rule_7_3.rs ├── Rule_7_4.rs ├── Rule_8_1.rs ├── Rule_8_10.rs ├── Rule_8_11.rs ├── Rule_8_12.rs ├── Rule_8_13.rs ├── Rule_8_14.rs ├── Rule_8_2.rs ├── Rule_8_3.rs ├── Rule_8_4.rs ├── Rule_8_5.rs ├── Rule_8_6.rs ├── Rule_8_7.rs ├── Rule_8_8.rs ├── Rule_8_9.rs ├── Rule_9_1.rs ├── Rule_9_2.rs ├── Rule_9_3.rs ├── Rule_9_4.rs └── Rule_9_5.rs └── compile-tests.rs /.gitignore: -------------------------------------------------------------------------------- 1 | Cargo.lock 2 | /target/ 3 | **/*.rs.bk 4 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/LICENSE -------------------------------------------------------------------------------- /MISRA-Rules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/MISRA-Rules.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/README.md -------------------------------------------------------------------------------- /README.rx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/README.rx -------------------------------------------------------------------------------- /include/_'_.rs: -------------------------------------------------------------------------------- 1 | 2 | // _'_.rs 3 | // Not a MISRA compiant file name. 4 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("usage: `cargo test`"); 3 | } 4 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_10_8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_10_8.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_5.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_6.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_11_8.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_11_9.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_12_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_12_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_12_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_12_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_12_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_12_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_12_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_13_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_13_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_13_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_13_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_13_6.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_14_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_14_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_14_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_14_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_14_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_14_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_14_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_14_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_4.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_15_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_15_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_15_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_15_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_16_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_16_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_16_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_16_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_16_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_16_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_17_8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_17_8.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_18_8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_18_8.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_19_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_19_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_19_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_19_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_1_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_1_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_1_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_1_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_20_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_10.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_11.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_12.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_13.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_14.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_20_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_20_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_5.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_20_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_20_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_8.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_20_9.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_21_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_10.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_11.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_12.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_21_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_4.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_5.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_6.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_7.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_8.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_21_9.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_4.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_5.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_22_6.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_2_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_2_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_3_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_3_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_3_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_3_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_4_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_4_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_4_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_6.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_7.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_7.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_8.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_5_9.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_5_9.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_6_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_6_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_7_1.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_7_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_7_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_7_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_7_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_7_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_10.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_11.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_11.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_12.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_12.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_13.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_13.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_14.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_2.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_3.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_4.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_5.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_6.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_7.rs: -------------------------------------------------------------------------------- 1 | pub const LIBRARY_GLOBAL: u32 = 0; 2 | //~^ ERROR Non-compliant - public but not used 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_8.rs: -------------------------------------------------------------------------------- 1 | "N/A" 2 | //~^ ERROR expected item, found `"N/A"` 3 | -------------------------------------------------------------------------------- /tests/compile-fail/Rule_8_9.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_8_9.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_9_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_9_1.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_9_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_9_2.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_9_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_9_3.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_9_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_9_4.rs -------------------------------------------------------------------------------- /tests/compile-fail/Rule_9_5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-fail/Rule_9_5.rs -------------------------------------------------------------------------------- /tests/compile-tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PolySync/misra-rust/HEAD/tests/compile-tests.rs --------------------------------------------------------------------------------