Title: Quality: Sonar RSPEC-1940 "Boolean checks should not be inverted" · Issue #1074 · biojava/biojava · GitHub
Open Graph Title: Quality: Sonar RSPEC-1940 "Boolean checks should not be inverted" · Issue #1074 · biojava/biojava
X Title: Quality: Sonar RSPEC-1940 "Boolean checks should not be inverted" · Issue #1074 · biojava/biojava
Description: We noticed that you have 8 violations of the Sonar rule RSPEC-1940 "Boolean checks should not be inverted". Although these violations are considered minor, they make the code less readable. Here is an example of the changes our automatic...
Open Graph Description: We noticed that you have 8 violations of the Sonar rule RSPEC-1940 "Boolean checks should not be inverted". Although these violations are considered minor, they make the code less readable. Here is...
X Description: We noticed that you have 8 violations of the Sonar rule RSPEC-1940 "Boolean checks should not be inverted". Although these violations are considered minor, they make the code less readabl...
Opengraph URL: https://github.com/biojava/biojava/issues/1074
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quality: Sonar RSPEC-1940 \"Boolean checks should not be inverted\"","articleBody":"We noticed that you have 8 violations of the Sonar rule RSPEC-1940 \"Boolean checks should not be inverted\". Although these violations are considered minor, they make the code less readable. Here is an example of the changes our automatic code remediation solution could bring to you. Its use is completely free for all opensource projects. You can use it without moderation.\r\n\r\n\r\n org\\biojava\\nbio\\structure\\secstruc\\SecStrucTools.java\r\n @@ -58,5 +58,5 @@\r\n if (g.hasAminoAtoms()) {\r\n Object p = g.getProperty(Group.SEC_STRUC);\r\n - if (!(p == null)) {\r\n + if (p != null) {\r\n SecStrucInfo ss = (SecStrucInfo) p;\r\n listSSI.add(ss);\r\n\r\nBelow is another example\r\n\r\n org\\biojava\\nbio\\structure\\align\\ce\\CeCalculatorEnhanced.java\r\n @@ -1456,5 +1456,5 @@\r\n //System.out.println(\"rmsd: \" + rmsd);\r\n\r\n - if(!(nAtom\u003cstrLen*0.95) \u0026\u0026 (!isRmsdLenAssigned)) {\r\n + if(nAtom\u003e=strLen*0.95 \u0026\u0026 (!isRmsdLenAssigned)) {\r\n rmsdLen=rmsd;\r\n isRmsdLenAssigned=true;\r\n\r\nIf you are interested you can go to the page https://indepth.fr/ and follow the links to download the indepth-cli application which is the client interface of our application. You also have several videos of less than a minute that explain how to launch your first remediation.\r\n\r\nIf you have the slightest difficulty, I will stay tuned to help you get to grips with Indepth.\r\n","author":{"url":"https://github.com/jlerbsc","@type":"Person","name":"jlerbsc"},"datePublished":"2023-12-12T07:59:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1074/biojava/issues/1074"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd4efc46-cc69-6042-3979-376a2fa872e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDA0:1A86E7:2F54D74:3EB6C06:69744489 |
| html-safe-nonce | ca732d8240d6ba494525577e30dc090908cf31a8e539e49bd175eace4f1ad6ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREEwOjFBODZFNzoyRjU0RDc0OjNFQjZDMDY6Njk3NDQ0ODkiLCJ2aXNpdG9yX2lkIjoiNjc1MTgyNjA1NTgwNDUwMzE3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5605a531d9da822d523e761c287c744e030bce3b714e1bc00f0d46aa1ab4809e |
| hovercard-subject-tag | issue:2037189868 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/biojava/biojava/1074/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d344334623227204d0bdfb556b78526691d5771443446550ff9ae44ae903041c/biojava/biojava/issues/1074 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d344334623227204d0bdfb556b78526691d5771443446550ff9ae44ae903041c/biojava/biojava/issues/1074 |
| og:image:alt | We noticed that you have 8 violations of the Sonar rule RSPEC-1940 "Boolean checks should not be inverted". Although these violations are considered minor, they make the code less readable. Here is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jlerbsc |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/biojava/biojava git https://github.com/biojava/biojava.git |
| octolytics-dimension-user_id | 237402 |
| octolytics-dimension-user_login | biojava |
| octolytics-dimension-repository_id | 9199359 |
| octolytics-dimension-repository_nwo | biojava/biojava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9199359 |
| octolytics-dimension-repository_network_root_nwo | biojava/biojava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width