{"id":17045,"date":"2015-01-31T23:12:36","date_gmt":"2015-01-31T17:42:36","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=17045"},"modified":"2015-07-24T16:58:42","modified_gmt":"2015-07-24T11:28:42","slug":"grails-clean-code-configure-codenarc-plugin","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/","title":{"rendered":"Grails Clean Code &#8211; Configure Codenarc Plugin"},"content":{"rendered":"<p>Grails\u00a0gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it.<\/p>\n<p>Codenarc really helps to identify what is not expected from our code. We can setup the <a title=\"Grails codenarc plugin\" href=\"http:\/\/grails.org\/plugin\/codenarc\" target=\"_blank\"> codenarc plugin<\/a> easily, but the default rulesets of plugins are sometimes not useful so download the <a title=\"Default codenarc ruleset\" href=\"http:\/\/codenarc.sourceforge.net\/StarterRuleSet-AllRulesByCategory.groovy.txt\" target=\"_blank\">default <\/a>rulesets and save the file in grails-app\/conf\/CodeNarcRules.groovy and then configure the plugin by adding following code in BuildConfig.groovy.<\/p>\n<p>[code]<br \/>\ncodenarc{<br \/>\n\truleSetFiles = &quot;file:grails-app\/conf\/CodeNarcRules.groovy&quot; \/\/ Ruleset file path<br \/>\n\treports = {<br \/>\n\t  HtmlReport(&#8216;html&#8217;) {    \/\/ Report type is &#8216;html&#8217;<br \/>\n\t\toutputFile = &#8216;target\/CodeNarcReport.html&#8217; \/\/Output file name<br \/>\n\t\ttitle = &#8216;My Test Code Narc Report&#8217; \/\/ Title of the file<br \/>\n\t  }<br \/>\n\t}<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>After running the grails conarc command you will see some of the rules doesn&#8217;t fit to <a title=\"Grails Development Services\" href=\"https:\/\/2thenew.today\/grails-application-development\">Grails infrastructure<\/a>, so we can just ignore them and update some rules in our CodeNarcRules.groovy file which can make our code quality bit better e.g; the following changes<\/p>\n<p>[code]<br \/>\nEmptyMethod{<br \/>\n   doNotApplyToClassNames = &quot;*Controller&quot;<br \/>\n}<br \/>\nGrailsPublicControllerMethod{<br \/>\n\tenabled = false<br \/>\n}<br \/>\nMethodSize {<br \/>\n        maxLines = 7<br \/>\n        applyToClassNames = &#8216;*Controller&#8217;<br \/>\n}<br \/>\nMethodSize {<br \/>\n        maxLines = 12<br \/>\n        doNotApplyToClassNames = &#8216;*Controller&#8217;<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>We can supress some warning on specific methods as well by just adding an annotation<\/p>\n<p>[code]<br \/>\n@SuppressWarnings([&#8216;MethodSize&#8217;, &#8216;LineLength&#8217;])<br \/>\ndef someMethod(){<br \/>\n\/\/Code<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>We can also integrate it with our build system so that if the code doesn&#8217;t pass the minimum criteria the build gets failed by updating your configurations in BuildConfig.groovy<\/p>\n<p>[code]<br \/>\ncodenarc{<br \/>\n\truleSetFiles = &quot;file:grails-app\/conf\/CodeNarcRules.groovy&quot;<br \/>\n        maxPriority1Violations = 3<br \/>\n        systemExitOnBuildException = true<br \/>\n\treports = {<br \/>\n\t  HtmlReport(&#8216;html&#8217;) {                  \/\/ Report type is &#8216;html&#8217;<br \/>\n\t\toutputFile = &#8216;target\/CodeNarcReport.html&#8217;<br \/>\n\t\ttitle = &#8216;My Test Code Narc Report&#8217;<br \/>\n\t  }<br \/>\n\t}<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>It always good to have tool which can show you your mistakes and guide you write more readable and maintainable code. Because of this plugin I was able to delete hunderds of lines of unused code in my project.<\/p>\n<p>Hope it helps<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grails\u00a0gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":18,"footnotes":""},"categories":[7],"tags":[1614,1615,442,1589],"class_list":["post-17045","post","type-post","status-publish","format-standard","hentry","category-grails","tag-codenarc-plugin","tag-configure-codenarc-in-grails","tag-grails-performance","tag-grails-performance-optimization"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really\" \/>\n\t<meta name=\"robots\" content=\"nofollow, max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Uday Pratap Singh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"codenarc plugin\" \/>\n\t\t<meta property=\"article:tag\" content=\"configure codenarc in grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails performance\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails performance optimization\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-01-31T17:42:36+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-24T11:28:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#article\",\"name\":\"Grails Clean Code \\u2013 Configure Codenarc Plugin | TO THE NEW Blog\",\"headline\":\"Grails Clean Code &#8211; Configure Codenarc Plugin\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/uday\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-01-31T23:12:36+05:30\",\"dateModified\":\"2015-07-24T16:58:42+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#webpage\"},\"articleSection\":\"Grails, codenarc plugin, configure codenarc in grails, Grails performance, grails performance optimization\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#listItem\",\"name\":\"Grails Clean Code &#8211; Configure Codenarc Plugin\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#listItem\",\"position\":3,\"name\":\"Grails Clean Code &#8211; Configure Codenarc Plugin\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/uday\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/uday\\\/\",\"name\":\"Uday Pratap Singh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/d4c98503-ff55-4112-8fc2-e3c4fcc6fc3a_282-Uday-Pratap-Singh-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Uday Pratap Singh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/\",\"name\":\"Grails Clean Code \\u2013 Configure Codenarc Plugin | TO THE NEW Blog\",\"description\":\"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/grails-clean-code-configure-codenarc-plugin\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/uday\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/uday\\\/#author\"},\"datePublished\":\"2015-01-31T23:12:36+05:30\",\"dateModified\":\"2015-07-24T16:58:42+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog","description":"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really","canonical_url":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/","robots":"nofollow, max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#article","name":"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog","headline":"Grails Clean Code &#8211; Configure Codenarc Plugin","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/uday\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2015-01-31T23:12:36+05:30","dateModified":"2015-07-24T16:58:42+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#webpage"},"articleSection":"Grails, codenarc plugin, configure codenarc in grails, Grails performance, grails performance optimization"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.today\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#listItem","name":"Grails Clean Code &#8211; Configure Codenarc Plugin"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#listItem","position":3,"name":"Grails Clean Code &#8211; Configure Codenarc Plugin","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/uday\/#author","url":"https:\/\/2thenew.today\/blog\/author\/uday\/","name":"Uday Pratap Singh","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/d4c98503-ff55-4112-8fc2-e3c4fcc6fc3a_282-Uday-Pratap-Singh-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Uday Pratap Singh"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#webpage","url":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/","name":"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog","description":"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/uday\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/uday\/#author"},"datePublished":"2015-01-31T23:12:36+05:30","dateModified":"2015-07-24T16:58:42+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog","og:description":"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really","og:url":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":["grails","codenarc plugin","configure codenarc in grails","grails performance","grails performance optimization"],"article:published_time":"2015-01-31T17:42:36+00:00","article:modified_time":"2015-07-24T11:28:42+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Grails Clean Code \u2013 Configure Codenarc Plugin | TO THE NEW Blog","twitter:description":"Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"17045","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":false,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":true,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 14:30:04","updated":"2024-02-29 08:35:28","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGrails Clean Code \u2013 Configure Codenarc Plugin\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Grails","link":"https:\/\/2thenew.today\/blog\/category\/grails\/"},{"label":"Grails Clean Code &#8211; Configure Codenarc Plugin","link":"https:\/\/2thenew.today\/blog\/grails-clean-code-configure-codenarc-plugin\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/17045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=17045"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/17045\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=17045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=17045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=17045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}