forked from stepstone-tech/sonar-coldfusion
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
180 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<cfcomponent output="false" extends="com.remoteproxy"> | ||
<cfsetting showdebugoutput="true"> | ||
|
||
<cffunction name="hasEpisode" returntype="struct" access="remote" output="false" returnformat="JSON" hint="hint example"> | ||
|
||
<cfargument name="episodeKey" type="numeric" required="true" /> | ||
|
||
<cfset local.resultStruct = {} /> | ||
<cfset local.resultStruct.has = false /> | ||
<cfset local.resultStruct.result = "success"> | ||
|
||
|
||
<!--testcomment--> | ||
|
||
|
||
<cftry> | ||
|
||
<cfset local.episodes = createObject("component", "packages.system.Episode.Episode.EpisodeGateway").init(application.dsn).getByAttributesQuery(fEpisodeKey=arguments.episodeKey) /> | ||
|
||
<cfif local.episodes.recordCount GT 0> | ||
<cfset local.resultStruct.has = true /> | ||
</cfif> | ||
|
||
<cfcatch type="any"> | ||
<cfset local.resultStruct.result = "fail"> | ||
<cfset local.resultStruct.errorStruct = super.createErrorJSON(cfcatch)> | ||
</cfcatch> | ||
|
||
</cftry> | ||
|
||
<cfreturn local.resultStruct /> | ||
|
||
</cffunction> | ||
|
||
</cfcomponent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<cfset firstName = "World"> | ||
Hello <cfoutput>#firstName#</cfoutput>! | ||
<!--- this is a comment ---> | ||
This CFML tutorial was designed for | ||
<cfif firstName eq "World"> | ||
you! | ||
<cfelse > | ||
<!--- this is a second comment ---> | ||
the world to see. | ||
</cfif> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
<cfset firstName = "Nico"> | ||
|
||
<!-- comment format | ||
multilines--> | ||
|
||
Hello <cfoutput>#firstName#</cfoutput>! | ||
This CFML tutorial was designed for | ||
<cfif firstName eq "Nico"> | ||
you! | ||
<cfelse> | ||
<!-- Another comment format | ||
multilines | ||
--> | ||
|
||
the world to see. | ||
</cfif> |