Page MenuHomePhabricator

No OneTemporary

diff --git a/.lintstagedrc.js b/.lintstagedrc.js
index 4e869f17c..4d508d774 100644
--- a/.lintstagedrc.js
+++ b/.lintstagedrc.js
@@ -1,61 +1,64 @@
const { CLIEngine } = require('eslint');
const { getClangPaths } = require('./scripts/get_clang_paths');
const cli = new CLIEngine({});
module.exports = {
'*.{js,mjs,cjs}': function eslint(files) {
// This logic is likely broken and needs to be updated. see ENG-1011
return (
'eslint --cache --fix --max-warnings=0 ' +
files.filter(file => !cli.isPathIgnored(file)).join(' ')
);
},
'*.{css,html,md,json}': function prettier(files) {
return 'prettier --write ' + files.join(' ');
},
'*.sh': function shellCheck(files) {
return 'shellcheck -x -P SCRIPTDIR ' + files.join(' ');
},
'lib/**/*.js': function libFlow(files) {
return 'yarn workspace lib flow --quiet';
},
'lib/**/*.js': function libTest(files) {
return 'yarn workspace lib test';
},
'{web,lib}/**/*.js': function webFlow(files) {
return 'yarn workspace web flow --quiet';
},
'{native,lib}/**/*.js': function nativeFlow(files) {
return 'yarn workspace native flow --quiet';
},
'{keyserver,web,lib}/**/*.js': function keyserverFlow(files) {
return 'yarn workspace keyserver flow --quiet';
},
'{keyserver,web,lib}/**/*.js': function keyserverTest(files) {
return 'yarn workspace keyserver test';
},
'{landing,lib}/**/*.js': function landingFlow(files) {
return 'yarn workspace landing flow --quiet';
},
+ 'services/identity/**/*.rs': function testIdentity(files) {
+ return 'bash -c "cd services/identity && cargo test"';
+ },
'{native,services}/**/*.{h,cpp,java,mm}': function clangFormat(files) {
files = files.filter(path => {
if (path.indexOf('generated') !== -1) {
return false;
}
for (const allowedPath of getClangPaths()) {
if (path.indexOf(allowedPath) !== -1) {
return true;
}
}
return false;
});
return 'clang-format -i ' + files.join(' ');
},
'services/commtest/**/*.rs': function rustFormat(files) {
return 'yarn rust-pre-commit';
},
'services/terraform/*.tf': function checkTerraform(files) {
return 'yarn terraform-pre-commit';
},
};

File Metadata

Mime Type
text/x-diff
Expires
Wed, Dec 25, 6:08 PM (7 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700661
Default Alt Text
(2 KB)

Event Timeline