Skip to content

City Autocompletion with Algolia - #5

Open
stanBienaives wants to merge 7 commits into
algolia:masterfrom
stanBienaives:master
Open

stanBienaives wants to merge 7 commits into
algolia:masterfrom
stanBienaives:master

change datasource to raw MaxMind

79d2d2a
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Oct 3, 2025 in 0s

9 new security issues (0 max.).

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 9
           

Complexity increasing per file
==============================
- app/assets/javascripts/index/search_algolia.js  21
- lib/tasks/algolia.rake  1
         

See the complete overview on Codacy

Annotations

Check warning on line 24 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L24

HTML passed in to function '$'

Check warning on line 26 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L26

HTML passed in to function '$'

Check warning on line 26 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L26

User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities

Check warning on line 27 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L27

HTML passed in to function '$'

Check warning on line 27 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L27

User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities

Check warning on line 28 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L28

User controlled data in a jQuery's `.appendTo(...)` is an anti-pattern that can lead to XSS vulnerabilities

Check warning on line 29 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L29

User controlled data in a jQuery's `.appendTo(...)` is an anti-pattern that can lead to XSS vulnerabilities

Check warning on line 49 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L49

HTML passed in to function 'this.container.html'

Check warning on line 80 in app/assets/javascripts/index/search_algolia.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/assets/javascripts/index/search_algolia.js#L80

User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities