Skip to content

Hossein7070/rspec

 
 

Repository files navigation

rspec

Structure

rules directory

  • RSPEC_**** directory for each rule
    • a file per section shared between multiple languages: main.adoc, compliant.adoc, noncompliant.adoc, exceptions.adoc, see.adoc
    • metadata.json: metadatas shared between laguage. They can be overridden.
    • a directory per LANGUAGE: java, c-family, python...
      • rule.adoc: root file used to generate the rule description for the specific language. It can include parts from *.adoc files defined in the parent directory.
      • metadata.json: metadatas for the specific language. Each root key will completely override the key of the above metadata.json file. No "smart" merge takes place, which makes it easier to have in one glance the full value of a field.
      • compliant.py/java/..., noncompliant.py/java/...: source code files containing compliant and noncompliant code examples.

Metadata format

The metadata match closely what plugins expect. Additional fields:

  • qualityProfile: quality profile(s) in which the rule should be registered.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.6%
  • CSS 1.6%
  • HTML 0.4%
  • Java 0.2%
  • Python 0.2%
  • Shell 0.0%