Skip to content

Ensure that all source files end with a single \n #4080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
coffeescript.org
coffeescript.org
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffeescript/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).

* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
2 changes: 0 additions & 2 deletions documentation/coffee/block_comment.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
SkinnyMochaHalfCaffScript Compiler v1.0
Released under the MIT License
###


2 changes: 1 addition & 1 deletion documentation/coffee/cake_tasks.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ task 'build:parser', 'rebuild the Jison parser', (options) ->
require 'jison'
code = require('./lib/grammar').parser.generate()
dir = options.output or 'lib'
fs.writeFile "#{dir}/parser.js", code
fs.writeFile "#{dir}/parser.js", code
2 changes: 1 addition & 1 deletion documentation/coffee/do.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
for filename in list
do (filename) ->
fs.readFile filename, (err, contents) ->
compile filename, contents.toString()
compile filename, contents.toString()
2 changes: 1 addition & 1 deletion documentation/coffee/expressions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ grade = (student) ->
else
"C"

eldest = if 24 > 21 then "Liz" else "Ike"
eldest = if 24 > 21 then "Liz" else "Ike"
2 changes: 1 addition & 1 deletion documentation/coffee/expressions_comprehension.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The first ten global properties.

globals = (name for name of window)[0...10]
globals = (name for name of window)[0...10]
2 changes: 1 addition & 1 deletion documentation/coffee/fat_arrow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Account = (customer, cart) ->
@cart = cart

$('.shopping_cart').on 'click', (event) =>
@customer.purchase @cart
@customer.purchase @cart
2 changes: 1 addition & 1 deletion documentation/coffee/generators.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ perfectSquares = ->
yield num * num
return

window.ps or= perfectSquares()
window.ps or= perfectSquares()
2 changes: 1 addition & 1 deletion documentation/coffee/scope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ outer = 1
changeNumbers = ->
inner = -1
outer = 10
inner = changeNumbers()
inner = changeNumbers()
2 changes: 1 addition & 1 deletion documentation/coffee/switch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ switch day
go bingo
go dancing
when "Sun" then go church
else go work
else go work
2 changes: 1 addition & 1 deletion examples/beautiful_code/binary_search.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ index = (list, target) ->

console.log 2 is index [10, 20, 30, 40, 50], 30
console.log 4 is index [-97, 35, 67, 88, 1200], 1200
console.log 0 is index [0, 45, 70], 0
console.log 0 is index [0, 45, 70], 0
2 changes: 1 addition & 1 deletion examples/beautiful_code/regular_expression_matcher.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ console.log match("s..t", "spit")
console.log match("^..t", "buttercup")
console.log match("i..$", "cherries")
console.log match("o*m", "vrooooommm!")
console.log match("^hel*o$", "hellllllo")
console.log match("^hel*o$", "hellllllo")
2 changes: 1 addition & 1 deletion examples/code.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ infinity = Infinity
nan = NaN

# Deleting.
delete secret.identity
delete secret.identity
2 changes: 1 addition & 1 deletion examples/computer_science/binary_search.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ binary_search = (items, value) ->
console.log 2 is binary_search [10, 20, 30, 40, 50], 30
console.log 4 is binary_search [-97, 35, 67, 88, 1200], 1200
console.log 0 is binary_search [0, 45, 70], 0
console.log -1 is binary_search [0, 45, 70], 10
console.log -1 is binary_search [0, 45, 70], 10
2 changes: 1 addition & 1 deletion examples/computer_science/bubble_sort.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ bubble_sort = (list) ->

# Test the function.
console.log bubble_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log bubble_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log bubble_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
2 changes: 1 addition & 1 deletion examples/computer_science/merge_sort.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ merge_sort = (list) ->

# Test the function.
console.log merge_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log merge_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log merge_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
2 changes: 1 addition & 1 deletion examples/computer_science/selection_sort.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ selection_sort = (list) ->

# Test the function.
console.log selection_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log selection_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
console.log selection_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'