-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update definition for trunk-toolbox to include latest support for nev…
…eredit rule (#859) 1. trunk toolbox definition and support changes with version 0.4.1. toolbox can now run correctly with hold-the-line standard upstream support. Also adds support for a new rule "neveredit" which protect files from editing once checked in. 2. backwards support for old version of toolbox is maintained.
- Loading branch information
1 parent
4edf931
commit 2c48cf4
Showing
3 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ lint: | |
# enabled linters inherited from github.com/trunk-io/configs plugin | ||
- definition-checker | ||
- [email protected] | ||
- [email protected] | ||
disabled: | ||
- pylint # pylint diagnostics are too strict | ||
- semgrep | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
linters/trunk-toolbox/test_data/trunk_toolbox_v0.4.1_do_not_land.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Testing linter trunk-toolbox test do_not_land 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "do-not-land", | ||
"column": "3", | ||
"file": "test_data/do_not_land.in.txt", | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "trunk-toolbox", | ||
"message": "Found 'DONOTLAND'", | ||
"ranges": [ | ||
{ | ||
"filePath": "test_data/do_not_land.in.txt", | ||
"length": "9", | ||
"offset": "2", | ||
}, | ||
], | ||
"targetType": "ALL", | ||
}, | ||
{ | ||
"code": "do-not-land", | ||
"column": "3", | ||
"file": "test_data/do_not_land.in.txt", | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"line": "2", | ||
"linter": "trunk-toolbox", | ||
"message": "Found 'do-not-land'", | ||
"ranges": [ | ||
{ | ||
"filePath": "test_data/do_not_land.in.txt", | ||
"length": "11", | ||
"offset": "14", | ||
}, | ||
], | ||
"targetType": "ALL", | ||
}, | ||
{ | ||
"code": "do-not-land", | ||
"column": "3", | ||
"file": "test_data/do_not_land.in.txt", | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"line": "3", | ||
"linter": "trunk-toolbox", | ||
"message": "Found 'do_not_land'", | ||
"ranges": [ | ||
{ | ||
"filePath": "test_data/do_not_land.in.txt", | ||
"length": "11", | ||
"offset": "28", | ||
}, | ||
], | ||
"targetType": "ALL", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trunk-toolbox", | ||
"paths": [ | ||
"test_data/do_not_land.in.txt", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trunk-toolbox", | ||
"paths": [ | ||
"test_data/do_not_land.in.txt", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |