设为首页 收藏本站
查看: 750|回复: 0

[软件发布] SonarQube JavaScript 2.11 发布

[复制链接]

尚未签到

发表于 2016-6-3 11:09:26 | 显示全部楼层 |阅读模式
欢迎加入运维网交流群:263444886   DSC0000.png
                DSC0001.jpg   SonarQube JavaScript 2.11发布,这个版本加入了16项新规则实施一些与ECMAScript 2015相关的编码实践(原ECMAScript 6或ECMAScript和谐版)。
  16项新规则:

  •   “arguments” should not be accessed directly (api-design, es2015)
  •   “import” should be used to include external code (convention, es2015, obsolete)
  •   Attempts should not be made to update “const” variables (bug, es2015)
  •   Braces and parentheses should be used consistently with arrow functions (convention, es2015)
  •   Class methods should be used instead of “prototype” assignments (es2015)
  •   Class names and file names should match (confusing, es2015)
  •   Default parameters should not cause side effects (es2015, pitfall)
  •   Destructuring syntax should be used for assignments (clumsy, es2015)
  •   Function parameters with default values should be last (bug, es2015)
  •   Generators should “yield” something (es2015, suspicious)
  •   Object literal shorthand syntax should be used (convention, es2015)
  •   Shorthand object properties should be grouped at the beginning or end of an object declaration (convention, es2015)
  •   Template strings should be used instead of concatenation (clumsy, es2015)
  •   Unchanged variables should be marked “const” (es2015)
  •   Variables should be declared with “let” or “const” (bad-practice, es2015)
  •   Wildcard imports should not be used (es2015, pitfall)
  漏洞:

  •   [SONARJS-427] - False positive CommentedCode
  •   [SONARJS-571] - False positive ExpressionComplexity (S1067)
  •   [SONARJS-603] - False Positive SemicolonCheck: nested class declaration
  •   [SONARJS-617] - False Positive VariableDeclarationWithoutVar (S2703): "module" and "exports" in node.js project
  •   [SONARJS-640] - Support octal literals
  •   [SONARJS-641] - ClassCastException in destructuring assignment
  •   [SONARJS-649] - False Positive NonEmptyCaseWithoutBreak: complex flow
  •   [SONARJS-650] - False Positive UselessStringOperationCheck (S1154) : "replace" with function parameter
  改进:

  •   [SONARJS-400] - Improve DeadStore (S1854): consider execution order
  •   [SONARJS-511] - Provide semantic support of ECMAScript 2015
  •   [SONARJS-548] - Ignore functions passed as parametes to AngularJS module methods in function size rules
  •   [SONARJS-601] - Simplify the API to create new issues
  •   [SONARJS-610] - Tune "Sonar way" Quality Profile to cover only generally accepted conventions
  •   [SONARJS-627] - Improve UnreachableCode (S1763): consider execution order
  •   [SONARJS-628] - Improve type-inference: consider unary operations
  •   [SONARJS-630] - Remove visitToken() and visitTrivia() from SubscriptionVisitor
  •   [SONARJS-648] - Update description of TrailingComma
  •   [SONARJS-652] - Improve issue location for rules checking variable name
  新特性:

  •   [SONARJS-604] - Rule: Variables should be declared with "let" or "const"
  •   [SONARJS-605] - Rule: Unchanged variables should be marked "const"
  •   [SONARJS-606] - Rule: Attempts should not be made to update "const" variables
  •   [SONARJS-607] - Rule: Object literal shorthand syntax should be used
  •   [SONARJS-608] - Rule: Shorthand object properties should be grouped at the beginning or end of an object declaration
  •   [SONARJS-609] - Rule: Function parameters with default values should be last
  •   [SONARJS-612] - Rule: Template strings should be used instead of concatenation
  •   [SONARJS-613] - Rule: "arguments" should not be accessed directly
  •   [SONARJS-614] - Rule: Destructuring syntax should be used for assignments
  •   [SONARJS-615] - Rule: Default parameters should not cause side effects
  •   [SONARJS-616] - Rule: Variable declarations should be placed appropriately for their scope
  •   [SONARJS-620] - Rule: Generators should "yield" something
  •   [SONARJS-622] - Rule: Arrow function should use consistently parentheses and curly braces
  •   [SONARJS-623] - Rule: Class methods should be used instead of "prototype" assignments
  •   [SONARJS-624] - Rule: "import" should be used to include external code
  •   [SONARJS-625] - Rule: Wildcard imports should not be used
  •   [SONARJS-626] - Rule: Class names and file names should match
  •   [SONARJS-653] - Remove property "sonar.javascript.exclude.minifiedFiles"
  任务:

  •   [SONARJS-518] - Refactor JavaScriptCheckContext not to use Issuable anymore
  •   [SONARJS-544] - Provide profile generator for IT-ruling
  •   [SONARJS-611] - Update description of VariableDeclarationWithoutVar
  子任务:

  •   [SONARJS-618] - Remove Semicolon rule from default quality profile
  •   [SONARJS-619] - Remove TrailingComment rule from default quality profile
  •   [SONARJS-629] - Support block-scoped variables
  •   [SONARJS-631] - Create symbol and type for class declaration
  •   [SONARJS-632] - Create type for arrow function
  •   [SONARJS-633] - Create symbols for import
  •   [SONARJS-644] - Remove TrailingComma rule from default quality profile
  •   [SONARJS-645] - Remove FunctionName (S100) rule from default quality profile
  •   [SONARJS-646] - Remove TrailingWhitespace rule from default quality profile
  •   [SONARJS-647] - Remove TabCharacter rule from default quality profile

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-225744-1-1.html 上篇帖子: React v15.0 测试版本发布,JavaScript库 下篇帖子: Subclipse 1.10.12 发布
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表