Skip to content

Commit 944149f

Browse files
PatMyronkddejong
andauthored
include informational checks by default (#223)
* include informational checks by default informational rules can still be re-ignored with either: -i I --ignore-checks I Co-authored-by: Kevin DeJong <[email protected]>
1 parent 32c0918 commit 944149f

File tree

2 files changed

+5
-53
lines changed

2 files changed

+5
-53
lines changed
Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22
Description: A sample template
3-
Parameters:
4-
WebServerPort:
5-
Type: String
6-
Default: 80
7-
Description: Web Server Ports
8-
pIops:
9-
Type: Number
103
Resources:
114
RootRole:
125
Type: "AWS::IAM::Role"
@@ -53,49 +46,3 @@ Resources:
5346
Roles:
5447
-
5548
Ref: "RootRole"
56-
MyEC2Instance:
57-
Type: "AWS::EC2::Instance"
58-
Properties:
59-
ImageId: "ami-2f726546"
60-
InstanceType: t1.micro
61-
KeyName: testkey
62-
BlockDeviceMappings:
63-
-
64-
DeviceName: /dev/sdm
65-
Ebs:
66-
VolumeType: io1
67-
Iops: !Ref pIops
68-
DeleteOnTermination: false
69-
VolumeSize: 20
70-
NetworkInterfaces:
71-
- DeviceIndex: "1"
72-
ElasticLoadBalancer:
73-
Type: AWS::ElasticLoadBalancing::LoadBalancer
74-
Properties:
75-
AvailabilityZones:
76-
Fn::GetAZs: ''
77-
Instances:
78-
- Ref: MyEC2Instance
79-
Listeners:
80-
- LoadBalancerPort: '80'
81-
InstancePort:
82-
Ref: WebServerPort
83-
Protocol: HTTP
84-
HealthCheck:
85-
Target:
86-
Fn::Join:
87-
- ''
88-
- - 'HTTP:'
89-
- Ref: WebServerPort
90-
- "/"
91-
HealthyThreshold: '3'
92-
UnhealthyThreshold: '5'
93-
Interval: '30'
94-
Timeout: '5'
95-
IamPipeline:
96-
Type: "AWS::CloudFormation::Stack"
97-
Properties:
98-
TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/ss-vsts-codepipeline-${AWS::Region}/vsts/${AWS::AccountId}/templates/vsts-pipeline/pipeline.yaml'
99-
Parameters:
100-
DeploymentName: iam-pipeline
101-
Deploy: 'auto'

server/src/server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ function runLinter(document: TextDocument): void {
196196
}
197197

198198
let args = ['--format', 'json'];
199+
if (!(Path.includes(' --include-checks ') || Path.includes(' -c '))) {
200+
args.push('--include-checks');
201+
args.push('I'); // informational
202+
}
203+
199204
if (build_graph) {
200205
args.push('--build-graph');
201206
}

0 commit comments

Comments
 (0)