Skip to content
Merged
Prev Previous commit
Next Next commit
Add suppression correctly
  • Loading branch information
hrishikeshpathak committed Nov 2, 2017
commit 948f4c52318a1b345ff57ea9ef7454460d99fcd4
17 changes: 13 additions & 4 deletions specification/redis/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ csharp:
namespace: Microsoft.Azure.Management.Redis
output-folder: $(csharp-sdks-folder)/RedisCache/Management.Redis/Generated
clear-output-folder: true
directive:
- from: Microsoft.Azure.Management.Redis
suppress:
- R3006
```


Expand Down Expand Up @@ -139,3 +135,16 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
``` yaml $(tag) == 'package-2015-08' && $(go)
output-folder: $(go-sdk-folder)/services/redis/mgmt/2015-08-01/cache
```

# Validation

## Suppression

``` yaml
directive:
- suppress: R3006 # Model definition 'RedisResource' has extra properties ['zones']."
where:
- $.definitions.RedisResource.properties
from: redis.json
reason: zones properties will be allowed in subsequent version of the linter tool
```