Create rule S2260: Rust source files should not have syntax errors (#4701)
* Add rust to rule S2260 * Update RSPEC * Add to SonarWay * Improve rule title * Remove from Sonar way --------- Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com> Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
This commit is contained in:
parent
99086a587d
commit
45cc311cd2
3
rules/S2260/rust/metadata.json
Normal file
3
rules/S2260/rust/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "Rust source files should not have syntax errors"
|
||||
}
|
19
rules/S2260/rust/rule.adoc
Normal file
19
rules/S2260/rust/rule.adoc
Normal file
@ -0,0 +1,19 @@
|
||||
== Why is this an issue?
|
||||
|
||||
When the Rust parser fails, it is possible to record the failure as a violation on the file. This way, not only it is possible to track the number of files that do not parse but also to easily find out why they do not parse.
|
||||
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
'''
|
||||
== Comments And Links
|
||||
(visible only on this page)
|
||||
|
||||
include::../comments-and-links.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
Loading…
x
Reference in New Issue
Block a user