command-line-interface - 如何使 PMD 不计算带有括号的行作为代码行?
问题描述
如何使 PMD 不计算仅包含大括号的行?例如:
public static void countMyLines() {
int a = 1;
int b = 2;
System.out.println("result: "+(a+b));
} // don't count this line
我正在使用 CLI 检查我的项目。
解决方案
推荐阅读
- sql - SQL -Oracle - 以在 BO 屏幕中输入的输入的确切顺序返回结果 - 解决方案已更新
- database-design - 如何设计数据库,使项目有很多(发票/报价)哪些订单
- matplotlib - Matplotlib - 设置刻度标签的背景颜色
- mongodb - 如果没有主键,如何更新 mongodb 集合
- tcl - 在 tcl/tk 中删除标签框中的行
- javascript - 具体网址路径
- mysql - MySQL 更新或重命名 JSON 中的键
- arrays - 在scala中使用二维数组创建特定模式
- php - Laravel 集体如何根据对象值设置 Form::date 默认值
- sql - 不理解“从 TABLE_NAME 中选择 @variable_name、column1、column2”类型的 sybase 查询