-
Notifications
You must be signed in to change notification settings - Fork 1
/
code-rub.config.js
70 lines (69 loc) · 3.27 KB
/
code-rub.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
const config = {
plugins: [
'./tools/test-plugins/log-files-length.plugin.js',
// '@code-rub/jira',
// '@code-rub/azure-devops',
'@code-rub/filter-files',
'./tools/test-plugins/log-files-length.plugin.js',
{
processAssignments: (assignments) => {
assignments.forEach((a) => console.log(`${a.uid} -> ${a.filePath}`));
},
},
],
uids: ['[email protected]'],
tasksPerDeveloper: 4,
pluginConfiguration: {
'@code-rub/filter-files': {
allowedFileExtensions: ['.ts', '.js'],
bannedFileNames: [
'jest.config.js',
'code-rub.config.js',
'jest.preset.js',
],
},
'@code-rub/jira': {
host: 'craigory-test-instance.atlassian.net',
summaryTemplate: 'Code rub: {fileName}',
descriptionTemplate: [
`Code rubbing is just like glass rubbing, it makes cleaner, shinier and better to look at. \n`,
`In order for that to happen, every engineer will need to pick up a random file from the solution they are working on, and make sure it follows the best practices and latest technologies, along with making sure it maintains it’s consistency across the entire solution. \n`,
`There are conditions for code rubbing, which are:`,
`- It shouldn’t take more than 20 minutes from an engineer’s day.`,
`- It should target only one single file per day.`,
`- It shouldn’t include implementing new features or fixing bugs.`,
`- It should require more code reading than code writing.`,
`- It shouldn’t require a pairing session.`,
`- It should be done continuously every single day.`,
`- It shouldn’t happen to the same file by the same engineer twice unless every other file has been already rubbed`,
``,
`Your file has already been picked, it is {fileName}`,
].join('\n'),
projectKey: 'TES',
issueType: 'Sub-task',
parentIssue: 'TES-12',
},
'@code-rub/azure-devops': {
host: 'https://dev.azure.com/AgentEnder',
titleTemplate: 'Code rub: {fileName}',
descriptionTemplate: [
`Code rubbing is just like glass rubbing, it makes cleaner, shinier and better to look at. \n`,
`In order for that to happen, every engineer will need to pick up a random file from the solution they are working on, and make sure it follows the best practices and latest technologies, along with making sure it maintains it’s consistency across the entire solution. \n`,
`There are conditions for code rubbing, which are:`,
`- It shouldn’t take more than 20 minutes from an engineer’s day.`,
`- It should target only one single file per day.`,
`- It shouldn’t include implementing new features or fixing bugs.`,
`- It should require more code reading than code writing.`,
`- It shouldn’t require a pairing session.`,
`- It should be done continuously every single day.`,
`- It shouldn’t happen to the same file by the same engineer twice unless every other file has been already rubbed`,
``,
`Your file has already been picked, it is {fileName}`,
].join('\n'),
project: 'Test-Code-Rub-Project',
workItemType: 'Task',
parentTicket: '176',
},
},
};
module.exports = config;