Eclipse的自定义导入顺序规则

时间:2020-02-13 19:53:23

标签: eclipse ide checkstyle

我们的checkstyle强制基于正则表达式的某些导入顺序规则。是否可以在Eclipse中指定这些规则?

例如 我想将由// The number of state transitions is given by the user (subscriber) export const selectLastStateTransitions = (count: number, selector: any) => { return pipe( // Thanks to `createSelector` the operator will have memoization "for free" select(selector), // Combines the last `count` state values in array scan((acc, curr) => { const x = [curr, ...acc].filter((val, index) => index < count); // && val !== undefined); return x; }, []) // Equivalent to what is emitted by the selector ); }; foo开头的软件包分为一组,由bar这样的checkstyle regex强制执行。但是,如果我使用/foo|bar/foo在eclipse中创建导入顺序(首选项-> Java->代码样式->组织导入),则会将其分为两个单独的组,从而导致违反Checkstyle。有没有办法在日食中做到这一点?

0 个答案:

没有答案