kazimanzurrashid / aws-scheduler-go

Some analyzers or transformers are misconfigured in .deepsource.toml. Please refer to the docs.

  • ['github.com/kazimanzurrashid/aws-scheduler-go/graphql', 'github.com/kazimanzurrashid/aws-scheduler-go/collector', 'github.com/kazimanzurrashid/aws-scheduler-go/worker'] is not of type 'string' in meta for analyzer "go"

Found unused objects JS-R1002
Anti-pattern
Minor
5 months ago2 years old
Avoid instantiating unused object 'new SchedulerStack(app, 'scheduler-v1', { env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION }, name: 'scheduler', version: 'v1' })'
174
175const app = new App();
176
177new SchedulerStack(app, 'scheduler-v1', {178  env: {179    account: process.env.CDK_DEFAULT_ACCOUNT,180    region: process.env.CDK_DEFAULT_REGION181  },182  name: 'scheduler',183  version: 'v1'184});185
186app.synth();
Avoid instantiating unused object 'new Rule(this, 'SchedulerRule', { schedule: Schedule.rate(Duration.minutes(1)), targets: [new LambdaFunction( collectorLambda, { event: RuleTargetInput.fromObject({ }) })] })'
142
143    schedulerTable.grantReadWriteData(collectorLambda);
144
145    new Rule(this, 'SchedulerRule', {146      schedule: Schedule.rate(Duration.minutes(1)),147      targets: [new LambdaFunction(148        collectorLambda, {149          event: RuleTargetInput.fromObject({ })150        })]151    });152
153    const workerLambda = new Function(this, 'WorkerFunction', {
154      functionName: `${props.name}-worker-${props.version}`,