All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sonarqube.ws-rules.proto Maven / Gradle / Ivy

There is a newer version: 10.6.0.79033
Show newest version
/*
 * SonarLint Core - Server API
 * Copyright (C) 2016-2024 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
syntax = "proto2";

package sonarqube.ws.rules;

import "sonarqube/ws-commons.proto";

option java_package = "org.sonarsource.sonarlint.core.serverapi.proto.sonarqube.ws";
option java_outer_classname = "Rules";
option optimize_for = SPEED;

// WS api/rules/search
message SearchResponse {
  optional int64 total = 1 [deprecated = true]; // Deprecated since 9.8
  optional int32 p = 2 [deprecated = true]; // Deprecated since 9.8
  optional int64 ps = 3 [deprecated = true]; // Deprecated since 9.8
  repeated Rule rules = 4;
  optional Actives actives = 5;
  optional sonarqube.ws.commons.Paging paging = 8; // Added in 9.8
}

//WS api/rules/show
message ShowResponse {
  optional Rule rule = 1;
}

message Rule {
  optional string key = 1;
  optional string repo = 2;
  optional string name = 3;
  optional string htmlDesc = 5 [deprecated=true];
  optional string htmlNote = 6;
  optional string severity = 10 [deprecated=true];
  optional string templateKey = 14;
  optional string lang = 19;

  optional sonarqube.ws.commons.RuleType type = 37 [deprecated=true];
  optional DescriptionSections descriptionSections = 49;
  optional EducationPrinciples educationPrinciples = 50;
  optional sonarqube.ws.commons.CleanCodeAttribute cleanCodeAttribute = 52;
  optional Impacts impacts = 54;

  message Impacts {
    repeated sonarqube.ws.commons.Impact impacts = 1;
  }

  message DescriptionSections {
    repeated DescriptionSection descriptionSections = 1;
  }

  message DescriptionSection {
    required string key = 1;
    required string content = 2;
    optional Context context = 3;

    message Context {
      required string displayName = 1;
      required string key = 2;
    }
  }

  message EducationPrinciples {
    repeated string educationPrinciples = 1;
  }

}

message Actives {
  map actives = 1;
}

message ActiveList {
  repeated Active activeList = 1;
}

message Active {
  optional string qProfile = 1;
  optional string severity = 3;
  repeated Param params = 5;

  message Param {
    optional string key = 1;
    optional string value = 2;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy