mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-24 15:11:09 -05:00
91dc6d7234
- Add missing fix mode options for: CLANG_FORMAT, ENV, GOOGLE_JAVA_FORMAT, NATURAL_LANGUAGE, PYTHON_ISORT, RUST_CLIPPY. - Refactor linter tests to make them shorter because there's no need to have big test files. - Refactor 'bad' linter tests for linters that support fix mode so they contain only automatically fixable issues. This is needed to avoid adding another set of 'bad' linter tests for fix mode. - Provide configuration files for linters that support fix mode and for which the default configuration is not suitable to enable fix mode: ansible-lint, ESLint, golangci-lint. - Add a test case for linter commands options for linters that support fix mode, to ensure that fix mode and check-only mode options have been defined. - Refactor the fix mode test to check if linters actually applied modifications to files. - Update documentation about adding test cases for linters that support fix mode. - Don't exit with a fatal error if VALIDATE_xxx is false when testing fix mode because not all linters support fix mode. To enable this, set the new FIX_MODE_TEST_CASE_RUN variable to true.
40 lines
970 B
Protocol Buffer
40 lines
970 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package examplePb;
|
|
|
|
option java_package = "com.example.foo";
|
|
|
|
import "other.proto";
|
|
import public "new.proto";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "myproject/other_protos.proto";
|
|
import "myproject/main_protos.proto";
|
|
|
|
enum enumAllowingAlias {
|
|
option allow_alias = true;
|
|
UNKNOWN = 0;
|
|
STARTED = 1;
|
|
RUNNING = 2 [(custom_option) = "hello world"];
|
|
}
|
|
message outer {
|
|
option (my_option).a = true;
|
|
// inner is an inner message.
|
|
message inner { // Level 2
|
|
int64 ival = 1;
|
|
}
|
|
repeated inner inner_message = 2;
|
|
EnumAllowingAlias enum_field =3;
|
|
map<int32, string> my_map = 4;
|
|
string reason_for_error = 5;
|
|
string end_of_support_version= 6;
|
|
message AccountForAdmin {}
|
|
message SpecialEndOfSupport {}
|
|
required inner inner_message = 7;
|
|
repeated inner paper = 11;
|
|
}
|
|
service SearchApi {
|
|
rpc search (SearchRequest) returns (SearchResponse) {};
|
|
};
|