We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e8f6cb commit bdb9e5aCopy full SHA for bdb9e5a
1 file changed
internal/cadence/lint_test.go
@@ -332,8 +332,18 @@ func Test_Lint(t *testing.T) {
332
&lintResult{
333
Results: []fileResult{
334
{
335
- FilePath: "StdlibImportsScript.cdc",
336
- Diagnostics: []analysis.Diagnostic{},
+ FilePath: "StdlibImportsScript.cdc",
+ Diagnostics: []analysis.Diagnostic{
337
+ {
338
+ Location: common.StringLocation("StdlibImportsScript.cdc"),
339
+ Category: "security",
340
+ Message: "hardcoded address detected — consider using named address imports for portability",
341
+ Range: ast.Range{
342
+ StartPos: ast.Position{Offset: 109, Line: 5, Column: 37},
343
+ EndPos: ast.Position{Offset: 112, Line: 5, Column: 40},
344
+ },
345
346
347
},
348
349
exitCode: 0,
0 commit comments